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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionModule(org.gradle.internal.xml.XmlTransformer withXmlActions, PathFactory pathFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected Objectconfigure(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) 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 resources.The directories containing the production sources.The output directory for test classes.The directories containing test resources.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) voidsetResourceFolders(Set<Path> resourceFolders) Sets the directories containing resources.voidsetSourceFolders(Set<Path> sourceFolders) voidsetTestOutputDir(Path testOutputDir) voidsetTestResourceFolders(Set<Path> testResourceFolders) Sets the directories containing test resources.voidsetTestSourceFolders(Set<Path> testSourceFolders) protected voidtoString()Methods inherited from class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObjectfindFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformActionMethods inherited from class org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObjectload, loadDefaults, store
- 
Field Details- 
INHERITED- See Also:
 
 
- 
- 
Constructor Details- 
Module
 
- 
- 
Method Details- 
getContentPathThe 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
- 
getSourceFoldersThe directories containing the production sources. Must not be null.
- 
setSourceFolders
- 
getTestSourceFoldersThe directories containing the test sources. Must not be null.
- 
setTestSourceFolders
- 
getResourceFoldersThe directories containing resources. Must not be null.- Since:
- 4.7
 
- 
setResourceFoldersSets the directories containing resources.- Since:
- 4.7
 
- 
getTestResourceFoldersThe directories containing test resources. Must not be null.- Since:
- 4.7
 
- 
setTestResourceFoldersSets the directories containing test resources.- Since:
- 4.7
 
- 
getGeneratedSourceFoldersThe directories containing generated the production sources. Must not be null.
- 
setGeneratedSourceFolders
- 
getExcludeFoldersThe directories to be excluded. Must not be null.
- 
setExcludeFolders
- 
isInheritOutputDirspublic boolean isInheritOutputDirs()If true, output directories for this module will be located below the output directory for the project; otherwise,outputDirandtestOutputDirwill take effect.
- 
setInheritOutputDirspublic void setInheritOutputDirs(boolean inheritOutputDirs) 
- 
getOutputDirThe output directory for production classes. Ifnull, no entry will be created.
- 
setOutputDir
- 
getTestOutputDirThe output directory for test classes. Ifnull, no entry will be created.
- 
setTestOutputDir
- 
getDependenciesThe dependencies of this module. Must not be null.
- 
setDependencies
- 
getJdkName
- 
setJdkName
- 
getDefaultResourceName- Specified by:
- getDefaultResourceNamein class- org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
 
- 
configureprotected 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:
- loadin class- org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
 
- 
store- Overrides:
- storein class- org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
 
- 
isDependencyOrderEntry
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-