ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: Security Manager and System.exit
Date Fri, 14 Dec 2001 09:21:03 GMT
On Fri, 14 Dec 2001 19:42, Stephane Bailliez wrote:
> A while ago the SecurityManager was replaced when running Ant so that non
> forked tasks do not terminate Ant when they contain a System.exit
> (typically a non-forked Java command line).
>
> [ there is some code remaining in Main and the Java task) ]
>
> It has been removed immediately because (from the comments) it did not work
> with JDK 1.1.
>
> So is there any issue if we use a System manager for JDK 1.2+ (see below) ?

yep - it has side-effects on other tasks and can lead to race like conditions 
and differences in behaviour depending on where the task is defined (via ant 
home or via some created ClassLoader). 

-- 
Cheers,

Pete

-------------------------
  All things considered, 
 insanity may be the only 
  reasonable alternative.
-------------------------

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message