marc fleury <[EMAIL PROTECTED]> wrote:

>just for the record we recommend for those that do CVS, to do a clean
>checkout.  DELETE everything, since if the classes are still present the
>build will fail.
>
>I just did a rm -rf jboss; cvs checkout jboss
>
>and a build and it works.  If your stuff doesn't build it is because you
>still have lingering classes.

Hi, Marc. I think you will find that the problem is in the ANT
buildfile, and that you don't really need to do a fresh CVS checkout.
(I went over this with Rickard months ago.)

There's an easy answer: make a clean-build.bat (or equivalent .sh)
containing:

@echo off
REM convenience bat file to build with

set CLASSPATH=..\..\lib\ant.jar
set CLASSPATH=%CLASSPATH%;..\..\lib\xml.jar
set CLASSPATH=%CLASSPATH%;..\..\lib\xmlbeans.jar
set CLASSPATH=%CLASSPATH%;..\..\build\classes
set CLASSPATH=%CLASSPATH%;..\..\lib\javac.jar

java -classpath "%CLASSPATH%" org.apache.tools.ant.Main clean
java -classpath "%CLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5

This clears all the old class files before doing the build.

regards

   Justin
-- 
Justin Forder

Reply via email to