Check remoteSiteDir property is available before using in build file.

This commit is contained in:
Luke Taylor 2010-05-17 15:15:56 +01:00
parent e0d06b2b53
commit 9bdf7efd27
1 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,11 @@ task login {
}
// Define remoteSiteDir and sshHost in gradle.properties
def remoteDocsDir="$remoteSiteDir/docs/3.1.x"
def remoteDocsDir = null
if (hasProperty('remoteSiteDir')) {
remoteDocsDir="$remoteSiteDir/docs/3.1.x"
}
task uploadApidocs(dependsOn: login) << {
ant {