Skip to content
Permalink
Browse files
[build] make sure generation of jruby-jars versions.rb does work
  • Loading branch information
mkristian committed Dec 10, 2014
1 parent be211f1 commit 38436e780a1d391f1e0cb87ed6de71c64546b604
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 38436e7

Please sign in to comment.