org.gradle.plugins.ide.internal.generator.generator.PersistableConfigurationObject
public 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> 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> |
getSourceFolders() |
The directories containing the production sources.
|
Path |
getTestOutputDir() |
The output directory for test classes.
|
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 |
setSourceFolders(Set<Path> sourceFolders) |
|
void |
setTestOutputDir(Path testOutputDir) |
|
void |
setTestSourceFolders(Set<Path> testSourceFolders) |
|
protected void |
store(Node xml) |
|
String |
toString() |
load, loadDefaults, store
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformAction
public 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()
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.AbstractPersistableConfigurationObject
protected Object configure(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)
protected void load(Node xml)
load
in class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
protected void store(Node xml)
store
in class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
protected boolean isDependencyOrderEntry(Object orderEntry)