Don't set GAE location unless property available

This commit is contained in:
Luke Taylor 2010-07-21 15:40:29 +01:00
parent a681dee0e1
commit 7ce29d3e3d
1 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@ 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")