1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:35 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | NoExitSecurityManager (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.util.optional.NoExitSecurityManager class">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="NoExitSecurityManager (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | PREV CLASS
|
---|
53 | <A HREF="../../../../../../org/apache/tools/ant/util/optional/WeakishReference12.html" title="class in org.apache.tools.ant.util.optional"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="NoExitSecurityManager.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_java.lang.SecurityManager">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.util.optional</FONT>
|
---|
85 | <BR>
|
---|
86 | Class NoExitSecurityManager</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by">java.lang.SecurityManager
|
---|
90 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.util.optional.NoExitSecurityManager</B>
|
---|
91 | </PRE>
|
---|
92 | <HR>
|
---|
93 | <DL>
|
---|
94 | <DT>public class <B>NoExitSecurityManager</B><DT>extends java.lang.SecurityManager</DL>
|
---|
95 |
|
---|
96 | <P>
|
---|
97 | This is intended as a replacement for the default system manager.
|
---|
98 | The goal is to intercept System.exit calls and make it throw an
|
---|
99 | exception instead so that a System.exit in a task does not
|
---|
100 | fully terminate Ant.
|
---|
101 | <P>
|
---|
102 |
|
---|
103 | <P>
|
---|
104 | <DL>
|
---|
105 | <DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/tools/ant/ExitException.html" title="class in org.apache.tools.ant"><CODE>ExitException</CODE></A></DL>
|
---|
106 | <HR>
|
---|
107 |
|
---|
108 | <P>
|
---|
109 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
110 |
|
---|
111 |
|
---|
112 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
113 |
|
---|
114 | <A NAME="field_summary"><!-- --></A>
|
---|
115 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
116 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
117 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
118 | <B>Field Summary</B></FONT></TD>
|
---|
119 | </TR>
|
---|
120 | </TABLE>
|
---|
121 | <A NAME="fields_inherited_from_class_java.lang.SecurityManager"><!-- --></A>
|
---|
122 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
123 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
124 | <TD><B>Fields inherited from class java.lang.SecurityManager</B></TD>
|
---|
125 | </TR>
|
---|
126 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
127 | <TD><CODE>inCheck</CODE></TD>
|
---|
128 | </TR>
|
---|
129 | </TABLE>
|
---|
130 |
|
---|
131 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
132 |
|
---|
133 | <A NAME="constructor_summary"><!-- --></A>
|
---|
134 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
135 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
136 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
137 | <B>Constructor Summary</B></FONT></TD>
|
---|
138 | </TR>
|
---|
139 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
140 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/optional/NoExitSecurityManager.html#NoExitSecurityManager()">NoExitSecurityManager</A></B>()</CODE>
|
---|
141 |
|
---|
142 | <BR>
|
---|
143 | </TD>
|
---|
144 | </TR>
|
---|
145 | </TABLE>
|
---|
146 |
|
---|
147 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
148 |
|
---|
149 | <A NAME="method_summary"><!-- --></A>
|
---|
150 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
151 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
152 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
153 | <B>Method Summary</B></FONT></TD>
|
---|
154 | </TR>
|
---|
155 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
156 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
157 | <CODE> void</CODE></FONT></TD>
|
---|
158 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/optional/NoExitSecurityManager.html#checkExit(int)">checkExit</A></B>(int status)</CODE>
|
---|
159 |
|
---|
160 | <BR>
|
---|
161 | Override SecurityManager#checkExit.</TD>
|
---|
162 | </TR>
|
---|
163 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
164 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
165 | <CODE> void</CODE></FONT></TD>
|
---|
166 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/optional/NoExitSecurityManager.html#checkPermission(java.security.Permission)">checkPermission</A></B>(java.security.Permission perm)</CODE>
|
---|
167 |
|
---|
168 | <BR>
|
---|
169 | Override SecurityManager#checkPermission.</TD>
|
---|
170 | </TR>
|
---|
171 | </TABLE>
|
---|
172 | <A NAME="methods_inherited_from_class_java.lang.SecurityManager"><!-- --></A>
|
---|
173 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
174 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
175 | <TD><B>Methods inherited from class java.lang.SecurityManager</B></TD>
|
---|
176 | </TR>
|
---|
177 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
178 | <TD><CODE>checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoader</CODE></TD>
|
---|
179 | </TR>
|
---|
180 | </TABLE>
|
---|
181 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
182 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
183 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
184 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
185 | </TR>
|
---|
186 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
187 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
188 | </TR>
|
---|
189 | </TABLE>
|
---|
190 |
|
---|
191 | <P>
|
---|
192 |
|
---|
193 | <!-- ============ FIELD DETAIL =========== -->
|
---|
194 |
|
---|
195 |
|
---|
196 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
197 |
|
---|
198 | <A NAME="constructor_detail"><!-- --></A>
|
---|
199 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
200 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
201 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
202 | <B>Constructor Detail</B></FONT></TD>
|
---|
203 | </TR>
|
---|
204 | </TABLE>
|
---|
205 |
|
---|
206 | <A NAME="NoExitSecurityManager()"><!-- --></A><H3>
|
---|
207 | NoExitSecurityManager</H3>
|
---|
208 | <PRE>
|
---|
209 | public <B>NoExitSecurityManager</B>()</PRE>
|
---|
210 | <DL>
|
---|
211 | </DL>
|
---|
212 |
|
---|
213 | <!-- ============ METHOD DETAIL ========== -->
|
---|
214 |
|
---|
215 | <A NAME="method_detail"><!-- --></A>
|
---|
216 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
217 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
218 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
219 | <B>Method Detail</B></FONT></TD>
|
---|
220 | </TR>
|
---|
221 | </TABLE>
|
---|
222 |
|
---|
223 | <A NAME="checkExit(int)"><!-- --></A><H3>
|
---|
224 | checkExit</H3>
|
---|
225 | <PRE>
|
---|
226 | public void <B>checkExit</B>(int status)</PRE>
|
---|
227 | <DL>
|
---|
228 | <DD>Override SecurityManager#checkExit.
|
---|
229 | This throws an ExitException(status) exception.
|
---|
230 | <P>
|
---|
231 | <DD><DL>
|
---|
232 | <DT><B>Parameters:</B><DD><CODE>status</CODE> - the exit status</DL>
|
---|
233 | </DD>
|
---|
234 | </DL>
|
---|
235 | <HR>
|
---|
236 |
|
---|
237 | <A NAME="checkPermission(java.security.Permission)"><!-- --></A><H3>
|
---|
238 | checkPermission</H3>
|
---|
239 | <PRE>
|
---|
240 | public void <B>checkPermission</B>(java.security.Permission perm)</PRE>
|
---|
241 | <DL>
|
---|
242 | <DD>Override SecurityManager#checkPermission.
|
---|
243 | This does nothing.
|
---|
244 | <P>
|
---|
245 | <DD><DL>
|
---|
246 | <DT><B>Parameters:</B><DD><CODE>perm</CODE> - the requested permission.</DL>
|
---|
247 | </DD>
|
---|
248 | </DL>
|
---|
249 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
250 | <HR>
|
---|
251 |
|
---|
252 |
|
---|
253 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
254 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
255 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
256 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
257 | <TR>
|
---|
258 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
259 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
260 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
261 | <TR ALIGN="center" VALIGN="top">
|
---|
262 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
263 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
264 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
265 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
266 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
267 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
268 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
269 | </TR>
|
---|
270 | </TABLE>
|
---|
271 | </TD>
|
---|
272 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
273 | </EM>
|
---|
274 | </TD>
|
---|
275 | </TR>
|
---|
276 |
|
---|
277 | <TR>
|
---|
278 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
279 | PREV CLASS
|
---|
280 | <A HREF="../../../../../../org/apache/tools/ant/util/optional/WeakishReference12.html" title="class in org.apache.tools.ant.util.optional"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
281 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
282 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
283 | <A HREF="NoExitSecurityManager.html" target="_top"><B>NO FRAMES</B></A>
|
---|
284 | <SCRIPT type="text/javascript">
|
---|
285 | <!--
|
---|
286 | if(window==top) {
|
---|
287 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
288 | }
|
---|
289 | //-->
|
---|
290 | </SCRIPT>
|
---|
291 | <NOSCRIPT>
|
---|
292 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
293 | </NOSCRIPT>
|
---|
294 |
|
---|
295 | </FONT></TD>
|
---|
296 | </TR>
|
---|
297 | <TR>
|
---|
298 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
299 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_java.lang.SecurityManager">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
300 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
301 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
302 | </TR>
|
---|
303 | </TABLE>
|
---|
304 | <A NAME="skip-navbar_bottom"></A>
|
---|
305 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
306 |
|
---|
307 | <HR>
|
---|
308 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
309 | </BODY>
|
---|
310 | </HTML>
|
---|