ビルド ツールとして gradle を使用するようにプロジェクトを変更していますが、2 つの問題に苦しんでいます。
コンテキスト: マルチプロジェクト gradle 構成です
:project-root
------:client //GWT Java Files & GWT Centric resources, e.g. CSS, Images, ui-xml etc..
------:server //Server based logic, e.g. controllers, services, repositories etc.
------:web-app//NON GWT resources for the web-app, e.g. , web.xml, static pages, images
1:gwtCompileで実行するタスクを取得するに:client build.gradleは、次のように war タスクへの依存関係として追加します。
war{
dependsOn ':client:compileGwt'
from {'src/main/root-content'}
webInf {from 'src/main/web-inf-content'}
}
私はこれが好きではないので、GWTコンパイラが生成されたバイトコードにアクセスできるように、プロジェクトでタスクが終了したgwtCompileときにタスクが呼び出されるようにする簡単な方法はありますか? 単純に :web-app dependenciesを入れると、タスクは呼び出されますが、タスクは呼び出されません(私が予想していたように)。javaCompile:clientcompile project(':client')javaCompilegwtCompile
2: プロジェクトから GWT JavaScript 出力を取得し、:clientこれらのファイルを war ファイルにコピーするのに苦労しています。fromプロパティで次のようなものが必要です。
war{
from {'src/main/root-content','$:CLIENT/gwt-compiler-js-output-dir-as-declared-in-client-build-file}
webInf {from 'src/main/web-inf-content'}
}
よろしくお願いします。
イアン。