Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 0.735 kB
require 'bundler'
Bundler::GemHelper.install_tasks
file 'pom.xml' => 'lib/pacer-neo4j/version.rb' do
pom = File.read 'pom.xml'
when_writing('Update pom.xml version number') do
updated = false
open 'pom.xml', 'w' do |f|
pom.each_line do |line|
if not updated and line =~ %r{<version>.*</version>}
f << line.sub(%r{<version>.*</version>}, "<version>#{ Pacer::Neo4j::VERSION }</version>")
updated = true
else
f << line
end
end
end
end
end
file Pacer::Neo4j::JAR_PATH => 'pom.xml' do
when_writing("Execute 'mvn package' task") do
system('mvn clean package')
end
end
task :build => Pacer::Neo4j::JAR_PATH
task :install => Pacer::Neo4j::JAR_PATH
Jump to Line
Something went wrong with that request. Please try again.