Solaris. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268560 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -18,8 +18,8 @@ if "" == "%JAVAC%" set JAVAC=%JAVA_HOME%\bin\javac | |||||
| echo. | echo. | ||||
| echo ... Bootstrapping Ant Distribution | echo ... Bootstrapping Ant Distribution | ||||
| if exist lib\ant.jar erase lib\ant.jar | |||||
| if exist lib\optional.jar erase lib\optional.jar | |||||
| if "%OS%" == "Windows_NT" if exist bootstrap rmdir/s/q bootstrap | |||||
| if not "%OS%" == "Windows_NT" if exist bootstrap deltree/y bootstrap | |||||
| SET LOCALCLASSPATH=lib\parser.jar;lib\jaxp.jar | SET LOCALCLASSPATH=lib\parser.jar;lib\jaxp.jar | ||||
| @@ -39,11 +39,8 @@ fi | |||||
| echo ... Bootstrapping Ant Distribution | echo ... Bootstrapping Ant Distribution | ||||
| if [ -f "lib/ant.jar" ] ; then | |||||
| rm lib/ant.jar | |||||
| fi | |||||
| if [ -f "lib/optional.jar" ] ; then | |||||
| rm lib/optional.jar | |||||
| if [ -d "bootstrap" ] ; then | |||||
| rm -r bootstrap | |||||
| fi | fi | ||||
| CLASSPATH=lib/parser.jar:lib/jaxp.jar:${CLASSPATH} | CLASSPATH=lib/parser.jar:lib/jaxp.jar:${CLASSPATH} | ||||
| @@ -1,13 +1,16 @@ | |||||
| #!/bin/sh | #!/bin/sh | ||||
| REALANTHOME=$ANT_HOME | REALANTHOME=$ANT_HOME | ||||
| ANT_HOME=. | |||||
| ANT_HOME=bootstrap | |||||
| export ANT_HOME | export ANT_HOME | ||||
| if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then | if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then | ||||
| /bin/sh ./bootstrap.sh | /bin/sh ./bootstrap.sh | ||||
| fi | fi | ||||
| CLASSPATH=$CLASSPATH:lib/parser.jar:lib/jaxp.jar | |||||
| export CLASSPATH | |||||
| if [ "$REALANTHOME" != "" ] ; then | if [ "$REALANTHOME" != "" ] ; then | ||||
| ANT_INSTALL="-Dant.install=$REALANTHOME" | ANT_INSTALL="-Dant.install=$REALANTHOME" | ||||
| fi | fi | ||||