|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.plugins.eclipse.AbstractXmlGeneratorTask
org.gradle.plugins.eclipse.EclipseProject
class EclipseProject extends AbstractXmlGeneratorTask
Generates an eclipse .project file.
| Field Summary | |
|---|---|
protected ModelFactory |
modelFactory
|
| Property Summary | |
|---|---|
java.util.List |
buildCommands
The build commands to be added to this Eclipse project. |
java.lang.String |
comment
A comment used for the eclipse project |
java.io.File |
inputFile
The file that is merged into the to be produced project file. |
java.util.Set |
links
The links to be added to this Eclipse project. |
java.util.List |
natures
The natures to be added to this Eclipse project. |
java.io.File |
outputFile
|
java.lang.String |
projectName
The output file where to generate the project metadata to. |
java.util.Set |
referencedProjects
The referenced projects of this Eclipse project. |
| Constructor Summary | |
EclipseProject()
|
|
| Method Summary | |
|---|---|
void
|
buildCommand(java.util.Map args, java.lang.String buildCommand)
Adds a build command with arguments to the eclipse project. |
void
|
buildCommand(java.lang.String buildCommand)
Adds a build command to the eclipse project. |
void
|
generateXml()
|
void
|
link(java.util.Map args)
Adds a link to the eclipse project. |
void
|
natures(java.lang.String natures)
Adds natures entries to the eclipse project. |
void
|
referencedProjects(java.lang.String referencedProjects)
Adds project references to the eclipse project. |
| Methods inherited from class AbstractXmlGeneratorTask | |
|---|---|
| beforeConfigured, whenConfigured, withXml |
| Field Detail |
|---|
protected ModelFactory modelFactory
| Property Detail |
|---|
java.util.List buildCommands
java.lang.String comment
java.io.File inputFile
java.util.Set links
java.util.List natures
@OutputFile
/**
* The output file where to generate the project metadata to.
*/
java.io.File outputFile
java.lang.String projectName
java.util.Set referencedProjects
| Constructor Detail |
|---|
EclipseProject()
| Method Detail |
|---|
void buildCommand(java.util.Map args, java.lang.String buildCommand)
args - A map with arguments, where the key is the name of the argument and the value the value.buildCommand - The name of the build command.
void buildCommand(java.lang.String buildCommand)
buildCommand - The name of the build command
@TaskAction void generateXml()
void link(java.util.Map args)
args - A maps with the args for the link. Legal keys for the map are name, type, location and locationUri.
void natures(java.lang.String natures)
natures - the nature names
void referencedProjects(java.lang.String referencedProjects)
referencedProjects - The name of the project references.
Groovy Documentation