Skip to content

Commit

Permalink
Improved: Make ‘gradlew ofbiz’ depend on :classes instead of :build
Browse files Browse the repository at this point in the history
(OFBIZ-11162)

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: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865718 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Aug 22, 2019
1 parent 4c70084 commit 66a42fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
jvmArgs(application.applicationDefaultJvmArgs)
classpath = files(jar.outputs)
classpath = sourceSets.main.runtimeClasspath
main = application.mainClassName
args arguments
if (taskName ==~ /^ofbiz.*(--test|-t).*/) {
Expand Down

0 comments on commit 66a42fb

Please sign in to comment.