diff --git a/.cvsignore b/.cvsignore index 6801f000a..c3f7ac8f3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,6 +1,8 @@ .ant.properties dist build +bootstrap +distribution prj.el emacs-jprj.el bootstrap.bat.pif diff --git a/bootstrap.bat b/bootstrap.bat index f685b3703..397b88661 100755 --- a/bootstrap.bat +++ b/bootstrap.bat @@ -39,8 +39,8 @@ echo CLASSPATH=%CLASSPATH% if "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul rmdir/s/q %CLASSDIR% if not "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul deltree/y %CLASSDIR% -mkdir %CLASSDIR% -mkdir build +if not exist %CLASSDIR% mkdir %CLASSDIR% +if not exist build mkdir build echo. echo ... Compiling Ant Classes diff --git a/build.bat b/build.bat index 3094df5aa..165c0dc65 100755 --- a/build.bat +++ b/build.bat @@ -1,19 +1,23 @@ @echo off +set OLDCLASSPATH=%CLASSPATH% set REAL_ANT_HOME=%ANT_HOME% -set ANT_HOME=. -if exist lib\ant.jar if exist bin\ant.bat if exist bin\lcp.bat if exist bin\antRun.bat goto runAnt +set ANT_HOME=bootstrap +if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt call bootstrap.bat :runAnt +set CLASSPATH=%CLASSPATH%;lib\parser.jar;lib\jaxp.jar if not "%REAL_ANT_HOME%" == "" goto install_ant -call .\bin\ant.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 +call bootstrap\bin\ant.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 goto cleanup :install_ant -call .\bin\ant.bat -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9 +call bootstrap\bin\ant.bat -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9 rem clean up :cleanup set ANT_HOME=%REAL_ANT_HOME% set REAL_ANT_HOME= +set CLASSPATH=%OLDCLASSPATH% +set OLDCLASSPATH= diff --git a/build.sh b/build.sh index 847cbaf2f..78afed0d3 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ REALANTHOME=$ANT_HOME ANT_HOME=. export ANT_HOME -if test ! -f lib/ant.jar -o ! -x bin/ant -o ! -x 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 fi @@ -12,5 +12,5 @@ if [ "$REALANTHOME" != "" ] ; then ANT_INSTALL="-Dant.install=$REALANTHOME" fi -bin/ant $ANT_INSTALL $* +bootstrap/bin/ant $ANT_INSTALL $* diff --git a/build.xml b/build.xml index b138a09e1..59aa31b40 100644 --- a/build.xml +++ b/build.xml @@ -2,7 +2,7 @@ @@ -23,7 +23,7 @@ @@ -41,10 +41,11 @@ + @@ -61,7 +62,7 @@ @@ -83,7 +84,7 @@ @@ -142,13 +143,20 @@ classpathref="classpath"/> - - - + + @@ -207,8 +215,7 @@ @@ -229,7 +236,7 @@ @@ -261,7 +268,7 @@ @@ -301,19 +308,19 @@ - + @@ -363,7 +370,7 @@ @@ -406,12 +413,13 @@ - + + @@ -419,7 +427,17 @@ + + + + + + @@ -436,7 +454,7 @@ @@ -466,7 +484,7 @@ @@ -489,7 +507,7 @@ @@ -548,6 +566,11 @@ + \ No newline at end of file diff --git a/src/script/ant b/src/script/ant index c2bbebaf1..b43cc18d0 100644 --- a/src/script/ant +++ b/src/script/ant @@ -68,15 +68,6 @@ do LOCALCLASSPATH=$LOCALCLASSPATH:"$i" fi done -DIRCORELIBS=${ANT_HOME}/lib/core/*.jar -for i in ${DIRCORELIBS} -do - # if the directory is empty, then it will return the input string - # this is stupid, so case for it - if [ "$i" != "${DIRCORELIBS}" ] ; then - LOCALCLASSPATH=$LOCALCLASSPATH:"$i" - fi -done if [ "$CLASSPATH" != "" ] ; then LOCALCLASSPATH=$CLASSPATH:$LOCALCLASSPATH diff --git a/src/script/ant.bat b/src/script/ant.bat index 2b28ba0ae..cd9706e4c 100755 --- a/src/script/ant.bat +++ b/src/script/ant.bat @@ -57,7 +57,6 @@ goto end set _JAVACMD=%JAVACMD% set LOCALCLASSPATH="%CLASSPATH%" for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i" -for %%i in ("%ANT_HOME%\lib\core\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i" if "%JAVA_HOME%" == "" goto noJavaHome if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java