mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Try fixing the failing rm build on the server
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54550 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,6 +45,12 @@ eclipse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task resetDatabase << {
|
task resetDatabase << {
|
||||||
|
// Set default values if nothing was found (remember Ant props are 'first set wins')
|
||||||
|
ant.property(name: "db.name", value: "alfresco")
|
||||||
|
ant.property(name: "db.url", value: "jdbc:postgresql:alfresco")
|
||||||
|
ant.property(name: "db.master.url", value: "jdbc:postgresql:template1")
|
||||||
|
ant.property(name: "db.username", value: "alfresco")
|
||||||
|
ant.property(name: "db.password", value: "alfresco")
|
||||||
|
|
||||||
// Loading the properties in all possible locations
|
// Loading the properties in all possible locations
|
||||||
ant.property(file: System.properties.getProperty('DB_PROPERTIES') )
|
ant.property(file: System.properties.getProperty('DB_PROPERTIES') )
|
||||||
@@ -53,13 +59,6 @@ task resetDatabase << {
|
|||||||
ant.property(resource: 'alfresco/version.properties', classpath: configurations.compile.asPath )
|
ant.property(resource: 'alfresco/version.properties', classpath: configurations.compile.asPath )
|
||||||
ant.property(resource: 'alfresco/repository.properties', classpath: configurations.compile.asPath )
|
ant.property(resource: 'alfresco/repository.properties', classpath: configurations.compile.asPath )
|
||||||
|
|
||||||
// Set default values if nothing was found (remember Ant props are 'first set wins')
|
|
||||||
ant.property(name: "db.name", value: "alfresco")
|
|
||||||
ant.property(name: "db.url", value: "jdbc:postgresql:alfresco")
|
|
||||||
ant.property(name: "db.master.url", value: "jdbc:postgresql:template1")
|
|
||||||
ant.property(name: "db.username", value: "alfresco")
|
|
||||||
ant.property(name: "db.password", value: "alfresco")
|
|
||||||
|
|
||||||
println "Recreating database " + ant.getProperty("db.name") + " as user " + ant.getProperty("db.username")
|
println "Recreating database " + ant.getProperty("db.name") + " as user " + ant.getProperty("db.username")
|
||||||
ant.sql(driver: 'org.postgresql.Driver',
|
ant.sql(driver: 'org.postgresql.Driver',
|
||||||
url: ant.getProperty("db.master.url"),
|
url: ant.getProperty("db.master.url"),
|
||||||
|
Reference in New Issue
Block a user