Groovy Documentation

org.gradle.plugins.idea
[Groovy] Class IdeaModule

java.lang.Object
  org.gradle.api.internal.ConventionTask
      org.gradle.api.tasks.GeneratorTask
          org.gradle.api.tasks.XmlGeneratorTask
              org.gradle.plugins.idea.IdeaModule

class IdeaModule
extends XmlGeneratorTask

Generates an IDEA module file.

Authors:
Hans Dockter


Field Summary
 
Fields inherited from class GeneratorTask
generator
 
Property Summary
boolean downloadJavadoc

Whether to download and add javadoc associated with the dependency jars.

boolean downloadSources

Whether to download and add sources associated with the dependency jars.

java.util.Set excludeDirs

The directories to be excluded.

java.lang.Boolean inheritOutputDirs

If true, output directories for this module will be located below the output directory for the project; otherwise, they will be set to the directories specified by outputDir and testOutputDir.

java.lang.String javaVersion

The JDK to use for this module.

java.io.File moduleDir

The content root directory of the module.

java.io.File outputDir

The output directory for production classes.

java.util.Map scopes

The keys of this map are the Intellij scopes.

java.util.Set sourceDirs

The directories containing the production sources.

java.io.File testOutputDir

The output directory for test classes.

java.util.Set testSourceDirs

The directories containing the test sources.

java.util.Map variables

The variables to be used for replacing absolute paths in the iml entries.

 
Method Summary
protected java.lang.Object addJavadocArtifact(DefaultExternalModuleDependency dependency)

protected java.lang.Object addSourceArtifact(DefaultExternalModuleDependency dependency)

protected void configure(Module module)

protected Module create()

protected java.util.Set getAllDeps(java.util.Set deps, java.util.Set allDeps = [])

protected Path getContentPath()

protected java.util.Set getDependencies()

protected java.util.Set getExcludePaths()

protected java.util.Set getModuleLibraries(java.lang.String scope)

protected java.util.Set getModules(java.lang.String scope)

protected Path getOutputPath()

protected Path getPath(java.io.File file)

protected PathFactory getPathFactory()

protected java.util.Set getSourcePaths()

protected Path getTestOutputPath()

protected java.util.Set getTestSourcePaths()

 
Methods inherited from class XmlGeneratorTask
configure, create, getXmlTransformer, withXml, withXml
 
Methods inherited from class GeneratorTask
beforeConfigured, beforeConfigured, getInputFile, getOutputFile, setInputFile, setOutputFile, whenConfigured, whenConfigured
 

Property Detail

downloadJavadoc

@Input
boolean downloadJavadoc
Whether to download and add javadoc associated with the dependency jars.


downloadSources

@Input
boolean downloadSources
Whether to download and add sources associated with the dependency jars.


excludeDirs

@Input
java.util.Set excludeDirs
The directories to be excluded.


inheritOutputDirs

@Input
@Optional
java.lang.Boolean inheritOutputDirs
If true, output directories for this module will be located below the output directory for the project; otherwise, they will be set to the directories specified by outputDir and testOutputDir.


javaVersion

@Input
@Optional
java.lang.String javaVersion
The JDK to use for this module. If null, the value of the existing or default ipr XML (inherited) is used. If it is set to inherited, the project SDK is used. Otherwise the SDK for the corresponding value of java version is used for this module


moduleDir

@Input
java.io.File moduleDir
The content root directory of the module.


outputDir

@Input
@Optional
java.io.File outputDir
The output directory for production classes. If null, no entry will be created.


scopes

java.util.Map scopes
The keys of this map are the Intellij scopes. Each key points to another map that has two keys, plus and minus. The values of those keys are sets of Configuration objects. The files of the plus configurations are added minus the files from the minus configurations.


sourceDirs

@Input
java.util.Set sourceDirs
The directories containing the production sources.


testOutputDir

@Input
@Optional
java.io.File testOutputDir
The output directory for test classes. If null, no entry will be created.


testSourceDirs

@Input
java.util.Set testSourceDirs
The directories containing the test sources.


variables

@Input
java.util.Map variables
The variables to be used for replacing absolute paths in the iml entries. For example, you might add a GRADLE_USER_HOME variable to point to the Gradle user home dir.


 
Method Detail

addJavadocArtifact

protected java.lang.Object addJavadocArtifact(DefaultExternalModuleDependency dependency)


addSourceArtifact

protected java.lang.Object addSourceArtifact(DefaultExternalModuleDependency dependency)


configure

@Override
protected void configure(Module module)


create

@Override
protected Module create()


getAllDeps

protected java.util.Set getAllDeps(java.util.Set deps, java.util.Set allDeps = [])


getContentPath

protected Path getContentPath()


getDependencies

protected java.util.Set getDependencies()


getExcludePaths

protected java.util.Set getExcludePaths()


getModuleLibraries

protected java.util.Set getModuleLibraries(java.lang.String scope)


getModules

protected java.util.Set getModules(java.lang.String scope)


getOutputPath

protected Path getOutputPath()


getPath

protected Path getPath(java.io.File file)


getPathFactory

protected PathFactory getPathFactory()


getSourcePaths

protected java.util.Set getSourcePaths()


getTestOutputPath

protected Path getTestOutputPath()


getTestSourcePaths

protected java.util.Set getTestSourcePaths()


 

Groovy Documentation