File tree 3 files changed +3
-3
lines changed
bundler-maven-plugin/src/main/java/de/saumya/mojo/bundler
gem-maven-plugin/src/main/java/de/saumya/mojo/gem
ruby-tools/src/main/scripts
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ public String toString(){
327
327
}
328
328
private void getHistoryLogScript (RubyStringBuilder builder ) {
329
329
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)" );
331
331
builder .appendLine (" File.open(log, 'a') do |f|" );
332
332
builder .appendLine (" f.puts \" #{$0.sub(/.*\\ //, '')} #{ARGV.join ' '}\" " );
333
333
builder .appendLine (" end" );
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ else if ((Artifact.SCOPE_PROVIDED + Artifact.SCOPE_TEST).contains(dependency.get
370
370
writer .append ("end\n " );
371
371
writer .append ("\n " );
372
372
writer .append ("load File.dirname(__FILE__) + '/" + this .gemHook
373
- + "' if File.exists ?( File.dirname(__FILE__) + '/"
373
+ + "' if File.exist ?( File.dirname(__FILE__) + '/"
374
374
+ this .gemHook + "')\n " );
375
375
}
376
376
catch (final IOException e ) {
Original file line number Diff line number Diff line change 10
10
11
11
Dir [ 'target/dependency/*gem' ] . each do |file |
12
12
f = "../target/rubygems/gems/#{ File . basename ( file ) . sub ( /.gem/ , '' ) } /lib"
13
- unless File . exists ?( f )
13
+ unless File . exist ?( f )
14
14
f = "../target/rubygems/gems/#{ File . basename ( file ) . sub ( /.gem/ , '' ) } -java/lib"
15
15
end
16
16
Dir [ File . expand_path ( f ) + "/*" ] . each do |ff |
You can’t perform that action at this time.
0 commit comments