ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: forking new jvm in ExecuteJava?
Date Thu, 11 Apr 2002 03:30:22 GMT

----- Original Message -----
From: "Daniel Barclay" <dbarclay@mercator.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Wednesday, April 10, 2002 10:15
Subject: RE: forking new jvm in ExecuteJava?


>
>
>
> > From: tek1 [mailto:tek1@pobox.com]
> > ...
> >
> >
> > hello.
> >
> > i've written a custom task that make a call to a third-party
> > java .class.
> > unfortunately, that .class is calling System.exit(0) and stopping the
> > entire vm, which ant is running on.  how do i fork a new java
> > vm within my
> > custom task for the third-party java .class to execute in?
>
> Hey, might Ant want to use a custom Java security policy to prevent called
> classes from (successfully) calling System.exit(0)?

it might, but only under 1.2+, and then other things go wierd indeed. We
cant use a security manager without risking breaking backwards
compatibility.


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


Mime
View raw message