svn commit: r1855797 - /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: r1855797 - /ofbiz/ofbiz-framework/trunk/build.gradle

mthl
Author: mthl
Date: Mon Mar 18 23:17:39 2019
New Revision: 1855797

URL: http://svn.apache.org/viewvc?rev=1855797&view=rev
Log:
Improved: Do not guess the ‘:jar’ task output archive name

the ‘createOfbizCommandTask’ method now references the ‘outputs’
property of the ‘:jar’ task instead of hard-coding the jar file name.

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=1855797&r1=1855796&r2=1855797&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/build.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/build.gradle Mon Mar 18 23:17:39 2019
@@ -979,12 +979,9 @@ tasks.addRule('Pattern: ofbizBackground
  * ======================================================== */
 
 def createOfbizCommandTask(taskName, arguments) {
-
-    def ofbizJarName = buildDir.toString()+'/libs/'+project.name+'.jar'
-
     task(type: JavaExec, dependsOn: build, taskName) {
         jvmArgs(jvmArguments)
-        classpath = files(ofbizJarName)
+        classpath = files(jar.outputs)
         main = ofbizMainClass
         args arguments