svn commit: r1865718 - /ofbiz/ofbiz-framework/trunk/build.gradle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1865718 - /ofbiz/ofbiz-framework/trunk/build.gradle

mthl
Author: mthl
Date: Thu Aug 22 21:19:34 2019
New Revision: 1865718

URL: http://svn.apache.org/viewvc?rev=1865718&view=rev
Log:
Improved: Make ‘gradlew ofbiz’ depend on :classes instead of :build
(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’.

Modified:
    ofbiz/ofbiz-framework/trunk/build.gradle

Modified: ofbiz/ofbiz-framework/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?rev=1865718&r1=1865717&r2=1865718&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/build.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/build.gradle Thu Aug 22 21:19:34 2019
@@ -1005,9 +1005,9 @@ tasks.addRule('Pattern: ofbizBackground
  * ======================================================== */
 
 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).*/) {