ビルド ファイルにいくつかの gradle war タスクがあり、war タスクごとに変更したいと考えていwebAppDirName
ます。私はこれを試しました:
task myWarTask(type: War) {
ext.webAppDirName = 'src/anotherfolder/webapp' // also tried just webAppDirName
version ""
destinationDir = file("$buildDir/libs")
baseName = 'myWarName'
classpath = configurations.myWarConfiguration
}
しかし、これはまだsrc/main/webapp
代わりにの内容を引き込んでいますsrc/anotherfolder/webapp
webAppDirName
このように war ファイルごとに設定できますか?