mvn2 2.4.2 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mvn2/plugin/command.plugin.rb +6 -1
- data/lib/mvn2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b696946da9355cf83be9a4b3c993b8954ec9fa3f
|
4
|
+
data.tar.gz: 555c2995308c19d2e69eca330ebd29a6ac6cf48a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 164ac7eb9922b05f0ff7d81fb5197acb1787e7cb3a305c56d1bfcc92e6e220e536634b56333543a8d2c8a1fd250ad6929ccad56cf2b275cb159d06f61254cf9f
|
7
|
+
data.tar.gz: 27f03282b8cedd040981f324beebd2a8ba314e7af00d9fd8f4af56b06ff45fb7169bc69bea1ee6ff9f5a9732438551a88562f9639e7389c324ffe617e1912915
|
@@ -11,6 +11,7 @@ class CommandPlugin
|
|
11
11
|
register :option_with_param, sym: :run_after, names: ['--run-after'], desc: 'run a command after finishing the maven build'
|
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
|
+
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)'
|
14
15
|
end
|
15
16
|
|
16
17
|
def_options
|
@@ -18,13 +19,17 @@ class CommandPlugin
|
|
18
19
|
def self.def_others
|
19
20
|
register :goal_override, order: 10, option: :package, goal: 'package'
|
20
21
|
|
22
|
+
register(:goal_override, order: 20) { |options| options[:run_test].nil? ? nil : 'test' }
|
23
|
+
|
24
|
+
register(:command_flag) { |options, flags| flags << ' -Dtest=' << options[:run_test] << ' -DfailIfNoTests=false' unless options[:run_test].nil? }
|
25
|
+
|
21
26
|
register :goal_override, override_all: true, priority: 100, option: :command_override
|
22
27
|
|
23
28
|
register(:full_avg_name, order: 20) { |options| options[:package] ? '-package' : '' }
|
24
29
|
|
25
30
|
register(:operation_name, priority: 100) { |options| options[:command_override].nil? ? nil : 'Operation' }
|
26
31
|
|
27
|
-
register(:block_average) { |options| !options[:command_override].nil? }
|
32
|
+
register(:block_average) { |options| !options[:command_override].nil? || !options[:run_test].nil? }
|
28
33
|
end
|
29
34
|
|
30
35
|
def_others
|
data/lib/mvn2/version.rb
CHANGED
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.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Henderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|