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
的文件