mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
Add work-around for our "explode war" failure (#279)
For some reason tools.jar (which we don't need in the runtime in the first place) gets exploded readonly, causing subsequent builds to fail since they can't overwrite it. This hack makes it writable at the end of explodeWar.
This commit is contained in:
parent
7d800dde19
commit
e4acb76320
1 changed files with 14 additions and 0 deletions
|
@ -76,6 +76,20 @@ dependencies {
|
|||
compile project(':core')
|
||||
}
|
||||
|
||||
// The tools.jar file gets pulled in from the java environment and for some
|
||||
// reason gets exploded "readonly", causing subsequent builds to fail when
|
||||
// they can't overwrite it. The hack below makes the file writable after
|
||||
// we're done exploding it.
|
||||
//
|
||||
// Fun fact: We only use this jar for documentation generation and as such we
|
||||
// don't need it in our warfile, as it is not used by the application at
|
||||
// runtime. But it's not clear how to exclude it, as we seem to be
|
||||
// constructing the jar from the entire WEB-INF directory and per-file
|
||||
// exclude rules don't seem to work on it. Better solutions are welcome :-)
|
||||
explodeWar.doLast {
|
||||
file("${it.explodedAppDirectory}/WEB-INF/lib/tools.jar").setWritable(true)
|
||||
}
|
||||
|
||||
rootProject.deploy.dependsOn appengineDeployAll
|
||||
rootProject.stage.dependsOn appengineStage
|
||||
appengineDeployAll.dependsOn rootProject.verifyDeployment
|
||||
|
|
Loading…
Add table
Reference in a new issue