mvn2 2.6.8 → 2.6.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cccf3c6298ac1effea836c9ef7ce23eb8f546b25
4
- data.tar.gz: 5f7b202fbe95edc3c143fac818d3acdd939f208f
3
+ metadata.gz: 411c7a6221388422d0c13a2f44d9cbb181ff5f2e
4
+ data.tar.gz: 990fbe96279d7bb801bc294a235ede8e479453e1
5
5
  SHA512:
6
- metadata.gz: 340c132a1f9c946272d1bf1258c775756bf725bde5fb50b7c8c6bb529e8e25b79eed730353ecd617ac5e79db9b1f8719c93bb71c39f745e7793bcdf970a95d38
7
- data.tar.gz: cb3c0a4d45cfcc09dc204278ff00b7d4377e38fbf8e4c9be03828ad3b3a2255c02d45c108a3f3298978d376c82c7a31da0b1ee4931b43dd31c2b78c3eac39b46
6
+ metadata.gz: dfaffa73c174d647e0edd87396d89ed8eb6d8e04ad10feb0719ab9a74aab4ce181e8fd725e65e26d7751e36400b2be25e726b43772befbae82386679fe487944
7
+ data.tar.gz: c7b6b92532f5e8cc57977bcea89c161de0b07edc9962d3ccfaadaa37f29962cd2a3c14e3a0ddb92682e5e2ce8b2079f2791d9503870307dd0c97147c60d33cf8
@@ -12,6 +12,8 @@ class CommandPlugin
12
12
  register :option_with_param, sym: :run_success, names: ['--run-success'], desc: 'run a command after finishing a successful maven build'
13
13
  register :option_with_param, sym: :run_failure, names: ['--run-failure'], desc: 'run a command after finishing an unsuccessful maven build'
14
14
  register :option_with_param, sym: :run_test, names: ['--run-test'], desc: 'run a specific test class or method(s) (support dependent on maven surefire plugin version)'
15
+ register :option_with_param, sym: :maven_option, names: ['--maven-option'], desc: 'specify a maven option (leave off the -D)', append: true
16
+ register :option_with_param, sym: :maven_profile, names: ['--maven-profile'], desc: 'specify a maven profile'
15
17
  register :option, sym: :test_only, names: %w(-o --test-only), desc: 'instead of cleaning and rebuilding before running tests, only run test-compile before running tests'
16
18
  end
17
19
 
@@ -29,6 +31,10 @@ class CommandPlugin
29
31
 
30
32
  register(:command_flag) { |options, flags| flags << ' -Dtest=' << options[:run_test] << ' -DfailIfNoTests=false' unless options[:run_test].nil? }
31
33
 
34
+ register(:command_flag) { |options, flags| options[:maven_option].each { |opt| flags << " -D#{opt}" } unless options[:maven_option].nil? || options[:maven_option].empty? }
35
+
36
+ register(:command_flag) { |options, flags| flags << ' -P ' << options[:maven_profile] unless options[:maven_profile].nil? }
37
+
32
38
  register :goal_override, override_all: true, priority: 100, option: :command_override
33
39
 
34
40
  register(:full_avg_name, order: 20) { |options| options[:package] ? '-package' : '' }
data/lib/mvn2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mvn2
2
- VERSION = '2.6.8'
2
+ VERSION = '2.6.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvn2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.8
4
+ version: 2.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Henderson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler