Sha256: 613e6e3758b2283aa3f5b542fce35b5ba17d50a7d0217b7fdd554f570f021f78
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
require 'bundler' Bundler::GemHelper.install_tasks file 'pom.xml' => 'lib/pacer-titan/version.rb' do pom = File.read 'pom.xml' when_writing('Update pom.xml version number') do open 'pom.xml', 'w' do |f| pom.each_line do |line| line.sub!(%r{<gem.version>.*</gem.version>}, "<gem.version>#{ Pacer::Titan::VERSION }</gem.version>") line.sub!(%r{<blueprints.version>.*</blueprints.version>}, "<blueprints.version>#{ Pacer::Titan::BLUEPRINTS_VERSION }</blueprints.version>") line.sub!(%r{<pipes.version>.*</pipes.version>}, "<pipes.version>#{ Pacer::Titan::PIPES_VERSION }</pipes.version>") line.sub!(%r{<titan.version>.*</titan.version>}, "<titan.version>#{ Pacer::Titan::TITAN_VERSION }</titan.version>") f << line end end end end file Pacer::Titan::JAR_PATH => 'pom.xml' do when_writing("Execute 'mvn package' task") do system('mvn clean package') end end task :note do puts "NOTE: touch lib/pacer-titan/version.rb (or rake touch) to force everything to rebuild" end task :build => [:note, Pacer::Titan::JAR_PATH] task :install => [:note, Pacer::Titan::JAR_PATH] desc 'Touch version.rb so that the jar rebuilds' task :touch do system 'touch', 'lib/pacer-titan/version.rb' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pacer-titan-0.0.3-java | Rakefile |
pacer-titan-0.0.2-java | Rakefile |
pacer-titan-0.0.1-java | Rakefile |