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

IdeaWorkspace

open class IdeaWorkspace

Enables fine-tuning workspace details (*.iws file) of the IDEA plugin.

At the moment, the only practical way of manipulating the resulting content is via the withXml hook:

 apply plugin: 'java' apply plugin: 'idea' idea.workspace.iws.withXml { provider -> provider.asNode().appendNode('gradleRocks', 'true') } 

Constructors

<init>

IdeaWorkspace()

Enables fine-tuning workspace details (*.iws file) of the IDEA plugin.

At the moment, the only practical way of manipulating the resulting content is via the withXml hook:

 apply plugin: 'java' apply plugin: 'idea' idea.workspace.iws.withXml { provider -> provider.asNode().appendNode('gradleRocks', 'true') } 

Functions

getIws

open fun getIws(): XmlFileContentMerger

Enables advanced manipulation of the output XML.

For example see docs for IdeaWorkspace

iws

open fun iws(closure: Closure<Any>): Unit
open fun iws(action: Action<in XmlFileContentMerger>): Unit

Enables advanced manipulation of the output XML.

For example see docs for IdeaWorkspace

mergeXmlWorkspace

open fun mergeXmlWorkspace(xmlWorkspace: Workspace): Unit

setIws

open fun setIws(iws: XmlFileContentMerger): Unit