Dominique Devienne wrote:
I have tried downloading this keystore file, and setting the
javax.net.ssl.trustStore system property to refer to this file using -D
at the command line when starting ant. For example
> ant -Djavax.net.ssl.trustStore=/path/to/source.tmorris.net.jks


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to