ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Passing system properties by default to java task
Date Fri, 18 Aug 2017 17:59:57 GMT
On 2017-08-17, Al Le wrote:

> How can I achieve that some system properties are passed to the JVM
> started by the 'java' task with the 'fork=true' option without
> specifying them explicitly in the script?

Setting clonevm to true will copy over all system properties - but a
bunch of other settings as well. Whether this is good enought for you is
unclear to me.

A nested

  <propertyref builtin="system"/>

will only copy the system properties.

As you say you are using similar <java> tasks several times during the
build it may be a good idea to <presetdef> a new task with all the
proper defaults already configured in.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message