Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, Configurable<Task>@DisableCachingByDefault(because="Not made cacheable, yet") public class GenerateIdeaModule extends XmlGeneratorTask<Module>
Please refer to interesting examples on idea configuration in IdeaModule.
At this moment nearly all configuration is done via IdeaModule.
Task.NamerafterConfigured, beforeConfigured, domainObject, generatorTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor | Description |
|---|---|
GenerateIdeaModule() |
|
GenerateIdeaModule(IdeaModule module) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
configure(Module xmlModule) |
|
protected Module |
create() |
|
IdeaModule |
getModule() |
The Idea module model containing the details required to generate the module file.
|
File |
getOutputFile() |
Configures output *.iml file.
|
org.gradle.internal.xml.XmlTransformer |
getXmlTransformer() |
|
void |
setModule(IdeaModule module) |
|
void |
setOutputFile(File newOutputFile) |
Sets the output file to write the final configuration to.
|
getIncremental, getInputFile, getInputFileIfExists, getInstantiator, setInputFileconventionMapping, conventionMapping, getConventionMappingcompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getReasonNotToTrackState, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNotTrackState, getConventionpublic GenerateIdeaModule()
@Inject public GenerateIdeaModule(IdeaModule module)
protected Module create()
create in class XmlGeneratorTask<Module>protected void configure(Module xmlModule)
configure in class XmlGeneratorTask<Module>public org.gradle.internal.xml.XmlTransformer getXmlTransformer()
getXmlTransformer in class XmlGeneratorTask<Module>public File getOutputFile()
Please refer to documentation in IdeaModule name property. In IntelliJ IDEA
the module name is the same as the name of the *.iml file.
getOutputFile in class GeneratorTask<Module>public void setOutputFile(File newOutputFile)
GeneratorTasksetOutputFile in class GeneratorTask<Module>newOutputFile - The output file.@Internal public IdeaModule getModule()
public void setModule(IdeaModule module)