swapping log4j.properties in ant build

M

Mohun Biswas

I want to do something that seems like it should be common but Google
hasn't helped. My java application makes use of log4j for debug purposes
and consequently I have a fairly verbose log4j.properties set up. I
normally test the app running directly in my IDE (Eclipse), but I also
maintain an ant build.xml file for generating "release" builds which are
somewhat more locked down. Naturally, I want the release version to use
less verbose logging, so I need a way to make ant either modify
log4j.properties en route to the jar or swap in a release version of
log4j.properties. Can anyone point to an example?

TIA,
MB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top