The Eclipse AntSecurityException

November 11, 2003 – 09:45 | java

(Stefan Bodewig on user@ant.apache.org)

On Mon, 10 Nov 2003, Jeremy Nix wrote:
> [java] org.eclipse.ant.core.AntSecurityException
> [java] at org.eclipse.ant.internal.core.ant.AntSecurityManager.checkExit(AntSecurityManager.java:44)

Eclipse seems to set a SecurityManager that doesn’t allow your invoked
class to call System.exit – and your class tries to do so
anyway. Set fork=”true” and the System.exit will neither affect Ant
nor get propagated to Eclipse at all.

Trackback from your site, or follow the comments in RSS.

Post a Comment