ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Java task failing with AntSecurityException
Date Tue, 11 Nov 2003 08:35:18 GMT
On Mon, 10 Nov 2003, Jeremy Nix <Jeremy.Nix@sfsltd.com> wrote:

> [java] org.eclipse.ant.core.AntSecurityException 
> [java] at org.eclipse.ant.internal.core.ant.AntSecurityManager.checkExit(AntSecurityManager.java:44)

Obviously you are running Ant within Eclipse ;-)

Eclipse seems to set a SecurityManager that doesn't allow your invoked
<java> 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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message