You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mt...@apache.org on 2019/03/18 23:17:39 UTC

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

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