Reputation: 11
How can I force Ant to use my java.security file? I'm trying to build with Ant from a command line and use this file in the JVM. Is there any way to do this via Ant command line?
Is setting an environment variable ANT_OPTS the solution?
Upvotes: 1
Views: 565
Reputation: 11
Yes, set ANT_OPTS=-Djava.security.policy=file:./java.policy
is works for me
Upvotes: 1