Class Module
- java.lang.Object
-
- org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
-
- org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
- org.gradle.plugins.ide.idea.model.Module
-
- All Implemented Interfaces:
org.gradle.plugins.ide.internal.generator.generator.PersistableConfigurationObject
public class Module extends org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObjectRepresents the customizable elements of an iml (via XML hooks everything of the iml is customizable).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINHERITED
-
Constructor Summary
Constructors Constructor Description Module(org.gradle.internal.xml.XmlTransformer withXmlActions, PathFactory pathFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectconfigure(Path contentPath, java.util.Set<Path> sourceFolders, java.util.Set<Path> testSourceFolders, java.util.Set<Path> resourceFolders, java.util.Set<Path> testResourceFolders, java.util.Set<Path> generatedSourceFolders, java.util.Set<Path> excludeFolders, java.lang.Boolean inheritOutputDirs, Path outputDir, Path testOutputDir, java.util.Set<Dependency> dependencies, java.lang.String jdkName, java.lang.String languageLevel)booleanequals(java.lang.Object o)PathgetContentPath()The directory for the content root of the module.protected java.lang.StringgetDefaultResourceName()java.util.Set<Dependency>getDependencies()The dependencies of this module.java.util.Set<Path>getExcludeFolders()The directories to be excluded.java.util.Set<Path>getGeneratedSourceFolders()The directories containing generated the production sources.java.lang.StringgetJdkName()PathgetOutputDir()The output directory for production classes.java.util.Set<Path>getResourceFolders()The directories containing resources.java.util.Set<Path>getSourceFolders()The directories containing the production sources.PathgetTestOutputDir()The output directory for test classes.java.util.Set<Path>getTestResourceFolders()The directories containing test resources.java.util.Set<Path>getTestSourceFolders()The directories containing the test sources.inthashCode()protected booleanisDependencyOrderEntry(java.lang.Object orderEntry)booleanisInheritOutputDirs()If true, output directories for this module will be located below the output directory for the project; otherwise,outputDirandtestOutputDirwill take effect.protected voidload(Node xml)voidsetContentPath(Path contentPath)voidsetDependencies(java.util.Set<Dependency> dependencies)voidsetExcludeFolders(java.util.Set<Path> excludeFolders)voidsetGeneratedSourceFolders(java.util.Set<Path> generatedSourceFolders)voidsetInheritOutputDirs(boolean inheritOutputDirs)voidsetJdkName(java.lang.String jdkName)voidsetOutputDir(Path outputDir)voidsetResourceFolders(java.util.Set<Path> resourceFolders)Sets the directories containing resources.voidsetSourceFolders(java.util.Set<Path> sourceFolders)voidsetTestOutputDir(Path testOutputDir)voidsetTestResourceFolders(java.util.Set<Path> testResourceFolders)Sets the directories containing test resources.voidsetTestSourceFolders(java.util.Set<Path> testSourceFolders)protected voidstore(Node xml)java.lang.StringtoString()-
Methods inherited from class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformAction
-
-
-
-
Field Detail
-
INHERITED
public static final java.lang.String INHERITED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Module
public Module(org.gradle.internal.xml.XmlTransformer withXmlActions, PathFactory pathFactory)
-
-
Method Detail
-
getContentPath
public Path getContentPath()
The directory for the content root of the module. Defaults to the project directory. If null, the directory containing the output file will be used.
-
setContentPath
public void setContentPath(Path contentPath)
-
getSourceFolders
public java.util.Set<Path> getSourceFolders()
The directories containing the production sources. Must not be null.
-
setSourceFolders
public void setSourceFolders(java.util.Set<Path> sourceFolders)
-
getTestSourceFolders
public java.util.Set<Path> getTestSourceFolders()
The directories containing the test sources. Must not be null.
-
setTestSourceFolders
public void setTestSourceFolders(java.util.Set<Path> testSourceFolders)
-
getResourceFolders
public java.util.Set<Path> getResourceFolders()
The directories containing resources. Must not be null.- Since:
- 4.7
-
setResourceFolders
public void setResourceFolders(java.util.Set<Path> resourceFolders)
Sets the directories containing resources.- Since:
- 4.7
-
getTestResourceFolders
public java.util.Set<Path> getTestResourceFolders()
The directories containing test resources. Must not be null.- Since:
- 4.7
-
setTestResourceFolders
public void setTestResourceFolders(java.util.Set<Path> testResourceFolders)
Sets the directories containing test resources.- Since:
- 4.7
-
getGeneratedSourceFolders
public java.util.Set<Path> getGeneratedSourceFolders()
The directories containing generated the production sources. Must not be null.
-
setGeneratedSourceFolders
public void setGeneratedSourceFolders(java.util.Set<Path> generatedSourceFolders)
-
getExcludeFolders
public java.util.Set<Path> getExcludeFolders()
The directories to be excluded. Must not be null.
-
setExcludeFolders
public void setExcludeFolders(java.util.Set<Path> excludeFolders)
-
isInheritOutputDirs
public boolean isInheritOutputDirs()
If true, output directories for this module will be located below the output directory for the project; otherwise,outputDirandtestOutputDirwill take effect.
-
setInheritOutputDirs
public void setInheritOutputDirs(boolean inheritOutputDirs)
-
getOutputDir
public Path getOutputDir()
The output directory for production classes. Ifnull, no entry will be created.
-
setOutputDir
public void setOutputDir(Path outputDir)
-
getTestOutputDir
public Path getTestOutputDir()
The output directory for test classes. Ifnull, no entry will be created.
-
setTestOutputDir
public void setTestOutputDir(Path testOutputDir)
-
getDependencies
public java.util.Set<Dependency> getDependencies()
The dependencies of this module. Must not be null.
-
setDependencies
public void setDependencies(java.util.Set<Dependency> dependencies)
-
getJdkName
public java.lang.String getJdkName()
-
setJdkName
public void setJdkName(java.lang.String jdkName)
-
getDefaultResourceName
protected java.lang.String getDefaultResourceName()
- Specified by:
getDefaultResourceNamein classorg.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
-
configure
protected java.lang.Object configure(Path contentPath, java.util.Set<Path> sourceFolders, java.util.Set<Path> testSourceFolders, java.util.Set<Path> resourceFolders, java.util.Set<Path> testResourceFolders, java.util.Set<Path> generatedSourceFolders, java.util.Set<Path> excludeFolders, java.lang.Boolean inheritOutputDirs, Path outputDir, Path testOutputDir, java.util.Set<Dependency> dependencies, java.lang.String jdkName, java.lang.String languageLevel)
-
load
protected void load(Node xml)
- Overrides:
loadin classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
store
protected void store(Node xml)
- Overrides:
storein classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
isDependencyOrderEntry
protected boolean isDependencyOrderEntry(java.lang.Object orderEntry)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-