Class BasicProcessSpec
java.lang.Object
de.iip_ecosphere.platform.configuration.maven.BasicProcessSpec
- Direct Known Subclasses:
TestProcessSpec
Defines an additional process to be executed in the build process.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPort allocation/mapping specification. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate booleanprivate Stringprivate booleanprivate Fileprivate List<BasicProcessSpec.PortSpec> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidallocatePorts(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log) Allocates the ports.Extrapolates the property expressions.extrapolateArgs(List<String> args) Extrapolates the property expressions.getArgs()Returns the command line arguments forcmd.getCmd()Returns the command.Returns the description.getHome()Returns the process home directory.booleanReturns whethergetCmd()shall be treated like a script.booleanReturns whether the error stream of the process shall be redirected to the input stream.voidDefines the command line arguments forcmd.voidDefines the command.voidsetCmdAsScript(boolean cmdAsScript) Sets thatcmdshell be treated like a script.voidsetDescription(String description) Sets the description.voidsetErrToIn(boolean errToIn) Defines whether the error stream of the process shall be redirected to the input stream.voidDefines the process home directory.
-
Field Details
-
description
-
cmd
-
cmdAsScript
@Parameter(required=false, defaultValue="false") private boolean cmdAsScript -
args
-
home
-
ports
-
errToIn
@Parameter(required=false, defaultValue="false") private boolean errToIn
-
-
Constructor Details
-
BasicProcessSpec
public BasicProcessSpec()
-
-
Method Details
-
getDescription
Returns the description.- Returns:
- the description
-
setDescription
Sets the description. [mvn]- Parameters:
description- the description to set
-
getCmd
Returns the command.- Returns:
- the cmd
-
setCmd
Defines the command. [mvn]- Parameters:
cmd- the cmd to set
-
isCmdAsScript
public boolean isCmdAsScript()Returns whethergetCmd()shall be treated like a script.- Returns:
- the cmdAsScript
-
setCmdAsScript
public void setCmdAsScript(boolean cmdAsScript) Sets thatcmdshell be treated like a script. [mvn]- Parameters:
cmdAsScript- the cmdAsScript to set
-
getArgs
Returns the command line arguments forcmd.- Returns:
- the args
-
setArgs
Defines the command line arguments forcmd. [mvn]- Parameters:
args- the args to set
-
getHome
Returns the process home directory.- Returns:
- the home directory
-
setHome
Defines the process home directory. [mvn]- Parameters:
home- the home directory to set
-
isErrToIn
public boolean isErrToIn()Returns whether the error stream of the process shall be redirected to the input stream.- Returns:
truefor redirect,falsefor no redirect
-
setErrToIn
public void setErrToIn(boolean errToIn) Defines whether the error stream of the process shall be redirected to the input stream.- Parameters:
errToIn-truefor redirect,falsefor no redirect
-
allocatePorts
void allocatePorts(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log) Allocates the ports.- Parameters:
project- the maven project to be modifiedlog- the log
-
extrapolateArgs
Extrapolates the property expressions.- Returns:
- the extrapolated arguments
-
extrapolateArgs
Extrapolates the property expressions.- Parameters:
args- the arguments to interpret the expressions for- Returns:
- the extrapolated arguments
-