Hi all,
I've noticed that as of version 1.2 ant's behaviour wrt relative paths
has changed so the build.bat screws up if you substitute the latest
ant.jar. If you're planning on switching in future then modify it as
follows to use absolute paths (hideous on windows but apparently still
possible):
----begin build.bat ---------
@echo off
@if not "%ECHO%" == "" echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal
REM convenience bat file to build with
REM get the pwd
@echo off
dir | find "Directory" > }1{.bat
set quote="
echo if %%3!==! set quote=> directory.bat
echo set PWD=%%quote%%%%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 %%quote%%>>
directory.bat
call }1{
for %%a in (}1{ directory) do del %%a.bat
set quote=
set CP=%PWD%\..\..\lib\ant.jar
set CP=%CP%;%PWD%\..\..\lib\parser.jar
set CP=%CP%;%PWD%\..\..\lib\jaxp.jar
set CP=%CP%;%PWD%\..\..\lib\xml.jar
set CP=%CP%;%PWD%\..\..\lib\xmlbeans.jar
set CP=%CP%;%PWD%\..\..\build\classes
set CP=%CP%;%PWD%\..\..\lib\javac.jar
java -classpath "%CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
pause
---- end build.bat ---------
You also need to add the jaxp interfaces and parser and remove the
"verbose" attribute for the project. Just a thought ...
All the best,
Luke.
--
Luke Taylor.
PGP Key ID: 0x57E9523C
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]