Author: doogie
Date: Mon Feb  1 05:48:09 2010
New Revision: 905182

URL: http://svn.apache.org/viewvc?rev=905182&view=rev
Log:
Fix using the shell script from a sub directory.

Modified:
    ofbiz/trunk/ant

Modified: ofbiz/trunk/ant
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/ant?rev=905182&r1=905181&r2=905182&view=diff
==============================================================================
--- ofbiz/trunk/ant (original)
+++ ofbiz/trunk/ant Mon Feb  1 05:48:09 2010
@@ -26,7 +26,8 @@
 fi
 
 find_jar() {
-       set -- framework/base/lib/ant-launcher-*.jar
+       top="$(cd "$(dirname "$0")"; echo "$PWD")"
+       set -- "$top"/framework/base/lib/ant-launcher-*.jar
        if [ $# = 1 ] && [ -e "$1" ]; then
                echo "$1"
        else


Reply via email to