Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No File.exists? anymore #13

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ruby_maven.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def self.launch( *args )
# ruby maven defines the polyglot version and this jar sets up its classpath
# i.e. on upgrade or downgrade the right version will be picked
FileUtils.cp(source, File.join(ext_dir, jar.sub(/-[0-9.]*(-SNAPSHOT)?.jar$/, '.jar')))
elsif not File.exists?(File.join(ext_dir, jar)) and not jar =~ /jruby-(core|stdlib).*/
elsif not File.exist?(File.join(ext_dir, jar)) and not jar =~ /jruby-(core|stdlib).*/
# jar files are immutable as they carry the version
warn jar
FileUtils.cp(source, File.join(ext_dir, jar.sub(/-9.4.5.0/, '')))
Expand Down
Loading