Share

Chello

Tracker: Bugs

5 error in build.bat - ID: 491007
Last Update: Comment added ( ccambien )


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.


Hamish Carpenter ( haytona ) - 2001-12-10 03:07

5

Open

None

Sébastien Koechlin

Build System

None

Public


Comment ( 1 )




Date: 2001-12-14 09:22
Sender: ccambienProject Admin

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...


Log in to comment.

Attached File ( 1 )

Filename Description Download
build.bat updated build.bat for win32 Download

Changes ( 2 )

Field Old Value Date By
assigned_to nobody 2001-12-14 09:22 ccambien
File Added 14419: build.bat 2001-12-10 03:07 haytona