api / org.gradle.plugins.ide.eclipse.model / EclipseWtp

EclipseWtp

open class 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 and EclipseWtpFacet

 apply plugin: 'war' //or 'ear' or 'java' apply plugin: '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 } facet { //for examples see docs for EclipseWtpFacet } } } 

Constructors

<init>

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 and EclipseWtpFacet

 apply plugin: 'war' //or 'ear' or 'java' apply plugin: '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 } facet { //for examples see docs for EclipseWtpFacet } } } 

Functions

component

open fun component(action: Closure<Any>): Unit
open fun component(action: Action<in EclipseWtpComponent>): Unit

Configures wtp component.

For examples see docs for EclipseWtpComponent

facet

open fun facet(action: Closure<Any>): Unit
open fun facet(action: Action<in EclipseWtpFacet>): Unit

Configures wtp facet.

For examples see docs for EclipseWtpFacet

getComponent

open fun getComponent(): EclipseWtpComponent

Configures wtp component.

For examples see docs for EclipseWtpComponent

getFacet

open fun getFacet(): EclipseWtpFacet

Configures wtp facet.

For examples see docs for EclipseWtpFacet

setComponent

open fun setComponent(component: EclipseWtpComponent): Unit

setFacet

open fun setFacet(facet: EclipseWtpFacet): Unit