Skip to content

Commit

Permalink
[build] make sure generation of jruby-jars versions.rb does work
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Dec 10, 2014
1 parent be211f1 commit 38436e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maven/jruby-jars/jruby-jars.gemspec
@@ -1,14 +1,14 @@
#-*- mode: ruby -*-

require 'rake'
require 'rexml/document'
require 'rexml/xpath'
require 'fileutils'

version = File.read( File.join( File.dirname(File.expand_path(__FILE__)), '..', '..', 'VERSION' ) ).strip

# this regexp can be refined to work with pre, rc1, rc2 and such cases
ruby_version = version.sub( /-SNAPSHOT$/, '.dev' )

FileUtils.mkdir_p( 'lib/jruby-jars' )
File.open( 'lib/jruby-jars/version.rb', 'w' ) do |f|
f.print <<EOF
module JRubyJars
Expand Down

0 comments on commit 38436e7

Please sign in to comment.