lib/ruby/ruby_maven.rb in ruby-maven-3.0.3.0.28.4 vs lib/ruby/ruby_maven.rb in ruby-maven-3.0.3.0.28.4.1

- old
+ new

@@ -1,7 +1,8 @@ require 'fileutils' require 'maven/tools/rails_project' +require 'java' if defined? JRUBY_VERSION module Maven class RubyMaven # make the command line for the goals of the jruby-maven-plugins nicer @@ -94,11 +95,11 @@ def log(args) log = File.join('log', 'rmvn.log') if File.exists? File.dirname(log) File.open(log, 'a') do |f| - f.puts "rmvn #{args.join ' '}" + f.puts "#{$0.sub(/.*\//, '')} #{args.join ' '}" end end end def maybe_print_help(args) @@ -183,13 +184,14 @@ end args end def exec(*args) + log(args) a = command_line(args.dup.flatten) a << options_array a.flatten! - a = generate_pom(a) + a = generate_pom(*a) puts a.join ' ' if defined? JRUBY_VERSION launch_jruby(a) else launch_java(a)