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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModule(org.gradle.internal.xml.XmlTransformer withXmlActions, PathFactory pathFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectconfigure(Path contentPath, Set<Path> sourceFolders, Set<Path> testSourceFolders, Set<Path> generatedSourceFolders, Set<Path> excludeFolders, Boolean inheritOutputDirs, Path outputDir, Path testOutputDir, Set<Dependency> dependencies, String jdkName, String languageLevel) booleanThe directory for the content root of the module.protected StringThe 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 the production sources.The output directory for test classes.The directories containing the test sources.inthashCode()protected booleanisDependencyOrderEntry(Object orderEntry) booleanIf true, output directories for this module will be located below the output directory for the project; otherwise,outputDirandtestOutputDirwill take effect.protected voidvoidsetContentPath(Path contentPath) voidsetDependencies(Set<Dependency> dependencies) voidsetExcludeFolders(Set<Path> excludeFolders) voidsetGeneratedSourceFolders(Set<Path> generatedSourceFolders) voidsetInheritOutputDirs(boolean inheritOutputDirs) voidsetJdkName(String jdkName) voidsetOutputDir(Path outputDir) voidsetSourceFolders(Set<Path> sourceFolders) voidsetTestOutputDir(Path testOutputDir) voidsetTestSourceFolders(Set<Path> testSourceFolders) protected voidtoString()Methods inherited from class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformActionMethods 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
-
setSourceFolders
-
getTestSourceFolders
-
setTestSourceFolders
-
getGeneratedSourceFolders
-
setGeneratedSourceFolders
-
getExcludeFolders
-
setExcludeFolders
-
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
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:
getDefaultResourceNamein classorg.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
-
configure
-
load
- Overrides:
loadin classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
store
- Overrides:
storein classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
isDependencyOrderEntry
-
toString
-
equals
-
hashCode
-