api / org.gradle.plugins.ide.idea.model / Module

Module

open class Module : XmlPersistableConfigurationObject

Represents the customizable elements of an iml (via XML hooks everything of the iml is customizable).

Constructors

<init>

Module(withXmlActions: XmlTransformer, pathFactory: PathFactory)

Properties

INHERITED

static val INHERITED: String

Functions

equals

open fun equals(o: Any): Boolean

getContentPath

open fun getContentPath(): Path

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.

getDependencies

open fun getDependencies(): MutableSet<Dependency>

The dependencies of this module. Must not be null.

getExcludeFolders

open fun getExcludeFolders(): MutableSet<Path>

The directories to be excluded. Must not be null.

getGeneratedSourceFolders

open fun getGeneratedSourceFolders(): MutableSet<Path>

The directories containing generated the production sources. Must not be null.

getJdkName

open fun getJdkName(): String

getOutputDir

open fun getOutputDir(): Path

The output directory for production classes. If null, no entry will be created.

getResourceFolders

open fun getResourceFolders(): MutableSet<Path>

The directories containing resources. Must not be null.

getSourceFolders

open fun getSourceFolders(): MutableSet<Path>

The directories containing the production sources. Must not be null.

getTestOutputDir

open fun getTestOutputDir(): Path

The output directory for test classes. If null, no entry will be created.

getTestResourceFolders

open fun getTestResourceFolders(): MutableSet<Path>

The directories containing test resources. Must not be null.

getTestSourceFolders

open fun getTestSourceFolders(): MutableSet<Path>

The directories containing the test sources. Must not be null.

hashCode

open fun hashCode(): Int

isInheritOutputDirs

open fun isInheritOutputDirs(): Boolean

If true, output directories for this module will be located below the output directory for the project; otherwise, #outputDir and #testOutputDir will take effect.

setContentPath

open fun setContentPath(contentPath: Path): Unit

setDependencies

open fun setDependencies(dependencies: MutableSet<Dependency>): Unit

setExcludeFolders

open fun setExcludeFolders(excludeFolders: MutableSet<Path>): Unit

setGeneratedSourceFolders

open fun setGeneratedSourceFolders(generatedSourceFolders: MutableSet<Path>): Unit

setInheritOutputDirs

open fun setInheritOutputDirs(inheritOutputDirs: Boolean): Unit

setJdkName

open fun setJdkName(jdkName: String): Unit

setOutputDir

open fun setOutputDir(outputDir: Path): Unit

setResourceFolders

open fun setResourceFolders(resourceFolders: MutableSet<Path>): Unit

Sets the directories containing resources.

setSourceFolders

open fun setSourceFolders(sourceFolders: MutableSet<Path>): Unit

setTestOutputDir

open fun setTestOutputDir(testOutputDir: Path): Unit

setTestResourceFolders

open fun setTestResourceFolders(testResourceFolders: MutableSet<Path>): Unit

Sets the directories containing test resources.

setTestSourceFolders

open fun setTestSourceFolders(testSourceFolders: MutableSet<Path>): Unit

toString

open fun toString(): String