Skip to content
Browse files
Improved: Make ‘gradlew ofbiz’ depend on :classes instead of :build

It is not necessary to build the jar to run OFBiz.  It is only
necessary to compile the classes in the build directory.  This adapts
‘gradlew ofbiz’ to have the same dependencies as ‘gradlew run’.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Aug 22, 2019
1 parent 4c70084 commit 66a42fb32524828ccf5cc3750cc1851491378b9b
Showing with 2 additions and 2 deletions.
  1. +2 −2 build.gradle
@@ -1005,9 +1005,9 @@ tasks.addRule('Pattern: ofbizBackground <Commands>: Execute OFBiz startup comman
* ======================================================== */

def createOfbizCommandTask(taskName, arguments) {
task(type: JavaExec, dependsOn: build, taskName) {
task(type: JavaExec, dependsOn: classes, taskName) {
classpath = files(jar.outputs)
classpath = sourceSets.main.runtimeClasspath
main = application.mainClassName
args arguments
if (taskName ==~ /^ofbiz.*(--test|-t).*/) {

0 comments on commit 66a42fb

Please sign in to comment.