Fix build when upload properties are missing. Added missing hsql test dependency

This commit is contained in:
Luke Taylor 2010-05-24 17:01:19 +01:00
parent a097a47246
commit e156d5339a
2 changed files with 7 additions and 2 deletions

View File

@ -56,7 +56,9 @@ task apidocs(type: Javadoc) {
}
task docSiteLogin(type: Login) {
host = sshHost
if (hasProperty('sshHost')) {
host = property('sshHost')
}
}
// Define remoteSiteDir and sshHost in gradle.properties
@ -93,7 +95,9 @@ task uploadDoc(type: TarUpload) {
task uploadFaq(type: TarUpload) {
dependsOn ':faq:docbookHtmlSingle'
classifier = 'faq'
remoteDir = project.property('remoteSiteDir')
if (hasProperty('remoteSiteDir')) {
remoteDir = property('remoteSiteDir')
}
login = docSiteLogin
def faqDir = new File(project(':faq').buildDir, 'docs')

View File

@ -16,4 +16,5 @@ dependencies {
provided 'javax.servlet:servlet-api:2.5'
testCompile 'commons-codec:commons-codec:1.3'
testRuntime "hsqldb:hsqldb:$hsqlVersion"
}