Groovy Documentation

org.gradle.plugins.idea
[Groovy] Class IdeaWorkspace

java.lang.Object
  org.gradle.api.internal.AbstractTask
      org.gradle.api.DefaultTask
          org.gradle.plugins.idea.IdeaWorkspace

class IdeaWorkspace
extends DefaultTask

Generates an IDEA workspace file.

Authors:
Hans Dockter


Property Summary
java.io.File outputFile

The iws file.

 
Constructor Summary
IdeaWorkspace()

 
Method Summary
void updateXML()

void withXml(groovy.lang.Closure closure)

Adds a closure to be called when the IWS XML has been created.

void withXml(Action action)

Adds an action to be called when the IWS XML has been created.

 

Property Detail

outputFile

@OutputFile
java.io.File outputFile
The iws file. Used to look for existing files as well as the target for generation. Must not be null.


 
Constructor Detail

IdeaWorkspace

IdeaWorkspace()


 
Method Detail

updateXML

@TaskAction
void updateXML()


withXml

void withXml(groovy.lang.Closure closure)
Adds a closure to be called when the IWS XML has been created. The XML is passed to the closure as a parameter in form of a XmlProvider. The closure can modify the XML.
Parameters:
closure - The closure to execute when the IWS XML has been created.
Returns:
this


withXml

void withXml(Action action)
Adds an action to be called when the IWS XML has been created. The XML is passed to the action as a parameter in form of a XmlProvider. The action can modify the XML.
Parameters:
closure - The action to execute when the IWS XML has been created.
Returns:
this


 

Groovy Documentation