CreateAppCommand (Grails 3.1.1)
Date: 2016-02-04

Package: org.grails.cli.profile.commands

## [Groovy] Class CreateAppCommand

- org.grails.cli.profile.commands.CreateAppCommand

- All Implemented Interfaces and Traits:
    ProfileRepositoryAware

      @groovy.transform.CompileStatic
      class CreateAppCommand
      extends ArgumentCompletingCommand

  Command for creating Grails applications

  Authors:
    Graeme Rocher
    Lari Hotari
  Since:
    3.0

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `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` |

  - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `java.lang.String` | `appname`
    `java.util.List<java.lang.String>` | `binaryFileExtensions`
    `CommandDescription` | `description`
    `java.lang.String` | `groupname`
    `ProfileRepository` | `profileRepository`
    `java.io.File` | `targetDirectory`
    `java.util.Map<java.lang.String, java.lang.String>` | `variables`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `CreateAppCommand ()`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `protected int` | `complete(CommandLine commandLine, CommandDescription desc, java.util.List<java.lang.CharSequence> candidates, int cursor)`
    `protected void` | `copySrcToTarget(GrailsConsoleAntBuilder ant, java.io.File srcDir, java.util.List excludes)`
    `protected java.lang.Iterable<Feature>` | `evaluateFeatures(Profile profile, CommandLine commandLine)`
    `protected java.lang.String` | `evaluateProfileName(CommandLine mainCommandLine)`
    `protected java.lang.String` | `getDefaultProfile()`
    `java.lang.String` | `getName()`
    `boolean` | `handle(ExecutionContext executionContext)`
    `protected boolean` | `initializeVariables(Profile profile, CommandLine commandLine)`
    `protected void` | `populateDescription()`
    `protected void` | `replaceBuildTokens(java.lang.String profileCoords, Profile profile, java.util.List<Feature> features, java.io.File targetDirectory)`
    `protected java.lang.String` | `resolveArtifactString(org.eclipse.aether.graph.Dependency dep)`
    `protected java.io.File` | `unzipProfile(groovy.util.AntBuilder ant, Resource location)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class ArgumentCompletingCommand` | `complete, complete`
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Field Detail

    - #### public static final java.lang.String ENCODING

    - #### public static final java.lang.String FEATURES_FLAG

    - #### public static final java.lang.String INPLACE_FLAG

    - #### public static final java.lang.String NAME

    - #### public static final java.lang.String PROFILE_FLAG

  - ### Property Detail

    - #### java.lang.String appname

    - #### java.util.List<java.lang.String> binaryFileExtensions

    - #### CommandDescription description

    - #### java.lang.String groupname

    - #### ProfileRepository profileRepository

    - #### java.io.File targetDirectory

    - #### java.util.Map<java.lang.String, java.lang.String> variables

  - ### Constructor Detail

    - #### CreateAppCommand()

  - ### Method Detail

    - #### @java.lang.Override protected int complete(CommandLine commandLine, CommandDescription desc, java.util.List<java.lang.CharSequence> candidates, int cursor)

    - #### @groovy.transform.CompileDynamic protected void copySrcToTarget(GrailsConsoleAntBuilder ant, java.io.File srcDir, java.util.List excludes)

    - #### protected java.lang.Iterable<Feature> evaluateFeatures(Profile profile, CommandLine commandLine)

    - #### protected java.lang.String evaluateProfileName(CommandLine mainCommandLine)

    - #### protected java.lang.String getDefaultProfile()

    - #### @java.lang.Override java.lang.String getName()

    - #### @java.lang.Override boolean handle(ExecutionContext executionContext)

    - #### protected boolean initializeVariables(Profile profile, CommandLine commandLine)

    - #### protected void populateDescription()

    - #### @groovy.transform.CompileDynamic protected void replaceBuildTokens(java.lang.String profileCoords, Profile profile, java.util.List<Feature> features, java.io.File targetDirectory)

    - #### protected java.lang.String resolveArtifactString(org.eclipse.aether.graph.Dependency dep)

    - #### @groovy.transform.CompileDynamic protected java.io.File unzipProfile(groovy.util.AntBuilder ant, Resource location)