提交 0917b359 编写于 作者: J jasonchaffee

Issue number: 1340

Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7844 71c3de6d-444a-0410-be80-ed276b4c234a
上级 cbe9af44
......@@ -106,13 +106,29 @@ public class SurefireArchiver extends MavenReporter {
return false;
try {
Boolean skip = mojo.getConfigurationValue("skip", Boolean.class);
Boolean skipExec = mojo.getConfigurationValue("skipExec", Boolean.class);
Boolean skipTests = mojo.getConfigurationValue("skipTests", Boolean.class);
if (((skip != null) && (skip)) || ((skipExec != null) && (skipExec)) || ((skipTests != null) && (!skipTests))) {
Boolean skip = mojo.getConfigurationValue("skip", Boolean.class);
if (((skip != null) && (skip))) {
return false;
}
if (mojo.pluginName.version.compareTo("2.3") >= 0) {
Boolean skipExec = mojo.getConfigurationValue("skipExec", Boolean.class);
if (((skipExec != null) && (skipExec))) {
return false;
}
}
if (mojo.pluginName.version.compareTo("2.4") >= 0) {
Boolean skipTests = mojo.getConfigurationValue("skipTests", Boolean.class);
if (((skipTests != null) && (skipTests))) {
return false;
}
}
} catch (ComponentConfigurationException e) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册