7 changed files with 21 additions and 39 deletions
@ -1,26 +0,0 @@
@@ -1,26 +0,0 @@
|
||||
package gae; |
||||
|
||||
import com.google.appengine.tools.admin.AppCfg |
||||
import org.gradle.api.*; |
||||
|
||||
class GaePlugin implements Plugin<Project> { |
||||
public void apply(Project project) { |
||||
if (!project.hasProperty('appEngineSdkRoot')) { |
||||
println "'appEngineSdkRoot' must be set in gradle.properties" |
||||
} else { |
||||
System.setProperty('appengine.sdk.root', project.property('appEngineSdkRoot')) |
||||
} |
||||
|
||||
File explodedWar = new File(project.buildDir, "gae-exploded") |
||||
|
||||
project.task('gaeDeploy') << { |
||||
AppCfg.main("update", explodedWar.toString()) |
||||
} |
||||
|
||||
project.gaeDeploy.dependsOn project.war |
||||
|
||||
project.war.doLast { |
||||
ant.unzip(src: project.war.archivePath, dest: explodedWar) |
||||
} |
||||
} |
||||
} |
||||
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
implementation-class=gae.GaePlugin |
||||
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
A sample using Google App Engine. To run it use: |
||||
|
||||
---- |
||||
$ ../../gradlew appengineRun |
||||
---- |
||||
Loading…
Reference in new issue