ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Garrison <Jim.Garri...@troux.com>
Subject ANT Property substutition in log4j.properties
Date Tue, 08 Dec 2009 23:23:55 GMT
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?


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message