Skip to content

Commit

Permalink
fixing varargs inputs, was launching exception trying converting a ar…
Browse files Browse the repository at this point in the history
…ray of array to java array of String
  • Loading branch information
douglasrodrigo committed Sep 27, 2011
1 parent f7bb3dd commit c8ad8a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/bin/rmvn
Expand Up @@ -6,4 +6,4 @@ args = ARGV.dup
ARGV.clear # clean up in case another script gets executed it gets clear ARGV

print "maven commandline: "
mvn.exec(args)
mvn.exec(*args)
2 changes: 1 addition & 1 deletion src/main/resources/lib/ruby/ruby_maven.rb
Expand Up @@ -187,7 +187,7 @@ def exec(*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)
Expand Down

0 comments on commit c8ad8a3

Please sign in to comment.