Permalink
Browse files

fix compile problem

  • Loading branch information...
1 parent 27bd5c9 commit 8656049fb90bf9e789512e716d024b3fe31b6f37 @imod imod committed Nov 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
View
4 maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
@@ -760,7 +760,7 @@ protected Result doRun(final BuildListener listener) throws Exception {
// find the correct maven goals and options, there might by an action overruling the defaults
String goals = project.getGoals(); // default
for (MavenArgumentInterceptorAction mavenArgInterceptor : argInterceptors) {
- final String goalsAndOptions = mavenArgInterceptor.getGoalsAndOptions(this.getBuild());
+ final String goalsAndOptions = mavenArgInterceptor.getGoalsAndOptions((MavenModuleSetBuild)this.getBuild());
if(StringUtils.isNotBlank(goalsAndOptions)){
goals = goalsAndOptions;
// only one interceptor is allowed to overwrite the whole "goals and options" string
@@ -772,7 +772,7 @@ protected Result doRun(final BuildListener listener) throws Exception {
// enable the interceptors to change the whole command argument list
// all available interceptors are allowed to modify the argument list
for (MavenArgumentInterceptorAction mavenArgInterceptor : argInterceptors) {
- final ArgumentListBuilder newMargs = mavenArgInterceptor.intercept(margs, this.getBuild());
+ final ArgumentListBuilder newMargs = mavenArgInterceptor.intercept(margs, (MavenModuleSetBuild)this.getBuild());
if (newMargs != null) {
margs = newMargs;
}

0 comments on commit 8656049

Please sign in to comment.