Groovy Documentation

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

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

class EclipseWtp
extends ConventionTask

Generates Eclipse configuration files for Eclipse WTP.

Authors:
Hans Dockter


Field Summary
protected WtpFactory modelFactory

 
Property Summary
ActionBroadcast beforeConfiguredActions

java.lang.String contextPath

The context path for the web application

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.

java.lang.Iterable 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.

ActionBroadcast whenConfiguredActions

ActionBroadcast withXmlActions

 
Constructor Summary
EclipseWtp()

 
Method Summary
void beforeConfigured(groovy.lang.Closure closure)

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.

void whenConfigured(groovy.lang.Closure closure)

void withXml(groovy.lang.Closure closure)

 

Field Detail

modelFactory

protected WtpFactory modelFactory


 
Property Detail

beforeConfiguredActions

ActionBroadcast beforeConfiguredActions


contextPath

java.lang.String contextPath
The context path for the web application


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

java.lang.Iterable 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.


whenConfiguredActions

ActionBroadcast whenConfiguredActions


withXmlActions

ActionBroadcast withXmlActions


 
Constructor Detail

EclipseWtp

EclipseWtp()


 
Method Detail

beforeConfigured

void beforeConfigured(groovy.lang.Closure closure)


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.


whenConfigured

void whenConfigured(groovy.lang.Closure closure)


withXml

void withXml(groovy.lang.Closure closure)


 

Groovy Documentation