lib/maven/ruby/maven.rb in ruby-maven-3.3.2 vs lib/maven/ruby/maven.rb in ruby-maven-3.3.3

- old
+ new

@@ -48,11 +48,11 @@ def initialize( project = nil, temp_pom = nil ) super() if project - warn 'deprecated: EOF - just tell maven where you (ruby) pom is' + warn 'deprecated: End Of Life - just tell maven where your (ruby) pom is' begin require 'maven/tools/model' require 'maven/tools/visitor' rescue LoadError => e warn 'maven-tools gem is not a direct dependency anymore' @@ -70,10 +70,14 @@ def options @options ||= {} end + def <<( v ) + options[ v ] = nil + end + def verbose= v @verbose = v end def property(key, value = nil) @@ -92,11 +96,12 @@ def exec(*args) if verbose puts "mvn #{args.join(' ')}" end - result = RubyMaven.exec( *args ) + result = RubyMaven.exec( *(args + options_array) ) if @embedded and not result + # TODO remove this when the embedded case is gone raise "error in executing maven #{result}" else result end end