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.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<Profile> |
getExtends() The other Profile instances that this Profile extends |
java.lang.String |
getName() @return The name of the profile |
java.io.File |
getProfileDir() @return The directory where the profile is located locally |
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 |
The profile Command instances
context
- The ProjectContext instanceThe profile completers
context
- The ProjectContext instance
The other Profile instances that this Profile extends
Obtains a Command
Whether a command executes for the given context and name
context
- The ProjectContextname
- The command name