Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #28 from erdi/fix-gae-explode-war-skipping
Browse files Browse the repository at this point in the history
Fix bug where war explosing is skipped during gaeUpload
  • Loading branch information
bmuschko committed Jul 14, 2012
2 parents a75a9f1 + a89ea34 commit 887583d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/groovy/org/gradle/api/plugins/gae/GaePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ class GaePlugin implements Plugin<Project> {
gaeExplodeWarTask.description = 'Explodes WAR archive into directory.'
gaeExplodeWarTask.group = GAE_GROUP

// If WAR directory gets set we assume we have a fully functional web application, WAR creation/explosion is skipped
gaeExplodeWarTask.onlyIf { !gaePluginConvention.warDir }

project.afterEvaluate {
if(isWarOptimizationAllowed(project, gaePluginConvention)) {
gaeExplodeWarTask.dependsOn project.slimWar
Expand Down Expand Up @@ -242,7 +239,11 @@ class GaePlugin implements Plugin<Project> {
gaeRunTask.description = 'Starts up a local App Engine development server.'
gaeRunTask.group = GAE_GROUP

gaeRunTask.dependsOn project.tasks.getByName(GAE_EXPLODE_WAR)
GaeExplodeWarTask gaeExplodeWarTask = project.tasks.getByName(GAE_EXPLODE_WAR)
gaeRunTask.dependsOn gaeExplodeWarTask

// If WAR directory gets set we assume we have a fully functional web application, WAR creation/explosion is skipped
gaeExplodeWarTask.onlyIf { !gaePluginConvention.warDir || !project.gradle.taskGraph.hasTask(gaeRunTask) }
}

private void configureGaeStop(Project project, GaePluginConvention gaePluginConvention) {
Expand Down

0 comments on commit 887583d

Please sign in to comment.