You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/12/21 05:35:57 UTC

svn commit: r892684 - /ofbiz/trunk/ant

Author: doogie
Date: Mon Dec 21 04:35:56 2009
New Revision: 892684

URL: http://svn.apache.org/viewvc?rev=892684&view=rev
Log:
Modified to not hard-code the ant-launcher version.

Modified:
    ofbiz/trunk/ant

Modified: ofbiz/trunk/ant
URL: http://svn.apache.org/viewvc/ofbiz/trunk/ant?rev=892684&r1=892683&r2=892684&view=diff
==============================================================================
--- ofbiz/trunk/ant (original)
+++ ofbiz/trunk/ant Mon Dec 21 04:35:56 2009
@@ -25,6 +25,14 @@
   JAVA=java
 fi
 
-"$JAVA" -jar framework/base/lib/ant-launcher-1.7.0.jar "$@"
-exit 0
+find_jar() {
+	set -- framework/base/lib/ant-launcher-*.jar
+	if [ $# = 1 ] && [ -e "$1" ]; then
+		echo "$1"
+	else
+		echo "Couldn't find ant-launcher.jar" 1>&2
+		exit 1
+	fi
+}
+"$JAVA" -jar "$(find_jar)" "$@"