public class CreateAction extends BaseAction
Modifier and Type | Class and Description |
---|---|
static interface |
CreateAction.CreateActionArgs
Arguments for the CreateAction
|
BaseAction.BaseActionArgs
frameworkProperties, main, project
Constructor and Description |
---|
CreateAction(CLIToolLogger main,
IPropertyLookup framework,
BaseAction.BaseActionArgs baseArgs,
CreateAction.CreateActionArgs createArgs,
java.util.Properties projectProperties,
CentralDispatcher dispatcher)
Create a new CreateAction
|
CreateAction(CLIToolLogger main,
IPropertyLookup framework,
org.apache.commons.cli.CommandLine cli,
java.util.Properties properties,
CentralDispatcher dispatcher)
Create a new CreateAction, and parse the args from the CommandLine, using
BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine) and
parseCreateActionArgs(org.apache.commons.cli.CommandLine) to create the argument specifiers. |
Modifier and Type | Method and Description |
---|---|
static CreateAction.CreateActionArgs |
createArgs(boolean cygwin)
Create args instance
|
void |
exec()
Execute the action.
|
java.util.Properties |
getProperties() |
boolean |
isCygwin() |
static CreateAction.CreateActionArgs |
parseCreateActionArgs(org.apache.commons.cli.CommandLine cli) |
void |
setCygwin(boolean cygwin) |
void |
setProperties(java.util.Properties properties) |
createArgs, getCentralDispatcher, getSingleProjectName, isVerbose, parseBaseActionArgs, setCentralDispatcher, setVerbose
public CreateAction(CLIToolLogger main, IPropertyLookup framework, org.apache.commons.cli.CommandLine cli, java.util.Properties properties, CentralDispatcher dispatcher)
BaseAction.parseBaseActionArgs(org.apache.commons.cli.CommandLine)
and
parseCreateActionArgs(org.apache.commons.cli.CommandLine)
to create the argument specifiers.main
- loggerframework
- frameworkcli
- cliproperties
- propertiespublic CreateAction(CLIToolLogger main, IPropertyLookup framework, BaseAction.BaseActionArgs baseArgs, CreateAction.CreateActionArgs createArgs, java.util.Properties projectProperties, CentralDispatcher dispatcher)
main
- loggerframework
- framework objectbaseArgs
- base argscreateArgs
- create argsprojectProperties
- propertiespublic boolean isCygwin()
public void setCygwin(boolean cygwin)
public java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
public static CreateAction.CreateActionArgs parseCreateActionArgs(org.apache.commons.cli.CommandLine cli)
public static CreateAction.CreateActionArgs createArgs(boolean cygwin)
cygwin
- cygwinpublic void exec() throws java.lang.Throwable
exec
in interface Action
exec
in class BaseAction
java.lang.Throwable
- any throwable