Groovy Documentation

org.gradle.plugins.eclipse
[Groovy] Class EclipseWtp

java.lang.Object
  org.gradle.api.internal.ConventionTask
      org.gradle.plugins.eclipse.AbstractXmlGeneratorTask
          org.gradle.plugins.eclipse.EclipseWtp

class EclipseWtp
extends AbstractXmlGeneratorTask

Generates Eclipse configuration files for Eclipse WTP.

Authors:
Hans Dockter


Field Summary
protected ModelFactory modelFactory

 
Property Summary
java.lang.String deployName

The deploy name to be used in the org.eclipse.wst.common.component file.

java.util.List facets

The facets to be added as installed elements to the org.eclipse.wst.common.project.facet.core file.

java.util.Set minusConfigurations

The configurations which files are to be excluded from the dependent-module elements of the org.eclipse.wst.common.component file.

java.io.File orgEclipseWstCommonComponentInputFile

The file that is merged into the to be produced org.eclipse.wst.common.component file.

java.io.File orgEclipseWstCommonComponentOutputFile

java.io.File orgEclipseWstCommonProjectFacetCoreInputFile

The output file for the org.eclipse.wst.common.component metadata.

java.io.File orgEclipseWstCommonProjectFacetCoreOutputFile

java.util.Set plusConfigurations

The configurations which files are to be transformed into dependent-module elements of the org.eclipse.wst.common.component file.

java.util.List properties

Additional property elements.

java.util.List resources

Additional wb-resource elements.

NamedDomainObjectContainer sourceSets

The output file for the org.eclipse.wst.common.project.facet.core metadata.

java.util.Map variables

The variables to be used for replacing absolute path in dependent-module elements of the org.eclipse.wst.common.component file.

 
Constructor Summary
EclipseWtp()

 
Method Summary
void facet(java.util.Map args)

Adds a facet for the org.eclipse.wst.common.project.facet.core file.

protected void generateXml()

void property(java.util.Map args)

Adds a property to be added to the org.eclipse.wst.common.component file.

void resource(java.util.Map args)

Adds a wb-resource to be added to the org.eclipse.wst.common.component file.

void variables(java.util.Map variables)

Adds variables to be used for replacing absolute path in dependent-module elements of the org.eclipse.wst.common.component file.

 
Methods inherited from class AbstractXmlGeneratorTask
beforeConfigured, whenConfigured, withXml
 

Field Detail

modelFactory

protected ModelFactory modelFactory


 
Property Detail

deployName

java.lang.String deployName
The deploy name to be used in the org.eclipse.wst.common.component file.


facets

java.util.List facets
The facets to be added as installed elements to the org.eclipse.wst.common.project.facet.core file.


minusConfigurations

java.util.Set minusConfigurations
The configurations which files are to be excluded from the dependent-module elements of the org.eclipse.wst.common.component file.


orgEclipseWstCommonComponentInputFile

java.io.File orgEclipseWstCommonComponentInputFile
The file that is merged into the to be produced org.eclipse.wst.common.component file. This file must not exist.


orgEclipseWstCommonComponentOutputFile

@OutputFile
    /**
     * The output file for the org.eclipse.wst.common.component metadata.
     */
java.io.File orgEclipseWstCommonComponentOutputFile


orgEclipseWstCommonProjectFacetCoreInputFile

java.io.File orgEclipseWstCommonProjectFacetCoreInputFile
The output file for the org.eclipse.wst.common.component metadata.


orgEclipseWstCommonProjectFacetCoreOutputFile

@OutputFile
    /**
     * The output file for the org.eclipse.wst.common.project.facet.core metadata.
     */
java.io.File orgEclipseWstCommonProjectFacetCoreOutputFile


plusConfigurations

java.util.Set plusConfigurations
The configurations which files are to be transformed into dependent-module elements of the org.eclipse.wst.common.component file.


properties

java.util.List properties
Additional property elements.


resources

java.util.List resources
Additional wb-resource elements.


sourceSets

NamedDomainObjectContainer sourceSets
The output file for the org.eclipse.wst.common.project.facet.core metadata.


variables

java.util.Map variables
The variables to be used for replacing absolute path in dependent-module elements of the org.eclipse.wst.common.component file.


 
Constructor Detail

EclipseWtp

EclipseWtp()


 
Method Detail

facet

void facet(java.util.Map args)
Adds a facet for the org.eclipse.wst.common.project.facet.core file.
Parameters:
args - A map that must contain a name and version key with corresponding values.


generateXml

@TaskAction
protected void generateXml()


property

void property(java.util.Map args)
Adds a property to be added to the org.eclipse.wst.common.component file.
Parameters:
args - A map that must contain a name and value key with corresponding values.


resource

void resource(java.util.Map args)
Adds a wb-resource to be added to the org.eclipse.wst.common.component file.
Parameters:
args - A map that must contain a deployPath and sourcePath key with corresponding values.


variables

void variables(java.util.Map variables)
Adds variables to be used for replacing absolute path in dependent-module elements of the org.eclipse.wst.common.component file.
Parameters:
variables - A map where the keys are the variable names and the values are the variable values.


 

Groovy Documentation