@CompileStatic class CreateAppCommand extends ArgumentCompletingCommand implements ProfileRepositoryAware
Command for creating Grails applications
Modifiers | Name | Description |
---|---|---|
class |
CreateAppCommand.1 |
|
class |
CreateAppCommand.2 |
|
class |
CreateAppCommand.3 |
|
class |
CreateAppCommand.4 |
|
static class |
CreateAppCommand.CreateAppCommandObject |
|
static class |
CreateAppCommand.Databases |
|
static class |
CreateAppCommand.ProjectContext |
Modifiers | Name | Description |
---|---|---|
protected static String |
APPLICATION_YML |
|
static String |
BOOT_VERSION_FLAG |
|
protected static String |
BUILD_GRADLE |
|
static String |
CSS_FLAG |
|
static String |
DATABASE_FLAG |
|
static String |
ENABLE_PREVIEW_FLAG |
|
static String |
ENCODING |
|
static String |
FEATURES_FLAG |
|
static String |
FORCE_FLAG |
|
static String |
GRACE_VERSION_FLAG |
|
protected static String |
GRADLE_PROPERTIES |
|
static String |
INPLACE_FLAG |
|
static String |
JAVASCRIPT_FLAG |
|
static String |
MINIMAL_FLAG |
|
static String |
NAME |
|
static String |
PACKAGE_NAME_FLAG |
|
static String |
PROFILE_FLAG |
|
static String[] |
SUPPORT_GRACE_VERSIONS |
|
static String[] |
SUPPORT_SPRING_BOOT_VERSIONS |
|
static String |
TEMPLATE_FLAG |
|
static String |
UNZIP_PROFILE_TEMP_DIR |
|
static String |
UNZIP_TEMPLATE_TEMP_DIR |
Type | Name and description |
---|---|
static String |
EXAMPLES |
static String |
USAGE |
CommandDescription |
description |
ProfileRepository |
profileRepository |
Properties inherited from class | Properties |
---|---|
class ArgumentCompletingCommand |
cliParser |
Constructor and description |
---|
CreateAppCommand() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
applyApplicationTemplate(GrailsConsoleAntBuilder ant, GrailsConsole console, String appName, String template, File projectTargetDirectory, boolean verbose, boolean quiet) |
|
protected int |
complete(CommandLine commandLine, CommandDescription desc, List<CharSequence> candidates, int cursor) |
|
protected void |
copyApplicationTemplate(GrailsConsoleAntBuilder ant, GrailsConsole console, String appName, String groupName, String packageName, Profile profile, List<Feature> features, String templateUrl, String grailsVersion, Map<String, String> variables, Map<String, String> args, File targetDirectory, boolean verbose, boolean quiet) |
|
protected void |
copySkeleton(GrailsConsoleAntBuilder ant, Profile profile, Profile participatingProfile, Map<String, String> variables, Map<String, Object> binding, File targetDirectory, Map<URL, File> unzippedDirectories) |
|
protected void |
copySrcToTarget(GrailsConsoleAntBuilder ant, File srcDir, List excludes, Set<String> binaryFileExtensions, Map<String, String> variables, File targetDirectory) |
|
protected List<Feature> |
evaluateFeatures(Profile profile, List<String> requestedFeatures, List<String> skippedFeatures, GrailsConsole console) |
|
protected void |
generateMinimalProject(GrailsConsoleAntBuilder ant, String grailsVersion, File targetDirectory) |
|
protected void |
generateProjectSkeleton(GrailsConsoleAntBuilder ant, String appName, String groupName, String packageName, Profile profileInstance, List<Feature> features, String templateUrl, String grailsVersion, Map<String, String> variables, Map<String, String> args, File projectTargetDirectory, boolean verbose, boolean quiet) |
|
protected String |
getDefaultProfile() |
|
protected File |
getDestinationDirectory(File srcFile, File targetDirectory) |
|
String |
getName() |
|
boolean |
handle(ExecutionContext executionContext) |
|
boolean |
handle(CreateAppCommand.CreateAppCommandObject cmd) |
|
protected void |
populateDescription() |
|
protected void |
printCommandHelp(GrailsConsole console) |
|
protected void |
replaceBuildTokens(GrailsConsoleAntBuilder ant, String profileName, Profile profile, List<Feature> features, Map<String, String> variables, Map<String, String> args, String grailsVersion, File targetDirectory) |
|
protected void |
updateSpringDependencies(GrailsConsoleAntBuilder ant, String grailsVersion, String springBootVersion, File targetDirectory) |
|
protected boolean |
validateProfile(Profile profileInstance, String profileName, GrailsConsole console) |
Methods inherited from class | Name |
---|---|
class ArgumentCompletingCommand |
complete, complete |