Skip to content

Commit 6ea3958

Browse files
committed
No File.exists? anymore
Somehow this crept back in after jruby/jruby#8502
1 parent 62e1bbe commit 6ea3958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_maven.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def self.launch( *args )
7878
# ruby maven defines the polyglot version and this jar sets up its classpath
7979
# i.e. on upgrade or downgrade the right version will be picked
8080
FileUtils.cp(source, File.join(ext_dir, jar.sub(/-[0-9.]*(-SNAPSHOT)?.jar$/, '.jar')))
81-
elsif not File.exists?(File.join(ext_dir, jar)) and not jar =~ /jruby-(core|stdlib).*/
81+
elsif not File.exist?(File.join(ext_dir, jar)) and not jar =~ /jruby-(core|stdlib).*/
8282
# jar files are immutable as they carry the version
8383
warn jar
8484
FileUtils.cp(source, File.join(ext_dir, jar.sub(/-9.4.5.0/, '')))

0 commit comments

Comments
 (0)