Guy Rouillier wrote:
> 
> In response to Scott's message below, I just downloaded the nightly snapshot
> of JBoss2.1 source, built it and tried to use it.  I found the following
> problems (so far) on Windows 2000:
> 
> (1) I couldn't build with the supplied build.bat file.  I unzipped into c:\
> and ran build.bat from c:\jboss\src\build.  It told me it could not find
> relative file ..\..\ant.jar from directory c:\jboss.  So I changed the
> following statement in build.bat:
> 
> for %%i in (..\..\*.jar) do call lcp.bat %%i
> 
> to
> 
> for %%i in (c:\jboss\lib\*.jar) do call lcp.bat %%i
> 

This problem crops up from time to time on the lists and the build file
still hasn't been patched. To get a generic build file that doesn't
depend directly on local paths, insert the lines

<insert>

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=

</insert>

before the "for" loop in the build.bat file, and change lcp.bat to

set CP=%CP%;%PWD%\%1

This removes the relative path problem.

Luke.


-- 
 Luke Taylor.
 PGP Key ID: 0x57E9523C

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to