提交 34487f09 编写于 作者: I imod

don't call getGoalsAndOptions() twice

上级 1efd2f98
...@@ -760,8 +760,9 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven ...@@ -760,8 +760,9 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
// find the correct maven goals and options, there might by an action overruling the defaults // find the correct maven goals and options, there might by an action overruling the defaults
String goals = project.getGoals(); // default String goals = project.getGoals(); // default
for (MavenArgumentInterceptorAction mavenArgInterceptor : argInterceptors) { for (MavenArgumentInterceptorAction mavenArgInterceptor : argInterceptors) {
if(StringUtils.isNotBlank(mavenArgInterceptor.getGoalsAndOptions())){ final String goalsAndOptions = mavenArgInterceptor.getGoalsAndOptions();
goals = mavenArgInterceptor.getGoalsAndOptions(); if(StringUtils.isNotBlank(goalsAndOptions)){
goals = goalsAndOptions;
// only one interceptor is allowed to overwrite the whole "goals and options" string // only one interceptor is allowed to overwrite the whole "goals and options" string
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册