ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kell Sønnichsen <kell.sonnich...@uni-c.dk>
Subject Re: Xdoclet drowning in log4j DEBUG messages
Date Mon, 11 Nov 2002 15:08:53 GMT
On Mon, 11 Nov 2002, Erik Hatcher wrote:

> Kell Sønnichsen wrote:
> > <target name="xdoclet">
> >   <taskdef
> >      name="ejbdoclet"
> >      classname="xdoclet.ejb.EjbDocletTask"
> >      classpathref="compile.class.path"
> >   />
> >   <ejbdoclet
> >     sourcepath="${ejb.src}"
> >     destdir="${xdoclet.src}"
> >     excludedtags="@version,@author"
> >     ejbspec="2.0"
> >     classpathref="compile.class.path"
> >   >
> >     <packageSubstitution packages="ejb" substituteWith="interfaces"/>
> >     ...
> >   </ejbdoclet>
> > </target>
>
>  From the above it is clear you are using XDoclet < 1.2, so I'd first
> recomment you upgrade to XDoclet 1.2beta1 (or beta2, which will be out
> soon, if not already).
>
We are both right :-) I cut-and-pasted the above _before_ I upgraded to
Xdoclet 1.2b1. But the problem persists. The only change is in the
classname, right?:
          classname="xdoclet.modules.ejb.EjbDocletTask"

> You can set ANT_OPTS to be "-Dlog4j.configuration=<path to
> log4j.properties>" perhaps to make this better?  Or just simply remove
> log4j.jar from your Ant operating classpath (why do you need it there
> anyway?)
>
I have tried 'ant -Dlog4j.properties=log4jconf.xml ...' but even though
the property does get set it seems to have no effect. I believe
that Xdoclet doesn't read the system property so it is not set for
log4j?
If I remove log4j.jar (or the equivalent) it simply complains:

xdoclet:

BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory


> > - Xdoclet 1.2.0b1 (but also 1.1.2 had the problem)
>
> I do not believe you're using 1.2.0b1 otherwise the above Ant syntax
> (the classpath on ejbdoclet) would fail since that is no longer
> supported.

You got me there :-)


Regards,
/Kell.
-- 
>>  Kell Soennichsen, UNI-C, Olof Palmes Alle 38, DK-8200 Aarhus N.  <<
>>  phone: +45 8937 6666 / +45 8937 6674, fax: +45 8937 6677         <<
>>  email: kell.sonnichsen@uni-c.dk, http://www.uni-c.dk             <<
>>    Codito, ergo sum - I code, therefore I am                      <<


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message