Skip to content

Commit

Permalink
fix compile problem
Browse files Browse the repository at this point in the history
  • Loading branch information
imod committed Nov 23, 2011
1 parent 27bd5c9 commit 8656049
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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
Expand All @@ -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;
}
Expand Down

0 comments on commit 8656049

Please sign in to comment.