A Profile defines an active code generation and command execution policy. For example the "web" profile allows the execution of code gen and build commands that relate to web applications
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Set<java.lang.String> |
getBinaryExtensions()
|
|
java.util.List<java.lang.String> |
getBuildMergeProfileNames()
|
|
java.util.List<java.lang.String> |
getBuildPlugins()
|
|
java.util.List<java.lang.String> |
getBuildRepositories()
|
|
Command |
getCommand(ProjectContext context, java.lang.String name) Obtain a command by name |
|
java.lang.Iterable<Command> |
getCommands(ProjectContext context) The profile Command instances |
|
java.lang.Iterable<jline.console.completer.Completer> |
getCompleters(ProjectContext context) The profile completers |
|
NavigableMap |
getConfiguration()
|
|
java.lang.Iterable<Feature> |
getDefaultFeatures()
|
|
java.util.List<Dependency> |
getDependencies()
|
|
java.lang.String |
getDescription()
|
|
java.util.Set<java.lang.String> |
getExecutablePatterns()
|
|
java.lang.Iterable<Profile> |
getExtends() The other Profile instances that this Profile extends |
|
java.lang.Iterable<Feature> |
getFeatures()
|
|
java.lang.String |
getInstructions()
|
|
java.lang.String |
getName()
|
|
java.lang.String |
getParentSkeletonDir()
|
|
File |
getParentSkeletonDir(File parent)
|
|
Resource |
getProfileDir()
|
|
java.util.List<java.lang.String> |
getRepositories()
|
|
java.lang.Iterable<Feature> |
getRequiredFeatures()
|
|
java.util.List<java.lang.String> |
getSkeletonExcludes()
|
|
Resource |
getTemplate(java.lang.String path) Obtain a template by path |
|
java.lang.String |
getVersion()
|
|
boolean |
handleCommand(ExecutionContext context) Obtains a Command |
|
boolean |
hasCommand(ProjectContext context, java.lang.String name) Whether a command executes for the given context and name |
Obtain a command by name
name
- Obtain a command by nameThe profile Command instances
context
- The ProjectContext instanceThe profile completers
context
- The ProjectContext instance
The other Profile instances that this Profile extends
Obtain a template by path
path
- The path to template
Obtains a Command
Whether a command executes for the given context and name
context
- The ProjectContextname
- The command name