My problem is to record ant in what I need. So I decided to use Log4j. As I read from this article , I set ANT_OPTS:
set ANT_OPTS=-Dlog4j.debug -Dlog4j.configuration=file:///d:/ant_dir/lib/log4j.xml
When I try to execute build.xml with the command:
D:/ant_dir>ant -listener org.apache.tools.ant.listener.Log4jListener
I will catch the error: The class org.apache.tools.ant.listener.Log4jListener could not be loaded due to an invalid dependency. The log4j.jar and log4j.xml files are located in the ANT_HOME / lib directory.
I was looking for a tutorial but could not find anything. Can someone please help me with advice or give a useful link?
source
share