public class NewJavaPluginRunAction extends Object implements StallionRunAction<CommandOptionsBase>
Constructor and Description |
---|
NewJavaPluginRunAction() |
Modifier and Type | Method and Description |
---|---|
void |
copyFile(String resourcePath,
String relativePath) |
void |
copyTemplate(String resourcePath,
String relativePath,
Map ctx) |
void |
execute(CommandOptionsBase options)
Actually do the action.
|
String |
getActionName()
The name of the action, will be used on the command line to run the action.
|
String |
getArtifactId() |
String |
getGroupId() |
String |
getHelp()
A friendly description of what the action does, will be printed on the command-line
when help is asked for.
|
String |
getJavaPackageName() |
String |
getPluginName() |
String |
getPluginNameTitleCase() |
void |
loadApp(CommandOptionsBase options)
Load the application context.
|
void |
makeNewApp(String javaFolder) |
CommandOptionsBase |
newCommandOptions()
Each action might have its own command-line arguments.
|
String |
promptForInputOfLength(String prompt,
int length) |
String |
promptForInputOfLength(String prompt,
int length,
String contains) |
String |
promptForValidInput(String prompt,
String... validChoices) |
boolean |
promptYesNo(String prompt) |
NewJavaPluginRunAction |
setArtifactId(String artifactId) |
NewJavaPluginRunAction |
setGroupId(String groupId) |
NewJavaPluginRunAction |
setJavaPackageName(String javaPackageName) |
NewJavaPluginRunAction |
setPluginName(String pluginName) |
NewJavaPluginRunAction |
setPluginNameTitleCase(String pluginNameTitleCase) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSubActionName
public NewJavaPluginRunAction()
public String getActionName()
StallionRunAction
getActionName
in interface StallionRunAction<CommandOptionsBase>
public String getHelp()
StallionRunAction
getHelp
in interface StallionRunAction<CommandOptionsBase>
public void loadApp(CommandOptionsBase options)
StallionRunAction
loadApp
in interface StallionRunAction<CommandOptionsBase>
public CommandOptionsBase newCommandOptions()
StallionRunAction
newCommandOptions
in interface StallionRunAction<CommandOptionsBase>
public void execute(CommandOptionsBase options) throws Exception
StallionRunAction
execute
in interface StallionRunAction<CommandOptionsBase>
Exception
public void makeNewApp(String javaFolder) throws Exception
Exception
public void copyTemplate(String resourcePath, String relativePath, Map ctx) throws IOException
IOException
public void copyFile(String resourcePath, String relativePath) throws IOException
IOException
public boolean promptYesNo(String prompt)
public String promptForInputOfLength(String prompt, int length)
public String promptForInputOfLength(String prompt, int length, String contains)
public String promptForValidInput(String prompt, String... validChoices)
public String getPluginName()
public NewJavaPluginRunAction setPluginName(String pluginName)
public String getJavaPackageName()
public NewJavaPluginRunAction setJavaPackageName(String javaPackageName)
public String getPluginNameTitleCase()
public NewJavaPluginRunAction setPluginNameTitleCase(String pluginNameTitleCase)
public String getGroupId()
public NewJavaPluginRunAction setGroupId(String groupId)
public String getArtifactId()
public NewJavaPluginRunAction setArtifactId(String artifactId)
Copyright © 2016. All rights reserved.