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.XmlPersistableConfigurationObject
Represents the customizable elements of an iml (via XML hooks everything of the iml is customizable).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionModule
(org.gradle.internal.xml.XmlTransformer withXmlActions, PathFactory pathFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
configure
(Path contentPath, Set<Path> sourceFolders, Set<Path> testSourceFolders, Set<Path> resourceFolders, Set<Path> testResourceFolders, Set<Path> generatedSourceFolders, Set<Path> excludeFolders, Boolean inheritOutputDirs, Path outputDir, Path testOutputDir, Set<Dependency> dependencies, String jdkName, String languageLevel) boolean
The directory for the content root of the module.protected String
The dependencies of this module.The directories to be excluded.The directories containing generated the production sources.The output directory for production classes.The directories containing resources.The directories containing the production sources.The output directory for test classes.The directories containing test resources.The directories containing the test sources.int
hashCode()
protected boolean
isDependencyOrderEntry
(Object orderEntry) boolean
If true, output directories for this module will be located below the output directory for the project; otherwise,outputDir
andtestOutputDir
will take effect.protected void
void
setContentPath
(Path contentPath) void
setDependencies
(Set<Dependency> dependencies) void
setExcludeFolders
(Set<Path> excludeFolders) void
setGeneratedSourceFolders
(Set<Path> generatedSourceFolders) void
setInheritOutputDirs
(boolean inheritOutputDirs) void
setJdkName
(String jdkName) void
setOutputDir
(Path outputDir) void
setResourceFolders
(Set<Path> resourceFolders) Sets the directories containing resources.void
setSourceFolders
(Set<Path> sourceFolders) void
setTestOutputDir
(Path testOutputDir) void
setTestResourceFolders
(Set<Path> testResourceFolders) Sets the directories containing test resources.void
setTestSourceFolders
(Set<Path> testSourceFolders) protected void
toString()
Methods inherited from class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformAction
Methods inherited from class org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
load, loadDefaults, store
-
Field Details
-
INHERITED
- See Also:
-
-
Constructor Details
-
Module
-
-
Method Details
-
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
-
getSourceFolders
The directories containing the production sources. Must not be null. -
setSourceFolders
-
getTestSourceFolders
The directories containing the test sources. Must not be null. -
setTestSourceFolders
-
getResourceFolders
The directories containing resources. Must not be null.- Since:
- 4.7
-
setResourceFolders
Sets the directories containing resources.- Since:
- 4.7
-
getTestResourceFolders
The directories containing test resources. Must not be null.- Since:
- 4.7
-
setTestResourceFolders
Sets the directories containing test resources.- Since:
- 4.7
-
getGeneratedSourceFolders
The directories containing generated the production sources. Must not be null. -
setGeneratedSourceFolders
-
getExcludeFolders
The directories to be excluded. Must not be null. -
setExcludeFolders
-
isInheritOutputDirs
public boolean isInheritOutputDirs()If true, output directories for this module will be located below the output directory for the project; otherwise,outputDir
andtestOutputDir
will take effect. -
setInheritOutputDirs
public void setInheritOutputDirs(boolean inheritOutputDirs) -
getOutputDir
The output directory for production classes. Ifnull
, no entry will be created. -
setOutputDir
-
getTestOutputDir
The output directory for test classes. Ifnull
, no entry will be created. -
setTestOutputDir
-
getDependencies
The dependencies of this module. Must not be null. -
setDependencies
-
getJdkName
-
setJdkName
-
getDefaultResourceName
- Specified by:
getDefaultResourceName
in classorg.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
-
configure
protected Object configure(Path contentPath, Set<Path> sourceFolders, Set<Path> testSourceFolders, Set<Path> resourceFolders, Set<Path> testResourceFolders, Set<Path> generatedSourceFolders, Set<Path> excludeFolders, Boolean inheritOutputDirs, Path outputDir, Path testOutputDir, Set<Dependency> dependencies, String jdkName, String languageLevel) -
load
- Overrides:
load
in classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
store
- Overrides:
store
in classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
isDependencyOrderEntry
-
toString
-
equals
-
hashCode
public int hashCode()
-