Permalink
Browse files

Minor tweaks and it works great!

  • Loading branch information...
1 parent 361fe23 commit 78b619dbfa95a7011184fd8c611502f8a8c8a46d Darrick Wiebe committed Apr 7, 2011
Showing with 10 additions and 8 deletions.
  1. +2 −0 .gitignore
  2. +3 −5 Rakefile
  3. +1 −0 lib/pacer-graph.rb
  4. +1 −0 lib/pacer-graph/version.rb
  5. +1 −1 pacer-graph.gemspec
  6. +2 −2 pom.xml
View
@@ -2,3 +2,5 @@
.bundle
Gemfile.lock
pkg/*
+target/*
+lib/*.jar
View
@@ -1,8 +1,6 @@
require 'bundler'
Bundler::GemHelper.install_tasks
-require File.expand_path('../lib/pacer-graph/version', __FILE__)
-
file 'pom.xml' => 'lib/pacer-graph/version.rb' do
pom = File.read 'pom.xml'
when_writing('Update pom.xml version number') do
@@ -20,10 +18,10 @@ file 'pom.xml' => 'lib/pacer-graph/version.rb' do
end
end
-file PacerGraph::JAR => 'pom.xml' do
+file PacerGraph::JAR_PATH => 'pom.xml' do
when_writing("Execute 'mvn package' task") do
- puts system('mvn clean package')
+ system('mvn clean package')
end
end
-task :build => PacerGraph::JAR
+task :build => PacerGraph::JAR_PATH
View
@@ -1,2 +1,3 @@
require 'pacer-graph/version'
+require 'java'
require PacerGraph::JAR
@@ -1,4 +1,5 @@
module PacerGraph
VERSION = "1.0.0"
JAR = "pacer-graph-#{ VERSION }-standalone.jar"
+ JAR_PATH = "lib/#{ JAR }"
end
View
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = "pacer-graph"
- s.files = `git ls-files`.split("\n") + [PacerGraph::JAR]
+ s.files = `git ls-files`.split("\n") + [PacerGraph::JAR_PATH]
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
View
@@ -6,7 +6,7 @@
<groupId>com.tinkerpop.pacer</groupId>
<artifactId>pacer-graph</artifactId>
<!-- NOTE: the version property is automatically updated based on the value in lib/pacer-graph/version.rb -->
- <version>1.0.1</version>
+ <version>1.0.0</version>
<!-- NOTE: the version property is automatically updated based on the value in lib/pacer-graph/version.rb -->
<packaging>pom</packaging>
<url>https://github.com/pangloss/pacer</url>
@@ -96,7 +96,7 @@
<descriptor>pom/standalone.xml</descriptor>
</descriptors>
<finalName>${project.artifactId}-${project.version}</finalName>
- <outputDirectory>target</outputDirectory>
+ <outputDirectory>lib</outputDirectory>
<workDirectory>target/assembly/work</workDirectory>
<tarLongFileMode>warn</tarLongFileMode>
</configuration>

0 comments on commit 78b619d

Please sign in to comment.