When using
ANT_ARGS="-lib $LOG4J -Dwork.dir=somepath -listener
org.apache.tools.ant.listener.Log4jListener"
where $LOG4J points to a directory containing log4j.jar, with a
log4j.properties including:
log4j.appender.LogFile.file=${work.dir}/build.log
On Windows ${work.dir} in log4j.properties resolves to the value passed in
ANT_ARGS, but on Linux it resovles to the empty string, resulting in trying to
write the log file into the root, which of course fails. This is using the
exact same binaries of ANT and log4j in both environments.
Any ideas what could cause this?