ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: <get> with HTTPS
Date Mon, 17 Apr 2006 21:51:21 GMT
Dominique Devienne wrote:
>>I have tried downloading this keystore file, and setting the
>> system property to refer to this file using -D
>>at the command line when starting ant. For example
>> > ant
> What may happen is that this -Dkey=value switch is interpreted by Ant,
> rather than the VM itself.
>>This does not seem to change the situation. However, I wrote some Java
>>code that indeed works fine when I set this system property. [...]
> Which is why I think your property is not passed to the VM, but only
> available to Ant. Try using of the environment variables Ant uses
> (ANT_OPTS maybe) so that the -Dkey=value name appears *before* Ant's
> main class (or executable jar is using -jar ant-launcher.jar to
> startup). --DD

yes: you need to make it a JVM property, not an Ant property. A bit of 
inline javascript could do it if you want the same behaviour without 
changing the command line.

Maybe we need a <sysproperty> task that sets a JVM option, though it 
could cause serious problems when running Ant under an IDE

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

View raw message