public interface Profile
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 |
|---|---|---|
|
public Set<String> |
getBinaryExtensions()
|
|
public List<String> |
getBuildMergeProfileNames()
|
|
public List<String> |
getBuildPlugins()
|
|
public List<String> |
getBuildRepositories()
|
|
public Command |
getCommand(ProjectContext context, String name)Obtain a command by name |
|
public Iterable<Command> |
getCommands(ProjectContext context)The profile Command instances |
|
public Iterable<Completer> |
getCompleters(ProjectContext context)The profile completers |
|
public NavigableMap |
getConfiguration()
|
|
public Iterable<Feature> |
getDefaultFeatures()
|
|
public List<Dependency> |
getDependencies()
|
|
public String |
getDescription()
|
|
public Set<String> |
getExecutablePatterns()
|
|
public Iterable<Profile> |
getExtends()The other Profile instances that this Profile extends |
|
public Iterable<Feature> |
getFeatures()
|
|
public String |
getInstructions()
|
|
public List<Command> |
getInternalCommands()The profile's internal Command instances |
|
public Iterable<Feature> |
getInternalFeatures()
|
|
public String |
getName()
|
|
public String |
getParentSkeletonDir()
|
|
public File |
getParentSkeletonDir(File parent)
|
|
public Resource |
getProfileDir()
|
|
public List<String> |
getRepositories()
|
|
public Iterable<Feature> |
getRequiredFeatures()
|
|
public List<String> |
getSkeletonExcludes()
|
|
public Resource |
getTemplate(String path)Obtain a template by path |
|
public String |
getVersion()
|
|
public boolean |
handleCommand(ExecutionContext context)Obtains a Command |
|
public boolean |
hasCommand(ProjectContext context, 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
The profile's internal Command instances
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