Skip to content

Commit 0a3ba73

Browse files
committed
Revert "[build] removed obsolete monkey patches"
This reverts commit 30dad24.
1 parent d50d7ac commit 0a3ba73

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/pom.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,23 @@ def version
3434

3535
project 'JRuby Lib Setup' do
3636

37+
# TODO move those to method to ruby-maven
38+
class ::Java::JavaIo::File
39+
def to_pathname
40+
to_s.gsub( /\\/, '/' )
41+
end
42+
end
43+
class ::Java::JavaLang::String
44+
def to_pathname
45+
to_s.gsub( /\\/, '/' )
46+
end
47+
end
48+
class ::String
49+
def to_pathname
50+
self.gsub( /\\/, '/' )
51+
end
52+
end
53+
3754
version = File.read( File.join( basedir, '..', 'VERSION' ) ).strip
3855

3956
model_version '4.0.0'

0 commit comments

Comments
 (0)