| API文档: | EclipseWtp |
|---|
启用 Eclipse 插件的 wtp/wst 细节微调
对于应用 eclipse 插件以及ear 或war 插件之一的项目,该插件会自动应用。
您可以在EclipseWtpComponent和 的文档中找到更多有趣的示例EclipseWtpFacet
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
}
facet {
//for examples see docs for EclipseWtpFacet
}
}
}