@groovy.transform.CompileStaticCompileStatic class CreateAppCommand extends ArgumentCompletingCommand
Command for creating Grails applications
Modifiers | Name | Description |
---|---|---|
static class |
CreateAppCommand.CreateAppCommandObject |
Modifiers | Name | Description |
---|---|---|
protected static java.lang.String |
APPLICATION_YML |
|
protected static java.lang.String |
BUILD_GRADLE |
|
static java.lang.String |
ENCODING |
|
static java.lang.String |
FEATURES_FLAG |
|
static java.lang.String |
INPLACE_FLAG |
|
static java.lang.String |
NAME |
|
static java.lang.String |
PROFILE_FLAG |
Type | Name and description |
---|---|
private java.lang.String |
appname |
private java.lang.String |
defaultpackagename |
private CommandDescription |
description |
private java.lang.String |
groupname |
private ProfileRepository |
profileRepository |
private File |
targetDirectory |
private Map |
variables |
Constructor and description |
---|
CreateAppCommand
() |
CreateAppCommand
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
appendFeatureFiles(File skeletonDir) |
|
protected void |
buildTargetFolders(Profile profile, Map targetDir, File projectDir) |
|
protected int |
complete(CommandLine commandLine, CommandDescription desc, java.util.List candidates, int cursor) |
|
protected java.util.List |
convertToGradleDependencies(java.util.List dependencies) |
|
protected void |
copySrcToTarget(GrailsConsoleAntBuilder ant, File srcDir, java.util.List excludes, Set binaryFileExtensions) |
|
protected java.lang.String |
createNewApplicationYml(java.lang.String previousYml, java.lang.String newYml) |
|
protected java.lang.Iterable |
evaluateFeatures(Profile profile, java.util.List requestedFeatures) |
|
protected java.lang.String |
evaluateProfileName(CommandLine mainCommandLine) |
|
Set |
findAllFilesByName(File projectDir, java.lang.String fileName) |
|
protected java.lang.String |
getDefaultProfile() |
|
protected File |
getDestinationDirectory(File srcFile) |
|
java.lang.String |
getName() |
|
boolean |
handle(CreateAppCommand.CreateAppCommandObject cmd) |
|
boolean |
handle(ExecutionContext executionContext) |
|
protected boolean |
initializeGroupAndName(java.lang.String appName, boolean inplace) |
|
protected void |
populateDescription() |
|
protected void |
replaceBuildTokens(java.lang.String profileCoords, Profile profile, java.util.List features, File targetDirectory) |
|
protected java.lang.String |
resolveArtifactString(Dependency dep) |
|
protected File |
unzipProfile(AntBuilder ant, Resource location) |
|
protected boolean |
validateProfile(Profile profileInstance, java.lang.String profileName) |
Methods inherited from class | Name |
---|---|
class ArgumentCompletingCommand |
complete, complete |