Skip to content
Permalink
Browse files

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.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855797 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Mar 18, 2019
1 parent 61e9292 commit 0b53c96b4bc0e871b4778f84b7a605150229534d
Showing with 1 addition and 4 deletions.
  1. +1 −4 build.gradle
@@ -979,12 +979,9 @@ tasks.addRule('Pattern: ofbizBackground <Commands>: Execute OFBiz startup comman
* ======================================================== */

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

0 comments on commit 0b53c96

Please sign in to comment.
You can’t perform that action at this time.