ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34229] New: - Need ability to intercept calls to System.setSecurityManager() from embedded environment
Date Tue, 29 Mar 2005 22:04:38 GMT
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: jglick@netbeans.org
        ReportedBy: jglick@netbeans.org
                CC: dev@ant.apache.org
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message