Author: doogie
Date: Wed Sep 15 17:57:01 2010
New Revision: 997424
URL:
http://svn.apache.org/viewvc?rev=997424&view=revLog:
Add framework/base/lib/ant to ant's library path.
Modified:
ofbiz/trunk/ant
ofbiz/trunk/ant.bat
Modified: ofbiz/trunk/ant
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/ant?rev=997424&r1=997423&r2=997424&view=diff==============================================================================
--- ofbiz/trunk/ant (original)
+++ ofbiz/trunk/ant Wed Sep 15 17:57:01 2010
@@ -25,8 +25,8 @@ else
JAVA=java
fi
+top="$(cd "$(dirname "$0")"; echo "$PWD")"
find_jar() {
- top="$(cd "$(dirname "$0")"; echo "$PWD")"
set -- "$top"/framework/base/lib/ant-launcher-*.jar
if [ $# = 1 ] && [ -e "$1" ]; then
echo "$1"
@@ -35,5 +35,5 @@ find_jar() {
exit 1
fi
}
-"$JAVA" -jar "$(find_jar)" "$@"
+"$JAVA" -jar "$(find_jar)" -lib "$top/framework/base/lib/ant" "$@"
Modified: ofbiz/trunk/ant.bat
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/ant.bat?rev=997424&r1=997423&r2=997424&view=diff==============================================================================
--- ofbiz/trunk/ant.bat (original)
+++ ofbiz/trunk/ant.bat Wed Sep 15 17:57:01 2010
@@ -19,5 +19,5 @@ REM # under the License.
REM #####################################################################
ECHO ON
-"%JAVA_HOME%\bin\java" -jar framework/base/lib/ant-launcher-1.7.1.jar %1 %2 %3 %4 %5 %6
+"%JAVA_HOME%\bin\java" -jar framework/base/lib/ant-launcher-1.7.1.jar -lib framework/base/lib/ant %1 %2 %3 %4 %5 %6