org.gradle.plugins.ide.internal.generator.generator.PersistableConfigurationObjectpublic class Module
extends org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
| Constructor | Description |
|---|---|
Module(org.gradle.internal.xml.XmlTransformer withXmlActions,
PathFactory pathFactory) |
| Modifier and Type | Method | Description |
|---|---|---|
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) |
|
boolean |
equals(Object o) |
|
Path |
getContentPath() |
The directory for the content root of the module.
|
protected String |
getDefaultResourceName() |
|
Set<Dependency> |
getDependencies() |
The dependencies of this module.
|
Set<Path> |
getExcludeFolders() |
The directories to be excluded.
|
Set<Path> |
getGeneratedSourceFolders() |
The directories containing generated the production sources.
|
String |
getJdkName() |
|
Path |
getOutputDir() |
The output directory for production classes.
|
Set<Path> |
getResourceFolders() |
The directories containing resources.
|
Set<Path> |
getSourceFolders() |
The directories containing the production sources.
|
Path |
getTestOutputDir() |
The output directory for test classes.
|
Set<Path> |
getTestResourceFolders() |
The directories containing test resources.
|
Set<Path> |
getTestSourceFolders() |
The directories containing the test sources.
|
int |
hashCode() |
|
protected boolean |
isDependencyOrderEntry(Object orderEntry) |
|
boolean |
isInheritOutputDirs() |
If true, output directories for this module will be located below the output directory for the project;
otherwise,
outputDir and testOutputDir will take effect. |
protected void |
load(Node xml) |
|
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 |
store(Node xml) |
|
String |
toString() |
findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformActionpublic static final String INHERITED
public Module(org.gradle.internal.xml.XmlTransformer withXmlActions,
PathFactory pathFactory)
public Path getContentPath()
public void setContentPath(Path contentPath)
public Set<Path> getSourceFolders()
public Set<Path> getTestSourceFolders()
@Incubating public Set<Path> getResourceFolders()
@Incubating public void setResourceFolders(Set<Path> resourceFolders)
@Incubating public Set<Path> getTestResourceFolders()
@Incubating public void setTestResourceFolders(Set<Path> testResourceFolders)
public Set<Path> getGeneratedSourceFolders()
public Set<Path> getExcludeFolders()
public boolean isInheritOutputDirs()
outputDir and testOutputDir will take effect.public void setInheritOutputDirs(boolean inheritOutputDirs)
public Path getOutputDir()
null, no entry will be created.public void setOutputDir(Path outputDir)
public Path getTestOutputDir()
null, no entry will be created.public void setTestOutputDir(Path testOutputDir)
public Set<Dependency> getDependencies()
public void setDependencies(Set<Dependency> dependencies)
public String getJdkName()
public void setJdkName(String jdkName)
protected String getDefaultResourceName()
getDefaultResourceName in class org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObjectprotected 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)
protected void load(Node xml)
load in class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObjectprotected void store(Node xml)
store in class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObjectprotected boolean isDependencyOrderEntry(Object orderEntry)