Skip to content

Commit b01acbf

Browse files
authored
Merge pull request #13 from headius/no-file-exists
No File.exists? anymore
2 parents 62e1bbe + 6ea3958 commit b01acbf

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)