ビルド ファイルにいくつかの 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 ファイルごとに設定できますか?