ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: Strange behaviour
Date Wed, 14 Jun 2006 14:41:53 GMT
Hello Gary,

what you are describing sounds like a bug.

the question is where does the bug happen.

A possible candidate would be ant.bat.

I suspect that the -noclasspath option is not executed reliably depending upon -quiet comes
before -noclasspath or not.

-noclasspath is a command line option which is completely processed in ant.bat, not reached
to the java code.

Actually, a look at the code of ant.bat in ant 1.6.5 shows that the option only works when
it is the first argument on the command line. (or I do not understand the full picture).

So your build *does not* work when you start it with -noclasspath.



-------- Original-Nachricht --------
Datum: Wed, 14 Jun 2006 10:22:30 +0100
Von: Gary Howard <>
Betreff: Strange behaviour

> All,
> I am using ant 1.6.5 with the following command line on Windows XP Pro:
> call %ANT_HOME%\bin\ant -quiet -noclasspath -nouserlib ^
> -lib tools\xdoclet-1.2.3\lib ^
> -lib tools\hibernate-3.1 -lib tools\hibernate-3.1\lib ^
> -lib lib\ext\j2ee-1.3 -lib libtest\junit3.8.2 -lib tools\bcel-5.2
> and my build works fine.
> I can substitute "-debug" "-verbose" or "-logfile" for "-quiet" and it
> still works.
> However if I leave "-quiet" out altogether the taskdefs such as these:
>   <taskdef name="hibernatedoclet"
>             classname="xdoclet.modules.hibernate.HibernateDocletTask"/>
>   <taskdef name="ejbdoclet"
>            classname="xdoclet.modules.ejb.EjbDocletTask"/>
> all fail with the message:
> C:\clearcase_snapshots\ghoward_view\celona_software_dev\build.xml:402:
> The following error occurred while executing this line:
> C:\clearcase_snapshots\ghoward_view\celona_software_dev\build.xml:525:
> taskdef class xdoclet.modules.hibernate.HibernateDocletTask cannot be
> found
> Can someone explain how (and why) the output options are apparently
> affecting the taskdef classpath?
> Regards
> Gary Howard
> Senior Software Engineer 
> Celona Technologies Ltd.
> Celona: Accelerated Transformation
> This communication contains information which is confidential and is for
> the exclusive use of the addressee.  Any unauthorised use, distribution or
> copying of the information is prohibited.  If you have received this
> transmission in error please contact the sender immediately.
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit 
> ______________________________________________________________________

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message