An abstract implementation of processing AsakusafwOrganizerProfile.
Type | Name and description |
---|---|
AsakusafwOrganizerProfile |
profile The target profile. |
org.gradle.api.Project |
project The current project. |
Constructor and description |
---|
AbstractOrganizer
(org.gradle.api.Project project, AsakusafwOrganizerProfile profile) Creates a new instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
org.gradle.api.artifacts.Configuration |
configuration(java.lang.String name) Returns the configuration for the profile. |
|
void |
configureProfile() Configures the target profile. |
|
protected void |
createAttachComponentTasks(java.lang.String prefix, java.util.Map<java.lang.String, groovy.lang.Closure<?>> actionMap) Adds a new task for attaching components into the assembly for the profile. |
|
protected org.gradle.api.artifacts.Configuration |
createConfiguration(java.lang.String name, groovy.lang.Closure<?> configurator) Adds a new configuration for the profile. |
|
protected void |
createConfigurations(java.lang.String prefix, java.util.Map<java.lang.String, java.lang.String> confMap) Adds new configurations into the current project for the profile. |
|
protected void |
createDependencies(java.lang.String prefix, java.util.Map<java.lang.String, java.lang.Object> depsMap) Adds dependencies into the current project for the profile. |
|
protected org.gradle.api.artifacts.Dependency |
createDependency(java.lang.String configurationName, java.lang.Object notation) Adds a new dependency for the profile. |
|
protected org.gradle.api.Task |
createTask(java.lang.String name, java.lang.Class<? extends org.gradle.api.Task> parent, groovy.lang.Closure<?> configurator) Creates a new task for the profile. |
|
protected org.gradle.api.Task |
createTask(java.lang.String name) Creates a new task for the profile. |
|
protected org.gradle.api.Task |
createTask(java.lang.String name, groovy.lang.Closure<?> configurator) Creates a new task for the profile. |
|
java.lang.String |
getName() Returns the profile name. |
|
protected boolean |
isProfileTask(org.gradle.api.Task task) Returns whether the target task is for the profile or not. |
|
protected java.lang.String |
qualify(java.lang.String name) Returns the qualified name for the profile. |
|
org.gradle.api.Task |
task(java.lang.String name) Returns the task for the profile. |
|
java.lang.String |
taskName(java.lang.String name) Returns the task name for the profile. |
Methods inherited from class | Name |
---|---|
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() |
The target profile.
The current project.
Creates a new instance.
project
- the current projectprofile
- the target profileReturns the configuration for the profile.
name
- the bare task nameConfigures the target profile.
Adds a new task for attaching components into the assembly for the profile.
prefix
- the common task name prefixactionMap
- task name => task action
mapAdds a new configuration for the profile.
name
- the configuration nameconfigurator
- the callback for customizing the target configurationAdds new configurations into the current project for the profile.
prefix
- the common configuration name prefixconfMap
- name => description
mapAdds dependencies into the current project for the profile.
prefix
- the common configuration name prefixdepsMap
- configuration name => dependencies
map:
dependencies
can be a dependency notation or its collectionAdds a new dependency for the profile.
configurationName
- the target configuration namenotation
- the dependency notationCreates a new task for the profile.
name
- the task nameparent
- the super class of the taskconfigurator
- the callback for configuring the target taskCreates a new task for the profile.
name
- the task nameCreates a new task for the profile.
name
- the task nameconfigurator
- the callback for configuring the target taskReturns the profile name.
Returns whether the target task is for the profile or not.
task
- the target tasktrue
if the target task is for the profile, otherwise false
Returns the qualified name for the profile.
name
- the original nameReturns the task for the profile.
name
- the bare task nameReturns the task name for the profile.
name
- the bare task nameCopyright 2011-2019 Asakusa Framework Team.