# EclipseWtp

API Documentation: | `EclipseWtp`

Enables fine-tuning wtp/wst details of the Eclipse plugin

For projects applying the eclipse plugin and either one of the ear or war plugins, this plugin is auto-applied.

More interesting examples you will find in docs for `EclipseWtpComponent`

    plugins {
        id 'war' // or 'ear' or 'java'
        id 'eclipse-wtp'
    }

    eclipse {

      //if you want parts of paths in resulting file(s) to be replaced by variables (files):
      pathVariables 'GRADLE_HOME': file('/best/software/gradle'), 'TOMCAT_HOME': file('../tomcat')

      wtp {
        component {
          //for examples see docs for EclipseWtpComponent
        }
      }
    }

### Properties

Property | Description
`component` | Configures wtp component.
`facet` | Deprecated Configures wtp facet.

### Methods

Method | Description
`component(action)` | Configures wtp component.
`facet(action)` | Deprecated Configures wtp facet.

### Script blocks

Block | Description
`component` | Configures wtp component.
`facet` | Deprecated Configures wtp facet.

### Property details

#### `EclipseWtpComponent` `component`

Configures wtp component.

For examples see docs for `EclipseWtpComponent`

#### `EclipseWtpFacet` `facet`

Note: This property is deprecated and will be removed in the next major version of Gradle.

Configures wtp facet.

### Method details

#### `void` `component`(``Action`<? super `EclipseWtpComponent`>` action)

Configures wtp component.

For examples see docs for `EclipseWtpComponent`

#### `void` `facet`(``Action`<? super `EclipseWtpFacet`>` action)

Note: This method is deprecated and will be removed in the next major version of Gradle.

Configures wtp facet.

### Script block details

#### `component` { }

Configures wtp component.

For examples see docs for `EclipseWtpComponent`

Delegates to:
  `EclipseWtpComponent` from `component`

#### `facet` { }

Note: This script block is deprecated and will be removed in the next major version of Gradle.

Configures wtp facet.

Delegates to:
  `EclipseWtpFacet` from `facet`