Skip to content

Commit

Permalink
Revert "[build] removed obsolete monkey patches"
Browse files Browse the repository at this point in the history
This reverts commit 30dad24.
  • Loading branch information
mkristian committed Dec 18, 2014
1 parent 30dad24 commit 43d0de7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,23 @@ def version

project 'JRuby Lib Setup' do

# TODO move those to method to ruby-maven
class ::Java::JavaIo::File
def to_pathname
to_s.gsub( /\\/, '/' )
end
end
class ::Java::JavaLang::String
def to_pathname
to_s.gsub( /\\/, '/' )
end
end
class ::String
def to_pathname
self.gsub( /\\/, '/' )
end
end

version = File.read( File.join( basedir, '..', 'VERSION' ) ).strip

model_version '4.0.0'
Expand Down

0 comments on commit 43d0de7

Please sign in to comment.