Class EclipseWtp
- java.lang.Object
-
- org.gradle.plugins.ide.eclipse.model.EclipseWtp
-
public abstract class EclipseWtp extends java.lang.ObjectEnables fine-tuning wtp/wst details of the Eclipse pluginFor 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
EclipseWtpComponentandEclipseWtpFacetplugins { 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 forEclipseWtpComponent} facet { //for examples see docs forEclipseWtpFacet} } }
-
-
Constructor Summary
Constructors Constructor Description EclipseWtp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomponent(Closure action)Configures wtp component.voidcomponent(Action<? super EclipseWtpComponent> action)Configures wtp component.voidfacet(Closure action)Configures wtp facet.voidfacet(Action<? super EclipseWtpFacet> action)Configures wtp facet.EclipseWtpComponentgetComponent()Configures wtp component.EclipseWtpFacetgetFacet()Configures wtp facet.protected ObjectFactorygetObjectFactory()Injects and returns an instance ofObjectFactory.voidsetComponent(EclipseWtpComponent component)voidsetFacet(EclipseWtpFacet facet)
-
-
-
Method Detail
-
getObjectFactory
@Inject protected ObjectFactory getObjectFactory()
Injects and returns an instance ofObjectFactory.- Since:
- 4.9
-
getComponent
public EclipseWtpComponent getComponent()
Configures wtp component.For examples see docs for
EclipseWtpComponent
-
setComponent
public void setComponent(EclipseWtpComponent component)
-
component
public void component(@DelegatesTo(EclipseWtpComponent.class) Closure action)
Configures wtp component.For examples see docs for
EclipseWtpComponent
-
component
public void component(Action<? super EclipseWtpComponent> action)
Configures wtp component.For examples see docs for
EclipseWtpComponent- Since:
- 3.5
-
getFacet
public EclipseWtpFacet getFacet()
Configures wtp facet.For examples see docs for
EclipseWtpFacet
-
setFacet
public void setFacet(EclipseWtpFacet facet)
-
facet
public void facet(@DelegatesTo(EclipseWtpFacet.class) Closure action)
Configures wtp facet.For examples see docs for
EclipseWtpFacet
-
facet
public void facet(Action<? super EclipseWtpFacet> action)
Configures wtp facet.For examples see docs for
EclipseWtpFacet- Since:
- 3.5
-
-