ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: [FWD] [GUMP] Build Failure - bootstrap-ojb
Date Fri, 29 Aug 2003 12:25:21 GMT
I am going to revert the change I did yesterday to the Java task, which was
to set permissions with the permission class to enable to fail builds when
failonerror="true" and fork="false", then try to find a better solution to
implement the desired functionality.

Since there are no methods in SecurityManager to retrieve the current
granted/revoked permissions as collections to be able to clone them, it will
be along the lines of :
- adding a new constructor to the Permissions class with a boolean
- if delegateToOldSM="true" delegating to the old security manager when a
permission is not explicitly granted or revoked in the new security manager
with just the exception of the handling of exit.
- delegateToOldSM="false" would be the current behavior of the Permissions

we would set the default permissions in the Java task for
failonerror="true", fork="false" using new Permissions(true)

----- Original Message -----
From: "Stefan Bodewig" <>
To: <>
Sent: Friday, August 29, 2003 1:43 PM
Subject: Re: [FWD] [GUMP] Build Failure - bootstrap-ojb

> On Fri, 29 Aug 2003, Antoine Levy-Lambert <>
> wrote:
> > and probably due to the fact that the permission to read the system
> > property "file.encoding" is not in the default hard coded set of
> > permissions in Permissions#init().
> I think we shouldn't even try to hard code the set of system
> properties a class may access.  Can't we simply iterate over the
> system properties and grant read for all of them?
> Do we really have to limit property access at all in the default
> permissons?  IMHO the permissions a non-forked <java> has should be
> identical to the permissions a forked one would have, minus calling
> System.exit.
> Stefan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message