EclipseWtp

API 文件EclipseWtp

啟用 Eclipse 外掛的 wtp/wst 細部調整

對於應用 eclipse 外掛以及 ear 或 war 外掛的專案,此外掛程式會自動套用。

更多有趣的範例,您可以在 EclipseWtpComponentEclipseWtpFacet 的文件中找到

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
    }
  }
}

屬性

屬性描述
component

設定 wtp component。

facet

設定 wtp facet。

方法

方法描述
component(action)

設定 wtp component。

facet(action)

設定 wtp facet。

指令碼區塊

區塊描述
component

設定 wtp component。

facet

設定 wtp facet。

屬性細節

設定 wtp component。

範例請參閱 EclipseWtpComponent 的文件

設定 wtp facet。

範例請參閱 EclipseWtpFacet 的文件

方法細節

void component(Action<? super EclipseWtpComponent> action)

設定 wtp component。

範例請參閱 EclipseWtpComponent 的文件

void facet(Action<? super EclipseWtpFacet> action)

設定 wtp facet。

範例請參閱 EclipseWtpFacet 的文件

指令碼區塊細節

component { }

設定 wtp component。

範例請參閱 EclipseWtpComponent 的文件

委派至
EclipseWtpComponent,來自 component

facet { }

設定 wtp facet。

範例請參閱 EclipseWtpFacet 的文件

委派至
EclipseWtpFacet,來自 facet