|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.AbstractTask org.gradle.api.DefaultTask org.gradle.plugins.idea.IdeaProject
class IdeaProject extends DefaultTask
A task that generates and Idea ipr file.
Property Summary | |
---|---|
java.lang.String |
javaVersion
The java version used for defining the project sdk. |
java.io.File |
outputFile
The ipr file |
java.util.Set |
subprojects
The subprojects that should be mapped to modules in the ipr file. |
java.util.Set |
wildcards
The wildcard resource patterns. |
Constructor Summary | |
IdeaProject()
|
Method Summary | |
---|---|
IdeaProject
|
beforeConfigured(groovy.lang.Closure closure)
Adds a closure to be called after the existing ipr xml or the default xml has been parsed. |
java.lang.String
|
projectURL(java.io.File file)
Returns a relative URL to the given file in the standard URL format used by IDEA. |
void
|
updateXML()
|
IdeaProject
|
whenConfigured(groovy.lang.Closure closure)
Adds a closure after the domain objects that model the customizable aspects of the ipr file are fully populated. |
IdeaProject
|
withXml(groovy.lang.Closure closure)
Adds a closure to be called when the ipr xml has been created. |
Property Detail |
---|
@Input java.lang.String javaVersion
@OutputFile java.io.File outputFile
java.util.Set subprojects
@Input java.util.Set wildcards
Constructor Detail |
---|
IdeaProject()
Method Detail |
---|
IdeaProject beforeConfigured(groovy.lang.Closure closure)
closure
- The closure to execute when the existing or default ipr xml has been parsed.
java.lang.String projectURL(java.io.File file)
file
- The file to which the relative path should point.
@TaskAction void updateXML()
IdeaProject whenConfigured(groovy.lang.Closure closure)
closure
- The closure to execute after the Project object has been fully populated.
IdeaProject withXml(groovy.lang.Closure closure)
closure
- The closure to execute when the ipr xml has been created.
Groovy Documentation