under win32 the build.bat script will *only* work out
of the box if %ANT_HOME% is not set or "." This is
due to some of the class path settings for the
buildlib jars.
Note: only tested on win32(nt4).
Here is my quick solution:
REM -- added the following line to add all buildlib
jars.
for %%i in (.\buildlib\*.jar) do call appendcp.bat %%i
REM --Following lines not necesary--
REM -- The %ANT_HOME% bit didn't work if ANT_HOME was
already set.
REM set CP=%CP%;%ANT_HOME%\buildlib\ant-1.4.jar;%
ANT_HOME%\buildlib\ant-1.4-optional.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\junit.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\httpunit.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\activation.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\jakarta-oro-
2.0.3.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\starteam-sdk-
interfaceonly.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\jmxri.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\jmxtools.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\mail.jar
REM set CP=%CP%;%ANT_HOME%\buildlib\cruisecontrol.jar
Hope this helps someone.
updated build.bat for win32
Logged In: YES
user_id=189493
Seb, can you check that ?
My opinion is the build file should not rely on environment variables except JAVA_HOME and JDK_HOME.
This is true for ANT_HOME, but also, I think for CLASSPATH...