|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MavenArgumentInterceptorAction
Provides a hook to change the arguments passed to the maven execution. This enables plugins to transiently change the arguments of a maven build (e.g. change the arguments for a release build).
Method Summary | |
---|---|
String |
getGoalsAndOptions(MavenModuleSetBuild build)
Provides maven goals and options to start the build with. |
ArgumentListBuilder |
intercept(ArgumentListBuilder mavenargs,
MavenModuleSetBuild build)
Change/add arguments to any needs, but special care has to be taken, as the list contains every argument needed for the default execution (e.g. |
Methods inherited from interface hudson.model.Action |
---|
getDisplayName, getIconFileName, getUrlName |
Method Detail |
---|
String getGoalsAndOptions(MavenModuleSetBuild build)
This method will be called on one and only one action during a build. If there are two actions present in the build, the second will be ignored.
build
- reference to the current build, might be used for some
calculations for the correct arguments
null
or empty. Variables will be expanded
by the caller.ArgumentListBuilder intercept(ArgumentListBuilder mavenargs, MavenModuleSetBuild build)
-f /path/to/pom.xml
or -B
). -DskipTests
" to skip the
test execution on request.
This method is called on all present MavenArgumentInterceptorAction during a build (kind of chaining, each action can add the arguments it thinks are missing).
mavenargs
- the calculated default maven arguments (never
null
).build
- reference to the current build, might be used for some
calculations for the correct arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |