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 delegateToOldSM, - 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 class. we would set the default permissions in the Java task for failonerror="true", fork="false" using new Permissions(true) Cheers, Antoine ----- Original Message ----- From: "Stefan Bodewig" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 1:43 PM Subject: Re: [FWD] [GUMP] Build Failure - bootstrap-ojb > On Fri, 29 Aug 2003, Antoine Levy-Lambert <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]