public class EclipseWtp extends Object
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 forEclipseWtpComponent
} facet { //for examples see docs forEclipseWtpFacet
} } }
Constructor | Description |
---|---|
EclipseWtp() |
Modifier and Type | Method | Description |
---|---|---|
void |
component(Closure action) |
Configures wtp component.
|
void |
component(Action<? super EclipseWtpComponent> action) |
Configures wtp component.
|
void |
facet(Closure action) |
Configures wtp facet.
|
void |
facet(Action<? super EclipseWtpFacet> action) |
Configures wtp facet.
|
EclipseWtpComponent |
getComponent() |
Configures wtp component.
|
EclipseWtpFacet |
getFacet() |
Configures wtp facet.
|
protected ObjectFactory |
getObjectFactory() |
Injects and returns an instance of
ObjectFactory . |
void |
setComponent(EclipseWtpComponent component) |
|
void |
setFacet(EclipseWtpFacet facet) |
@Inject protected ObjectFactory getObjectFactory()
ObjectFactory
.public EclipseWtpComponent getComponent()
For examples see docs for EclipseWtpComponent
public void setComponent(EclipseWtpComponent component)
public void component(Closure action)
For examples see docs for EclipseWtpComponent
public void component(Action<? super EclipseWtpComponent> action)
For examples see docs for EclipseWtpComponent
public EclipseWtpFacet getFacet()
For examples see docs for EclipseWtpFacet
public void setFacet(EclipseWtpFacet facet)
public void facet(Closure action)
For examples see docs for EclipseWtpFacet
public void facet(Action<? super EclipseWtpFacet> action)
For examples see docs for EclipseWtpFacet