ruby-maven 3.0.3.0.28.4 → 3.0.3.0.28.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/jetty-run CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env ruby
1
2
  if ARGV.size > 4 || ARGV[0] == "--help" || ARGV[0] == "-h" || ARGV[0] == "-?"
2
3
  puts "usage: #{File.basename($0)} [-e <environment>] [--war [<path/to/warfile>]]"
3
4
  puts "\tdefault environment: development"
data/bin/rmvn CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env ruby
1
2
  require 'ruby_maven'
2
3
 
3
4
  mvn = Maven::RubyMaven.new
@@ -6,4 +7,4 @@ args = ARGV.dup
6
7
  ARGV.clear # clean up in case another script gets executed it gets clear ARGV
7
8
 
8
9
  print "maven commandline: "
9
- mvn.exec(args)
10
+ mvn.exec(*args)
data/bin/tomcat-run CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env ruby
1
2
  if ARGV.size > 4 || ARGV[0] == "--help" || ARGV[0] == "-h" || ARGV[0] == "-?"
2
3
  puts "usage: #{File.basename($0)} [-e <environment>] [--war [<path/to/warfile>]]"
3
4
  puts "\tdefault environment: development"
@@ -1,5 +1,6 @@
1
1
  require 'fileutils'
2
2
  require 'maven/tools/rails_project'
3
+ require 'java' if defined? JRUBY_VERSION
3
4
 
4
5
  module Maven
5
6
  class RubyMaven
@@ -96,7 +97,7 @@ module Maven
96
97
  log = File.join('log', 'rmvn.log')
97
98
  if File.exists? File.dirname(log)
98
99
  File.open(log, 'a') do |f|
99
- f.puts "rmvn #{args.join ' '}"
100
+ f.puts "#{$0.sub(/.*\//, '')} #{args.join ' '}"
100
101
  end
101
102
  end
102
103
  end
@@ -185,10 +186,11 @@ module Maven
185
186
  end
186
187
 
187
188
  def exec(*args)
189
+ log(args)
188
190
  a = command_line(args.dup.flatten)
189
191
  a << options_array
190
192
  a.flatten!
191
- a = generate_pom(a)
193
+ a = generate_pom(*a)
192
194
  puts a.join ' '
193
195
  if defined? JRUBY_VERSION
194
196
  launch_jruby(a)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ruby-maven
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.0.3.0.28.4
5
+ version: 3.0.3.0.28.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - mkristian
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-25 00:00:00 +05:30
13
+ date: 2011-09-27 00:00:00 +05:30
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency