Skip to content

Commit 6e51482

Browse files
committed
File.exists? no longer exist?
1 parent 0178275 commit 6e51482

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bundler-maven-plugin/src/main/java/de/saumya/mojo/bundler/InstallMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public String toString(){
327327
}
328328
private void getHistoryLogScript(RubyStringBuilder builder) {
329329
builder.appendLine("log = File.join('log', 'history.log')");
330-
builder.appendLine("if File.exists? File.dirname(log)");
330+
builder.appendLine("if File.exist? File.dirname(log)");
331331
builder.appendLine(" File.open(log, 'a') do |f|");
332332
builder.appendLine(" f.puts \"#{$0.sub(/.*\\//, '')} #{ARGV.join ' '}\"");
333333
builder.appendLine(" end");

gem-maven-plugin/src/main/java/de/saumya/mojo/gem/PackageMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ else if ((Artifact.SCOPE_PROVIDED + Artifact.SCOPE_TEST).contains(dependency.get
370370
writer.append("end\n");
371371
writer.append("\n");
372372
writer.append("load File.dirname(__FILE__) + '/" + this.gemHook
373-
+ "' if File.exists?( File.dirname(__FILE__) + '/"
373+
+ "' if File.exist?( File.dirname(__FILE__) + '/"
374374
+ this.gemHook + "')\n");
375375
}
376376
catch (final IOException e) {

ruby-tools/src/main/scripts/install_gems.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
Dir[ 'target/dependency/*gem' ].each do |file|
1212
f = "../target/rubygems/gems/#{File.basename(file).sub(/.gem/, '')}/lib"
13-
unless File.exists?( f )
13+
unless File.exist?( f )
1414
f = "../target/rubygems/gems/#{File.basename(file).sub(/.gem/, '')}-java/lib"
1515
end
1616
Dir[ File.expand_path( f ) + "/*" ].each do |ff|

0 commit comments

Comments
 (0)