Skip to content
Browse files

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.
  • Loading branch information...
mindhog committed Sep 20, 2019
1 parent b35c813 commit 153fc7d6bf6c3fe350d341365d0c13acf5c74978
Showing with 14 additions and 0 deletions.
  1. +14 −0 appengine_war.gradle
@@ -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 {

rootProject.deploy.dependsOn appengineDeployAll
rootProject.stage.dependsOn appengineStage
appengineDeployAll.dependsOn rootProject.verifyDeployment

0 comments on commit 153fc7d

Please sign in to comment.
You can’t perform that action at this time.