Package org.ikasan.archetype
Class AbstractMavenCommand<RESULT>
java.lang.Object
org.ikasan.archetype.AbstractMavenCommand<RESULT>
- All Implemented Interfaces:
MavenCommand<RESULT>
- Direct Known Subclasses:
MavenArchetypeCommand,MavenGenericCommand
Abstract class representing the base for a Maven Command.
- Author:
- Ikasan Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()Execute the Maven command.Getter for returning the mvn configuration as command propertiesgetGoals()Getter for goals.Getter for the working directorybooleanSetter for batch or interactive modebooleanisDebug()Getter for debug mode.voidsetBatchMode(boolean batchMode) Getter for batch or interactive modevoidsetDebug(boolean debug) Setter for debug mode.voidSetter for goals.voidsetWorkingDir(File workingDir) Setter for the working directory
-
Constructor Details
-
AbstractMavenCommand
Constructor- Parameters:
goals-
-
-
Method Details
-
getGoals
Getter for goals.- Returns:
-
setGoals
Setter for goals.- Parameters:
goals-
-
isDebug
public boolean isDebug()Getter for debug mode.- Returns:
-
setDebug
public void setDebug(boolean debug) Setter for debug mode.- Specified by:
setDebugin interfaceMavenCommand<RESULT>- Parameters:
debug-
-
isBatchMode
public boolean isBatchMode()Setter for batch or interactive mode- Returns:
-
setBatchMode
public void setBatchMode(boolean batchMode) Getter for batch or interactive mode- Specified by:
setBatchModein interfaceMavenCommand<RESULT>- Parameters:
batchMode-
-
getWorkingDir
Getter for the working directory- Returns:
-
setWorkingDir
Setter for the working directory- Specified by:
setWorkingDirin interfaceMavenCommand<RESULT>- Parameters:
workingDir-
-
getCommandProperties
Getter for returning the mvn configuration as command properties- Returns:
-
execute
public RESULT execute() throws org.apache.maven.shared.invoker.MavenInvocationException, org.apache.maven.shared.utils.cli.CommandLineExceptionDescription copied from interface:MavenCommandExecute the Maven command.- Specified by:
executein interfaceMavenCommand<RESULT>- Returns:
- Throws:
org.apache.maven.shared.invoker.MavenInvocationExceptionorg.apache.maven.shared.utils.cli.CommandLineException
-