Hello Jim,
log4j understands system properties, not ant properties.
So most likely these ANT_ARGS on linux do not set a system property but
just an ant property. System properties are copied to ant properties,
but the reverse is not true.
Using ANT_OPTS=-Dwork.dir=somepath should work on both Windows and Linux.
Regards,
Antoine
Jim Garrison wrote:
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]