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 } } }
void
component
(Action
<? super EclipseWtpComponent
>
action)
Action
<? super EclipseWtpComponent
>配置 wtp component。
示例请参见 EclipseWtpComponent
的文档