DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34229

           Summary: Need ability to intercept calls to
                    System.setSecurityManager() from embedded environment
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]
OtherBugsDependingO 33361
             nThis:


Any kind of container which runs Ant in-VM, such as the NetBeans IDE, that has
its own SecurityManager already will need a way to intercept calls to
System.setSecurityManager() made from Ant's Permissions class, since the VM can
have only one global SM at a time. Currently attempting to use <java
fork="false"> in any mode which uses Permissions (incl. failonerror="true" in
Ant 1.6.x and always in 1.7) will just break with a SecurityException when run
in an embedded environment like this. Could be solved by providing a hook in Ant
letting the container manage some of the permissions, e.g. delegating from the
VM-wide master SM to a thread/threadgroup-specific SM provided by Ant.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to