How can I force 开发者_如何学PythonAnt 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?
Yes, set ANT_OPTS=-Djava.security.policy=file:./java.policy
is works for me
精彩评论