Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 258c410a1afab2845bf19b44ec3687c950dddc1a 1 parent 95afc4d
@jonesde jonesde authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 build.gradle
View
4 build.gradle
@@ -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 ==========
Please sign in to comment.
Something went wrong with that request. Please try again.