Permalink
Browse files

Fixed issue with cleanDb, was not removing directories and Derby didn…

…'t like that thinking another instance might be running or something
  • Loading branch information...
1 parent 95afc4d commit 258c410a1afab2845bf19b44ec3687c950dddc1a David E. Jones committed Jul 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 build.gradle
View
@@ -20,7 +20,7 @@ warName = 'moqui-' + version + '.war'
// ========== clean tasks ==========
task clean(type: Delete) { delete file(warName) }
-task cleanDb(type: Delete) { delete fileTree(dir: 'runtime/db/derby', include: '**/*', exclude: 'derby.properties') }
+task cleanDb(type: Delete) { delete files(file('runtime/db/derby').listFiles()) - files('runtime/db/derby/derby.properties') }
task cleanLog(type: Delete) { delete fileTree(dir: 'runtime/log', include: '*') }
task cleanOther(type: Delete) { delete fileTree(dir: '.', includes: ['**/.nbattrs', '**/*~', '**/.#*', '**/.DS_Store', '**/*.rej', '**/*.orig']) }
@@ -56,7 +56,7 @@ task runProduction(type: JavaExec) {
task load(type: JavaExec) {
dependsOn ':framework:build'
workingDir = '.'; jvmArgs = ['-server', '-XX:MaxPermSize=64m']; maxHeapSize = '256M'
- main = '-jar'; args = [warName]
+ main = '-jar'; args = [warName, '-load']
}
// ========== deploy tasks ==========

0 comments on commit 258c410

Please sign in to comment.