Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 42787 invoked from network); 11 Nov 2002 14:29:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Nov 2002 14:29:40 -0000 Received: (qmail 21066 invoked by uid 97); 11 Nov 2002 14:30:27 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 21002 invoked by uid 97); 11 Nov 2002 14:30:26 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 20983 invoked by uid 98); 11 Nov 2002 14:30:25 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Sent: 11 Nov 2002 14:29:02 GMT Message-ID: <3DCFBEBD.9070503@ehatchersolutions.com> Date: Mon, 11 Nov 2002 08:29:17 -0600 From: Erik Hatcher User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Xdoclet drowning in log4j DEBUG messages References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Kell S�nnichsen wrote: > > name="ejbdoclet" > classname="xdoclet.ejb.EjbDocletTask" > classpathref="compile.class.path" > /> > sourcepath="${ejb.src}" > destdir="${xdoclet.src}" > excludedtags="@version,@author" > ejbspec="2.0" > classpathref="compile.class.path" > > > > ... > > 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). > I don't know whether it is a xdoclet problem or an ant problem but I > have tried to find a way to tell log4j where to find it's configuration > file. And _that_ is an ant problem. How do I deliver a property file > through the layers ant -> xdoclet -> log4j ? Its not an Ant problem. I believe Log4j will get its configuration from the classpath or from a log4j.configuration system property (I could be wrong on this, but its something along these lines). Logging is always a bit of a pain in my experience so its fiddly to get configured properly, but in no way is this an Ant problem. You can set ANT_OPTS to be "-Dlog4j.configuration=" perhaps to make this better? Or just simply remove log4j.jar from your Ant operating classpath (why do you need it there anyway?) > Alternatively, does anybody know how to make xdoclet/log4j shut up in > another way than specifying it in an log4j.properties file? > > We are using: > - Linux 2.4 (debian) > - Ant 1.5 > - 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. At least that is my understanding of the changes that were made. Could you double-check which XDoclet you're using? Erik -- To unsubscribe, e-mail: For additional commands, e-mail: