mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user