Delete content store at the same time as the database

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@47075 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Samuel Langlois
2013-02-25 17:01:29 +00:00
parent fe51e3ff21
commit 6a3fb303a4

View File

@@ -67,6 +67,11 @@ task resetDatabase << {
autocommit: 'true',
classpath: configurations.compile.asPath,
'drop database if exists ' + ant.getProperty("db.name") + '; create database ' + ant.getProperty("db.name") + ';')
if (ant.getProperties().containsKey("dir.root")) {
println "Deleting content store in " + ant.getProperty("dir.root")
ant.delete(includeEmptyDirs: 'true', dir: ant.getProperty("dir.root"))
}
}
test {