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 | Name and description |
---|---|
java.util.List<java.lang.String> |
getBuildMergeProfileNames() @return The profile names to participate in build merge |
java.util.List<java.lang.String> |
getBuildPlugins() @return The list of build plugins for this profile |
java.util.List<java.lang.String> |
getBuildRepositories() @return The buildscript maven repository definitions for this profile |
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() @return The profiles configuration |
java.lang.Iterable<Feature> |
getDefaultFeatures() @return The default features for this profile |
java.util.List<org.eclipse.aether.graph.Dependency> |
getDependencies() @return The dependency definitions for this profile |
java.lang.String |
getDescription() @return The description of the profile |
java.lang.Iterable<Profile> |
getExtends() The other Profile instances that this Profile extends |
java.lang.Iterable<Feature> |
getFeatures() @return The features for this profile |
java.lang.String |
getName() @return The name of the profile |
Resource |
getProfileDir() @return The directory where the profile is located locally |
java.util.List<java.lang.String> |
getRepositories() @return The maven repository definitions for this profile |
java.lang.Iterable<Feature> |
getRequiredFeatures() @return The required features for this profile |
Resource |
getTemplate(java.lang.String path) Obtain a template by path |
java.lang.String |
getVersion() @return The version of the profile |
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