ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Lochart" <dloch...@capecomputing.com>
Subject Re: log4j question...
Date Wed, 10 Mar 2004 20:56:22 GMT
I believe that at this point ANT does not include the $ANT_HOME/lib
directory as part of its classpath.
Only the jars within the directory are put in the classpath thus you jar
w/properties file worked.
Maybe this could be done in the future.  All you <should> have to do is
provide the _dlog4j.configuration=...
when you run ant and it then should available.

You may want to describe how you are using log4j within ant (exec'ing a java
class that uses it ... etc) so that
I/we may be able to provide an alternate solution.

Doug


Now I've gained some understanding
Of the only world that we see.
Things that I once dreamed of
Have become reality.

These walls that still surround me
Still contain the same old me,
Just one more who's searching for
A world that ought to be.
----- Original Message ----- 
From: "Ciramella, EJ" <ECiramella@emptoris.com>
To: <user@ant.apache.org>
Sent: Wednesday, March 10, 2004 1:24 PM
Subject: log4j question...


> Is there any way to put log4j.properties in $ANT_HOME/lib or some other
> really high level dir to get it picked up automatically?  The only way
I've
> found this possible is to put this property file in a jar in the lib
> directory.
>
> I tried the -D option, but to no avail.  Looks like it needs to be in the
> classpath.
>


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


Mime
View raw message