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:14 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | AntClassLoader (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.AntClassLoader 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="AntClassLoader (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/AntTypeDefinition.html" title="class in org.apache.tools.ant"><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="AntClassLoader.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 | FIELD | <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</FONT>
|
---|
85 | <BR>
|
---|
86 | Class AntClassLoader</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by">java.lang.ClassLoader
|
---|
90 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.AntClassLoader</B>
|
---|
91 | </PRE>
|
---|
92 | <DL>
|
---|
93 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A>, java.util.EventListener, <A HREF="../../../../org/apache/tools/ant/SubBuildListener.html" title="interface in org.apache.tools.ant">SubBuildListener</A></DD>
|
---|
94 | </DL>
|
---|
95 | <DL>
|
---|
96 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/tools/ant/loader/AntClassLoader2.html" title="class in org.apache.tools.ant.loader">AntClassLoader2</A></DD>
|
---|
97 | </DL>
|
---|
98 | <HR>
|
---|
99 | <DL>
|
---|
100 | <DT>public class <B>AntClassLoader</B><DT>extends java.lang.ClassLoader<DT>implements <A HREF="../../../../org/apache/tools/ant/SubBuildListener.html" title="interface in org.apache.tools.ant">SubBuildListener</A></DL>
|
---|
101 |
|
---|
102 | <P>
|
---|
103 | Used to load classes within ant with a different classpath from
|
---|
104 | that used to start ant. Note that it is possible to force a class
|
---|
105 | into this loader even when that class is on the system classpath by
|
---|
106 | using the forceLoadClass method. Any subsequent classes loaded by that
|
---|
107 | class will then use this loader rather than the system class loader.
|
---|
108 | <P>
|
---|
109 |
|
---|
110 | <P>
|
---|
111 | <HR>
|
---|
112 |
|
---|
113 | <P>
|
---|
114 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
115 |
|
---|
116 |
|
---|
117 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
118 |
|
---|
119 |
|
---|
120 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
121 |
|
---|
122 | <A NAME="constructor_summary"><!-- --></A>
|
---|
123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
124 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
125 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
126 | <B>Constructor Summary</B></FONT></TD>
|
---|
127 | </TR>
|
---|
128 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
129 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#AntClassLoader()">AntClassLoader</A></B>()</CODE>
|
---|
130 |
|
---|
131 | <BR>
|
---|
132 | Create an Ant Class Loader</TD>
|
---|
133 | </TR>
|
---|
134 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
135 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#AntClassLoader(java.lang.ClassLoader, boolean)">AntClassLoader</A></B>(java.lang.ClassLoader parent,
|
---|
136 | boolean parentFirst)</CODE>
|
---|
137 |
|
---|
138 | <BR>
|
---|
139 | Creates an empty class loader.</TD>
|
---|
140 | </TR>
|
---|
141 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
142 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#AntClassLoader(java.lang.ClassLoader, org.apache.tools.ant.Project, org.apache.tools.ant.types.Path, boolean)">AntClassLoader</A></B>(java.lang.ClassLoader parent,
|
---|
143 | <A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project,
|
---|
144 | <A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath,
|
---|
145 | boolean parentFirst)</CODE>
|
---|
146 |
|
---|
147 | <BR>
|
---|
148 | Creates a classloader for the given project using the classpath given.</TD>
|
---|
149 | </TR>
|
---|
150 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
151 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#AntClassLoader(org.apache.tools.ant.Project, org.apache.tools.ant.types.Path)">AntClassLoader</A></B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project,
|
---|
152 | <A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</CODE>
|
---|
153 |
|
---|
154 | <BR>
|
---|
155 | Creates a classloader for the given project using the classpath given.</TD>
|
---|
156 | </TR>
|
---|
157 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
158 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#AntClassLoader(org.apache.tools.ant.Project, org.apache.tools.ant.types.Path, boolean)">AntClassLoader</A></B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project,
|
---|
159 | <A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath,
|
---|
160 | boolean parentFirst)</CODE>
|
---|
161 |
|
---|
162 | <BR>
|
---|
163 | Creates a classloader for the given project using the classpath given.</TD>
|
---|
164 | </TR>
|
---|
165 | </TABLE>
|
---|
166 |
|
---|
167 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
168 |
|
---|
169 | <A NAME="method_summary"><!-- --></A>
|
---|
170 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
171 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
172 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
173 | <B>Method Summary</B></FONT></TD>
|
---|
174 | </TR>
|
---|
175 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
176 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
177 | <CODE> void</CODE></FONT></TD>
|
---|
178 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#addJavaLibraries()">addJavaLibraries</A></B>()</CODE>
|
---|
179 |
|
---|
180 | <BR>
|
---|
181 | add any libraries that come with different java versions
|
---|
182 | here</TD>
|
---|
183 | </TR>
|
---|
184 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
185 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
186 | <CODE> void</CODE></FONT></TD>
|
---|
187 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#addLoaderPackageRoot(java.lang.String)">addLoaderPackageRoot</A></B>(java.lang.String packageRoot)</CODE>
|
---|
188 |
|
---|
189 | <BR>
|
---|
190 | Adds a package root to the list of packages which must be loaded using
|
---|
191 | this loader.</TD>
|
---|
192 | </TR>
|
---|
193 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
195 | <CODE> void</CODE></FONT></TD>
|
---|
196 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#addPathElement(java.lang.String)">addPathElement</A></B>(java.lang.String pathElement)</CODE>
|
---|
197 |
|
---|
198 | <BR>
|
---|
199 | Adds an element to the classpath to be searched.</TD>
|
---|
200 | </TR>
|
---|
201 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
203 | <CODE>protected void</CODE></FONT></TD>
|
---|
204 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#addPathFile(java.io.File)">addPathFile</A></B>(java.io.File pathComponent)</CODE>
|
---|
205 |
|
---|
206 | <BR>
|
---|
207 | Add a file to the path</TD>
|
---|
208 | </TR>
|
---|
209 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
211 | <CODE> void</CODE></FONT></TD>
|
---|
212 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#addSystemPackageRoot(java.lang.String)">addSystemPackageRoot</A></B>(java.lang.String packageRoot)</CODE>
|
---|
213 |
|
---|
214 | <BR>
|
---|
215 | Adds a package root to the list of packages which must be loaded on the
|
---|
216 | parent loader.</TD>
|
---|
217 | </TR>
|
---|
218 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
219 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
220 | <CODE> void</CODE></FONT></TD>
|
---|
221 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#buildFinished(org.apache.tools.ant.BuildEvent)">buildFinished</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
222 |
|
---|
223 | <BR>
|
---|
224 | Cleans up any resources held by this classloader at the end
|
---|
225 | of a build.</TD>
|
---|
226 | </TR>
|
---|
227 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
228 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
229 | <CODE> void</CODE></FONT></TD>
|
---|
230 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#buildStarted(org.apache.tools.ant.BuildEvent)">buildStarted</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
231 |
|
---|
232 | <BR>
|
---|
233 | Empty implementation to satisfy the BuildListener interface.</TD>
|
---|
234 | </TR>
|
---|
235 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
236 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
237 | <CODE> void</CODE></FONT></TD>
|
---|
238 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#cleanup()">cleanup</A></B>()</CODE>
|
---|
239 |
|
---|
240 | <BR>
|
---|
241 | Cleans up any resources held by this classloader.</TD>
|
---|
242 | </TR>
|
---|
243 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
244 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
245 | <CODE>protected java.lang.Class</CODE></FONT></TD>
|
---|
246 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#defineClassFromData(java.io.File, byte[], java.lang.String)">defineClassFromData</A></B>(java.io.File container,
|
---|
247 | byte[] classData,
|
---|
248 | java.lang.String classname)</CODE>
|
---|
249 |
|
---|
250 | <BR>
|
---|
251 | Define a class given its bytes</TD>
|
---|
252 | </TR>
|
---|
253 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
254 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
255 | <CODE> java.lang.Class</CODE></FONT></TD>
|
---|
256 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#findClass(java.lang.String)">findClass</A></B>(java.lang.String name)</CODE>
|
---|
257 |
|
---|
258 | <BR>
|
---|
259 | Searches for and load a class on the classpath of this class loader.</TD>
|
---|
260 | </TR>
|
---|
261 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
263 | <CODE>protected java.util.Enumeration</CODE></FONT></TD>
|
---|
264 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#findResources(java.lang.String)">findResources</A></B>(java.lang.String name)</CODE>
|
---|
265 |
|
---|
266 | <BR>
|
---|
267 | Returns an enumeration of URLs representing all the resources with the
|
---|
268 | given name by searching the class loader's classpath.</TD>
|
---|
269 | </TR>
|
---|
270 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
271 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
272 | <CODE> java.lang.Class</CODE></FONT></TD>
|
---|
273 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#forceLoadClass(java.lang.String)">forceLoadClass</A></B>(java.lang.String classname)</CODE>
|
---|
274 |
|
---|
275 | <BR>
|
---|
276 | Loads a class through this class loader even if that class is available
|
---|
277 | on the parent classpath.</TD>
|
---|
278 | </TR>
|
---|
279 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
280 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
281 | <CODE> java.lang.Class</CODE></FONT></TD>
|
---|
282 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#forceLoadSystemClass(java.lang.String)">forceLoadSystemClass</A></B>(java.lang.String classname)</CODE>
|
---|
283 |
|
---|
284 | <BR>
|
---|
285 | Loads a class through this class loader but defer to the parent class
|
---|
286 | loader.</TD>
|
---|
287 | </TR>
|
---|
288 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
289 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
290 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
291 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#getClasspath()">getClasspath</A></B>()</CODE>
|
---|
292 |
|
---|
293 | <BR>
|
---|
294 | Returns the classpath this classloader will consult.</TD>
|
---|
295 | </TR>
|
---|
296 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
297 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
298 | <CODE> java.net.URL</CODE></FONT></TD>
|
---|
299 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#getResource(java.lang.String)">getResource</A></B>(java.lang.String name)</CODE>
|
---|
300 |
|
---|
301 | <BR>
|
---|
302 | Finds the resource with the given name.</TD>
|
---|
303 | </TR>
|
---|
304 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
305 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
306 | <CODE> java.io.InputStream</CODE></FONT></TD>
|
---|
307 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#getResourceAsStream(java.lang.String)">getResourceAsStream</A></B>(java.lang.String name)</CODE>
|
---|
308 |
|
---|
309 | <BR>
|
---|
310 | Returns a stream to read the requested resource name.</TD>
|
---|
311 | </TR>
|
---|
312 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
313 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
314 | <CODE>protected java.net.URL</CODE></FONT></TD>
|
---|
315 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#getResourceURL(java.io.File, java.lang.String)">getResourceURL</A></B>(java.io.File file,
|
---|
316 | java.lang.String resourceName)</CODE>
|
---|
317 |
|
---|
318 | <BR>
|
---|
319 | Returns the URL of a given resource in the given file which may
|
---|
320 | either be a directory or a zip file.</TD>
|
---|
321 | </TR>
|
---|
322 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
323 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
324 | <CODE>static void</CODE></FONT></TD>
|
---|
325 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#initializeClass(java.lang.Class)">initializeClass</A></B>(java.lang.Class theClass)</CODE>
|
---|
326 |
|
---|
327 | <BR>
|
---|
328 | <B>Deprecated.</B> <I>use Class.forName with initialize=true instead.</I></TD>
|
---|
329 | </TR>
|
---|
330 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
331 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
332 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
333 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#isInPath(java.io.File)">isInPath</A></B>(java.io.File component)</CODE>
|
---|
334 |
|
---|
335 | <BR>
|
---|
336 | Indicate if the given file is in this loader's path</TD>
|
---|
337 | </TR>
|
---|
338 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
339 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
340 | <CODE>protected java.lang.Class</CODE></FONT></TD>
|
---|
341 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#loadClass(java.lang.String, boolean)">loadClass</A></B>(java.lang.String classname,
|
---|
342 | boolean resolve)</CODE>
|
---|
343 |
|
---|
344 | <BR>
|
---|
345 | Loads a class with this class loader.</TD>
|
---|
346 | </TR>
|
---|
347 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
348 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
349 | <CODE>protected void</CODE></FONT></TD>
|
---|
350 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#log(java.lang.String, int)">log</A></B>(java.lang.String message,
|
---|
351 | int priority)</CODE>
|
---|
352 |
|
---|
353 | <BR>
|
---|
354 | Logs a message through the project object if one has been provided.</TD>
|
---|
355 | </TR>
|
---|
356 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
357 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
358 | <CODE> void</CODE></FONT></TD>
|
---|
359 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#messageLogged(org.apache.tools.ant.BuildEvent)">messageLogged</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
360 |
|
---|
361 | <BR>
|
---|
362 | Empty implementation to satisfy the BuildListener interface.</TD>
|
---|
363 | </TR>
|
---|
364 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
365 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
366 | <CODE> void</CODE></FONT></TD>
|
---|
367 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#resetThreadContextLoader()">resetThreadContextLoader</A></B>()</CODE>
|
---|
368 |
|
---|
369 | <BR>
|
---|
370 | Resets the current thread's context loader to its original value.</TD>
|
---|
371 | </TR>
|
---|
372 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
373 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
374 | <CODE> void</CODE></FONT></TD>
|
---|
375 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#setClassPath(org.apache.tools.ant.types.Path)">setClassPath</A></B>(<A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</CODE>
|
---|
376 |
|
---|
377 | <BR>
|
---|
378 | Set the classpath to search for classes to load.</TD>
|
---|
379 | </TR>
|
---|
380 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
381 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
382 | <CODE> void</CODE></FONT></TD>
|
---|
383 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#setIsolated(boolean)">setIsolated</A></B>(boolean isolated)</CODE>
|
---|
384 |
|
---|
385 | <BR>
|
---|
386 | Sets whether this classloader should run in isolated mode.</TD>
|
---|
387 | </TR>
|
---|
388 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
389 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
390 | <CODE> void</CODE></FONT></TD>
|
---|
391 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#setParent(java.lang.ClassLoader)">setParent</A></B>(java.lang.ClassLoader parent)</CODE>
|
---|
392 |
|
---|
393 | <BR>
|
---|
394 | Set the parent for this class loader.</TD>
|
---|
395 | </TR>
|
---|
396 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
397 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
398 | <CODE> void</CODE></FONT></TD>
|
---|
399 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#setParentFirst(boolean)">setParentFirst</A></B>(boolean parentFirst)</CODE>
|
---|
400 |
|
---|
401 | <BR>
|
---|
402 | Control whether class lookup is delegated to the parent loader first
|
---|
403 | or after this loader.</TD>
|
---|
404 | </TR>
|
---|
405 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
406 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
407 | <CODE> void</CODE></FONT></TD>
|
---|
408 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#setProject(org.apache.tools.ant.Project)">setProject</A></B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</CODE>
|
---|
409 |
|
---|
410 | <BR>
|
---|
411 | Set the project associated with this class loader</TD>
|
---|
412 | </TR>
|
---|
413 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
414 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
415 | <CODE> void</CODE></FONT></TD>
|
---|
416 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#setThreadContextLoader()">setThreadContextLoader</A></B>()</CODE>
|
---|
417 |
|
---|
418 | <BR>
|
---|
419 | Sets the current thread's context loader to this classloader, storing
|
---|
420 | the current loader value for later resetting.</TD>
|
---|
421 | </TR>
|
---|
422 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
423 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
424 | <CODE> void</CODE></FONT></TD>
|
---|
425 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#subBuildFinished(org.apache.tools.ant.BuildEvent)">subBuildFinished</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
426 |
|
---|
427 | <BR>
|
---|
428 | Cleans up any resources held by this classloader at the end of
|
---|
429 | a subbuild if it has been created for the subbuild's project
|
---|
430 | instance.</TD>
|
---|
431 | </TR>
|
---|
432 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
433 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
434 | <CODE> void</CODE></FONT></TD>
|
---|
435 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#subBuildStarted(org.apache.tools.ant.BuildEvent)">subBuildStarted</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
436 |
|
---|
437 | <BR>
|
---|
438 | Empty implementation to satisfy the BuildListener interface.</TD>
|
---|
439 | </TR>
|
---|
440 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
441 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
442 | <CODE> void</CODE></FONT></TD>
|
---|
443 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#targetFinished(org.apache.tools.ant.BuildEvent)">targetFinished</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
444 |
|
---|
445 | <BR>
|
---|
446 | Empty implementation to satisfy the BuildListener interface.</TD>
|
---|
447 | </TR>
|
---|
448 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
449 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
450 | <CODE> void</CODE></FONT></TD>
|
---|
451 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#targetStarted(org.apache.tools.ant.BuildEvent)">targetStarted</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
452 |
|
---|
453 | <BR>
|
---|
454 | Empty implementation to satisfy the BuildListener interface.</TD>
|
---|
455 | </TR>
|
---|
456 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
457 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
458 | <CODE> void</CODE></FONT></TD>
|
---|
459 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#taskFinished(org.apache.tools.ant.BuildEvent)">taskFinished</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
460 |
|
---|
461 | <BR>
|
---|
462 | Empty implementation to satisfy the BuildListener interface.</TD>
|
---|
463 | </TR>
|
---|
464 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
465 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
466 | <CODE> void</CODE></FONT></TD>
|
---|
467 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/AntClassLoader.html#taskStarted(org.apache.tools.ant.BuildEvent)">taskStarted</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</CODE>
|
---|
468 |
|
---|
469 | <BR>
|
---|
470 | Empty implementation to satisfy the BuildListener interface.</TD>
|
---|
471 | </TR>
|
---|
472 | </TABLE>
|
---|
473 | <A NAME="methods_inherited_from_class_java.lang.ClassLoader"><!-- --></A>
|
---|
474 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
475 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
476 | <TD><B>Methods inherited from class java.lang.ClassLoader</B></TD>
|
---|
477 | </TR>
|
---|
478 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
479 | <TD><CODE>clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findSystemClass, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners</CODE></TD>
|
---|
480 | </TR>
|
---|
481 | </TABLE>
|
---|
482 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
483 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
484 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
485 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
486 | </TR>
|
---|
487 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
488 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
489 | </TR>
|
---|
490 | </TABLE>
|
---|
491 |
|
---|
492 | <P>
|
---|
493 |
|
---|
494 | <!-- ============ FIELD DETAIL =========== -->
|
---|
495 |
|
---|
496 |
|
---|
497 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
498 |
|
---|
499 | <A NAME="constructor_detail"><!-- --></A>
|
---|
500 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
501 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
502 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
503 | <B>Constructor Detail</B></FONT></TD>
|
---|
504 | </TR>
|
---|
505 | </TABLE>
|
---|
506 |
|
---|
507 | <A NAME="AntClassLoader()"><!-- --></A><H3>
|
---|
508 | AntClassLoader</H3>
|
---|
509 | <PRE>
|
---|
510 | public <B>AntClassLoader</B>()</PRE>
|
---|
511 | <DL>
|
---|
512 | <DD>Create an Ant Class Loader
|
---|
513 | <P>
|
---|
514 | </DL>
|
---|
515 | <HR>
|
---|
516 |
|
---|
517 | <A NAME="AntClassLoader(org.apache.tools.ant.Project, org.apache.tools.ant.types.Path)"><!-- --></A><H3>
|
---|
518 | AntClassLoader</H3>
|
---|
519 | <PRE>
|
---|
520 | public <B>AntClassLoader</B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project,
|
---|
521 | <A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</PRE>
|
---|
522 | <DL>
|
---|
523 | <DD>Creates a classloader for the given project using the classpath given.
|
---|
524 | <P>
|
---|
525 | <DT><B>Parameters:</B><DD><CODE>project</CODE> - The project to which this classloader is to belong.
|
---|
526 | Must not be <code>null</code>.<DD><CODE>classpath</CODE> - The classpath to use to load the classes. This
|
---|
527 | is combined with the system classpath in a manner
|
---|
528 | determined by the value of ${build.sysclasspath}.
|
---|
529 | May be <code>null</code>, in which case no path
|
---|
530 | elements are set up to start with.</DL>
|
---|
531 | <HR>
|
---|
532 |
|
---|
533 | <A NAME="AntClassLoader(java.lang.ClassLoader, org.apache.tools.ant.Project, org.apache.tools.ant.types.Path, boolean)"><!-- --></A><H3>
|
---|
534 | AntClassLoader</H3>
|
---|
535 | <PRE>
|
---|
536 | public <B>AntClassLoader</B>(java.lang.ClassLoader parent,
|
---|
537 | <A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project,
|
---|
538 | <A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath,
|
---|
539 | boolean parentFirst)</PRE>
|
---|
540 | <DL>
|
---|
541 | <DD>Creates a classloader for the given project using the classpath given.
|
---|
542 | <P>
|
---|
543 | <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent classloader to which unsatisfied loading
|
---|
544 | attempts are delegated. May be <code>null</code>,
|
---|
545 | in which case the classloader which loaded this
|
---|
546 | class is used as the parent.<DD><CODE>project</CODE> - The project to which this classloader is to belong.
|
---|
547 | Must not be <code>null</code>.<DD><CODE>classpath</CODE> - the classpath to use to load the classes.
|
---|
548 | May be <code>null</code>, in which case no path
|
---|
549 | elements are set up to start with.<DD><CODE>parentFirst</CODE> - If <code>true</code>, indicates that the parent
|
---|
550 | classloader should be consulted before trying to
|
---|
551 | load the a class through this loader.</DL>
|
---|
552 | <HR>
|
---|
553 |
|
---|
554 | <A NAME="AntClassLoader(org.apache.tools.ant.Project, org.apache.tools.ant.types.Path, boolean)"><!-- --></A><H3>
|
---|
555 | AntClassLoader</H3>
|
---|
556 | <PRE>
|
---|
557 | public <B>AntClassLoader</B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project,
|
---|
558 | <A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath,
|
---|
559 | boolean parentFirst)</PRE>
|
---|
560 | <DL>
|
---|
561 | <DD>Creates a classloader for the given project using the classpath given.
|
---|
562 | <P>
|
---|
563 | <DT><B>Parameters:</B><DD><CODE>project</CODE> - The project to which this classloader is to belong.
|
---|
564 | Must not be <code>null</code>.<DD><CODE>classpath</CODE> - The classpath to use to load the classes. May be
|
---|
565 | <code>null</code>, in which case no path
|
---|
566 | elements are set up to start with.<DD><CODE>parentFirst</CODE> - If <code>true</code>, indicates that the parent
|
---|
567 | classloader should be consulted before trying to
|
---|
568 | load the a class through this loader.</DL>
|
---|
569 | <HR>
|
---|
570 |
|
---|
571 | <A NAME="AntClassLoader(java.lang.ClassLoader, boolean)"><!-- --></A><H3>
|
---|
572 | AntClassLoader</H3>
|
---|
573 | <PRE>
|
---|
574 | public <B>AntClassLoader</B>(java.lang.ClassLoader parent,
|
---|
575 | boolean parentFirst)</PRE>
|
---|
576 | <DL>
|
---|
577 | <DD>Creates an empty class loader. The classloader should be configured
|
---|
578 | with path elements to specify where the loader is to look for
|
---|
579 | classes.
|
---|
580 | <P>
|
---|
581 | <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent classloader to which unsatisfied loading
|
---|
582 | attempts are delegated. May be <code>null</code>,
|
---|
583 | in which case the classloader which loaded this
|
---|
584 | class is used as the parent.<DD><CODE>parentFirst</CODE> - If <code>true</code>, indicates that the parent
|
---|
585 | classloader should be consulted before trying to
|
---|
586 | load the a class through this loader.</DL>
|
---|
587 |
|
---|
588 | <!-- ============ METHOD DETAIL ========== -->
|
---|
589 |
|
---|
590 | <A NAME="method_detail"><!-- --></A>
|
---|
591 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
592 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
593 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
594 | <B>Method Detail</B></FONT></TD>
|
---|
595 | </TR>
|
---|
596 | </TABLE>
|
---|
597 |
|
---|
598 | <A NAME="setProject(org.apache.tools.ant.Project)"><!-- --></A><H3>
|
---|
599 | setProject</H3>
|
---|
600 | <PRE>
|
---|
601 | public void <B>setProject</B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</PRE>
|
---|
602 | <DL>
|
---|
603 | <DD>Set the project associated with this class loader
|
---|
604 | <P>
|
---|
605 | <DD><DL>
|
---|
606 | </DL>
|
---|
607 | </DD>
|
---|
608 | <DD><DL>
|
---|
609 | <DT><B>Parameters:</B><DD><CODE>project</CODE> - the project instance</DL>
|
---|
610 | </DD>
|
---|
611 | </DL>
|
---|
612 | <HR>
|
---|
613 |
|
---|
614 | <A NAME="setClassPath(org.apache.tools.ant.types.Path)"><!-- --></A><H3>
|
---|
615 | setClassPath</H3>
|
---|
616 | <PRE>
|
---|
617 | public void <B>setClassPath</B>(<A HREF="../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</PRE>
|
---|
618 | <DL>
|
---|
619 | <DD>Set the classpath to search for classes to load. This should not be
|
---|
620 | changed once the classloader starts to server classes
|
---|
621 | <P>
|
---|
622 | <DD><DL>
|
---|
623 | </DL>
|
---|
624 | </DD>
|
---|
625 | <DD><DL>
|
---|
626 | <DT><B>Parameters:</B><DD><CODE>classpath</CODE> - the search classpath consisting of directories and
|
---|
627 | jar/zip files.</DL>
|
---|
628 | </DD>
|
---|
629 | </DL>
|
---|
630 | <HR>
|
---|
631 |
|
---|
632 | <A NAME="setParent(java.lang.ClassLoader)"><!-- --></A><H3>
|
---|
633 | setParent</H3>
|
---|
634 | <PRE>
|
---|
635 | public void <B>setParent</B>(java.lang.ClassLoader parent)</PRE>
|
---|
636 | <DL>
|
---|
637 | <DD>Set the parent for this class loader. This is the class loader to which
|
---|
638 | this class loader will delegate to load classes
|
---|
639 | <P>
|
---|
640 | <DD><DL>
|
---|
641 | </DL>
|
---|
642 | </DD>
|
---|
643 | <DD><DL>
|
---|
644 | <DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent class loader.</DL>
|
---|
645 | </DD>
|
---|
646 | </DL>
|
---|
647 | <HR>
|
---|
648 |
|
---|
649 | <A NAME="setParentFirst(boolean)"><!-- --></A><H3>
|
---|
650 | setParentFirst</H3>
|
---|
651 | <PRE>
|
---|
652 | public void <B>setParentFirst</B>(boolean parentFirst)</PRE>
|
---|
653 | <DL>
|
---|
654 | <DD>Control whether class lookup is delegated to the parent loader first
|
---|
655 | or after this loader. Use with extreme caution. Setting this to
|
---|
656 | false violates the class loader hierarchy and can lead to Linkage errors
|
---|
657 | <P>
|
---|
658 | <DD><DL>
|
---|
659 | </DL>
|
---|
660 | </DD>
|
---|
661 | <DD><DL>
|
---|
662 | <DT><B>Parameters:</B><DD><CODE>parentFirst</CODE> - if true, delegate initial class search to the parent
|
---|
663 | classloader.</DL>
|
---|
664 | </DD>
|
---|
665 | </DL>
|
---|
666 | <HR>
|
---|
667 |
|
---|
668 | <A NAME="log(java.lang.String, int)"><!-- --></A><H3>
|
---|
669 | log</H3>
|
---|
670 | <PRE>
|
---|
671 | protected void <B>log</B>(java.lang.String message,
|
---|
672 | int priority)</PRE>
|
---|
673 | <DL>
|
---|
674 | <DD>Logs a message through the project object if one has been provided.
|
---|
675 | <P>
|
---|
676 | <DD><DL>
|
---|
677 | </DL>
|
---|
678 | </DD>
|
---|
679 | <DD><DL>
|
---|
680 | <DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to log.
|
---|
681 | Should not be <code>null</code>.<DD><CODE>priority</CODE> - The logging priority of the message.</DL>
|
---|
682 | </DD>
|
---|
683 | </DL>
|
---|
684 | <HR>
|
---|
685 |
|
---|
686 | <A NAME="setThreadContextLoader()"><!-- --></A><H3>
|
---|
687 | setThreadContextLoader</H3>
|
---|
688 | <PRE>
|
---|
689 | public void <B>setThreadContextLoader</B>()</PRE>
|
---|
690 | <DL>
|
---|
691 | <DD>Sets the current thread's context loader to this classloader, storing
|
---|
692 | the current loader value for later resetting.
|
---|
693 | <P>
|
---|
694 | <DD><DL>
|
---|
695 | </DL>
|
---|
696 | </DD>
|
---|
697 | <DD><DL>
|
---|
698 | </DL>
|
---|
699 | </DD>
|
---|
700 | </DL>
|
---|
701 | <HR>
|
---|
702 |
|
---|
703 | <A NAME="resetThreadContextLoader()"><!-- --></A><H3>
|
---|
704 | resetThreadContextLoader</H3>
|
---|
705 | <PRE>
|
---|
706 | public void <B>resetThreadContextLoader</B>()</PRE>
|
---|
707 | <DL>
|
---|
708 | <DD>Resets the current thread's context loader to its original value.
|
---|
709 | <P>
|
---|
710 | <DD><DL>
|
---|
711 | </DL>
|
---|
712 | </DD>
|
---|
713 | <DD><DL>
|
---|
714 | </DL>
|
---|
715 | </DD>
|
---|
716 | </DL>
|
---|
717 | <HR>
|
---|
718 |
|
---|
719 | <A NAME="addPathElement(java.lang.String)"><!-- --></A><H3>
|
---|
720 | addPathElement</H3>
|
---|
721 | <PRE>
|
---|
722 | public void <B>addPathElement</B>(java.lang.String pathElement)
|
---|
723 | throws <A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
724 | <DL>
|
---|
725 | <DD>Adds an element to the classpath to be searched.
|
---|
726 | <P>
|
---|
727 | <DD><DL>
|
---|
728 | </DL>
|
---|
729 | </DD>
|
---|
730 | <DD><DL>
|
---|
731 | <DT><B>Parameters:</B><DD><CODE>pathElement</CODE> - The path element to add. Must not be
|
---|
732 | <code>null</code>.
|
---|
733 | <DT><B>Throws:</B>
|
---|
734 | <DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if the given path element cannot be resolved
|
---|
735 | against the project.</DL>
|
---|
736 | </DD>
|
---|
737 | </DL>
|
---|
738 | <HR>
|
---|
739 |
|
---|
740 | <A NAME="addPathFile(java.io.File)"><!-- --></A><H3>
|
---|
741 | addPathFile</H3>
|
---|
742 | <PRE>
|
---|
743 | protected void <B>addPathFile</B>(java.io.File pathComponent)
|
---|
744 | throws java.io.IOException</PRE>
|
---|
745 | <DL>
|
---|
746 | <DD>Add a file to the path
|
---|
747 | <P>
|
---|
748 | <DD><DL>
|
---|
749 | </DL>
|
---|
750 | </DD>
|
---|
751 | <DD><DL>
|
---|
752 | <DT><B>Parameters:</B><DD><CODE>pathComponent</CODE> - the file which is to be added to the path for
|
---|
753 | this class loader
|
---|
754 | <DT><B>Throws:</B>
|
---|
755 | <DD><CODE>java.io.IOException</CODE> - if data needed from the file cannot be read.</DL>
|
---|
756 | </DD>
|
---|
757 | </DL>
|
---|
758 | <HR>
|
---|
759 |
|
---|
760 | <A NAME="getClasspath()"><!-- --></A><H3>
|
---|
761 | getClasspath</H3>
|
---|
762 | <PRE>
|
---|
763 | public java.lang.String <B>getClasspath</B>()</PRE>
|
---|
764 | <DL>
|
---|
765 | <DD>Returns the classpath this classloader will consult.
|
---|
766 | <P>
|
---|
767 | <DD><DL>
|
---|
768 | </DL>
|
---|
769 | </DD>
|
---|
770 | <DD><DL>
|
---|
771 |
|
---|
772 | <DT><B>Returns:</B><DD>the classpath used for this classloader, with elements
|
---|
773 | separated by the path separator for the system.</DL>
|
---|
774 | </DD>
|
---|
775 | </DL>
|
---|
776 | <HR>
|
---|
777 |
|
---|
778 | <A NAME="setIsolated(boolean)"><!-- --></A><H3>
|
---|
779 | setIsolated</H3>
|
---|
780 | <PRE>
|
---|
781 | public void <B>setIsolated</B>(boolean isolated)</PRE>
|
---|
782 | <DL>
|
---|
783 | <DD>Sets whether this classloader should run in isolated mode. In
|
---|
784 | isolated mode, classes not found on the given classpath will
|
---|
785 | not be referred to the parent class loader but will cause a
|
---|
786 | ClassNotFoundException.
|
---|
787 | <P>
|
---|
788 | <DD><DL>
|
---|
789 | </DL>
|
---|
790 | </DD>
|
---|
791 | <DD><DL>
|
---|
792 | <DT><B>Parameters:</B><DD><CODE>isolated</CODE> - Whether or not this classloader should run in
|
---|
793 | isolated mode.</DL>
|
---|
794 | </DD>
|
---|
795 | </DL>
|
---|
796 | <HR>
|
---|
797 |
|
---|
798 | <A NAME="initializeClass(java.lang.Class)"><!-- --></A><H3>
|
---|
799 | initializeClass</H3>
|
---|
800 | <PRE>
|
---|
801 | public static void <B>initializeClass</B>(java.lang.Class theClass)</PRE>
|
---|
802 | <DL>
|
---|
803 | <DD><B>Deprecated.</B> <I>use Class.forName with initialize=true instead.</I>
|
---|
804 | <P>
|
---|
805 | <DD>Forces initialization of a class in a JDK 1.1 compatible, albeit hacky
|
---|
806 | way.
|
---|
807 | <P>
|
---|
808 | <DD><DL>
|
---|
809 | </DL>
|
---|
810 | </DD>
|
---|
811 | <DD><DL>
|
---|
812 | <DT><B>Parameters:</B><DD><CODE>theClass</CODE> - The class to initialize.
|
---|
813 | Must not be <code>null</code>.</DL>
|
---|
814 | </DD>
|
---|
815 | </DL>
|
---|
816 | <HR>
|
---|
817 |
|
---|
818 | <A NAME="addSystemPackageRoot(java.lang.String)"><!-- --></A><H3>
|
---|
819 | addSystemPackageRoot</H3>
|
---|
820 | <PRE>
|
---|
821 | public void <B>addSystemPackageRoot</B>(java.lang.String packageRoot)</PRE>
|
---|
822 | <DL>
|
---|
823 | <DD>Adds a package root to the list of packages which must be loaded on the
|
---|
824 | parent loader.
|
---|
825 |
|
---|
826 | All subpackages are also included.
|
---|
827 | <P>
|
---|
828 | <DD><DL>
|
---|
829 | </DL>
|
---|
830 | </DD>
|
---|
831 | <DD><DL>
|
---|
832 | <DT><B>Parameters:</B><DD><CODE>packageRoot</CODE> - The root of all packages to be included.
|
---|
833 | Should not be <code>null</code>.</DL>
|
---|
834 | </DD>
|
---|
835 | </DL>
|
---|
836 | <HR>
|
---|
837 |
|
---|
838 | <A NAME="addLoaderPackageRoot(java.lang.String)"><!-- --></A><H3>
|
---|
839 | addLoaderPackageRoot</H3>
|
---|
840 | <PRE>
|
---|
841 | public void <B>addLoaderPackageRoot</B>(java.lang.String packageRoot)</PRE>
|
---|
842 | <DL>
|
---|
843 | <DD>Adds a package root to the list of packages which must be loaded using
|
---|
844 | this loader.
|
---|
845 |
|
---|
846 | All subpackages are also included.
|
---|
847 | <P>
|
---|
848 | <DD><DL>
|
---|
849 | </DL>
|
---|
850 | </DD>
|
---|
851 | <DD><DL>
|
---|
852 | <DT><B>Parameters:</B><DD><CODE>packageRoot</CODE> - The root of all packages to be included.
|
---|
853 | Should not be <code>null</code>.</DL>
|
---|
854 | </DD>
|
---|
855 | </DL>
|
---|
856 | <HR>
|
---|
857 |
|
---|
858 | <A NAME="forceLoadClass(java.lang.String)"><!-- --></A><H3>
|
---|
859 | forceLoadClass</H3>
|
---|
860 | <PRE>
|
---|
861 | public java.lang.Class <B>forceLoadClass</B>(java.lang.String classname)
|
---|
862 | throws java.lang.ClassNotFoundException</PRE>
|
---|
863 | <DL>
|
---|
864 | <DD>Loads a class through this class loader even if that class is available
|
---|
865 | on the parent classpath.
|
---|
866 |
|
---|
867 | This ensures that any classes which are loaded by the returned class
|
---|
868 | will use this classloader.
|
---|
869 | <P>
|
---|
870 | <DD><DL>
|
---|
871 | </DL>
|
---|
872 | </DD>
|
---|
873 | <DD><DL>
|
---|
874 | <DT><B>Parameters:</B><DD><CODE>classname</CODE> - The name of the class to be loaded.
|
---|
875 | Must not be <code>null</code>.
|
---|
876 | <DT><B>Returns:</B><DD>the required Class object
|
---|
877 | <DT><B>Throws:</B>
|
---|
878 | <DD><CODE>java.lang.ClassNotFoundException</CODE> - if the requested class does not exist
|
---|
879 | on this loader's classpath.</DL>
|
---|
880 | </DD>
|
---|
881 | </DL>
|
---|
882 | <HR>
|
---|
883 |
|
---|
884 | <A NAME="forceLoadSystemClass(java.lang.String)"><!-- --></A><H3>
|
---|
885 | forceLoadSystemClass</H3>
|
---|
886 | <PRE>
|
---|
887 | public java.lang.Class <B>forceLoadSystemClass</B>(java.lang.String classname)
|
---|
888 | throws java.lang.ClassNotFoundException</PRE>
|
---|
889 | <DL>
|
---|
890 | <DD>Loads a class through this class loader but defer to the parent class
|
---|
891 | loader.
|
---|
892 |
|
---|
893 | This ensures that instances of the returned class will be compatible
|
---|
894 | with instances which have already been loaded on the parent
|
---|
895 | loader.
|
---|
896 | <P>
|
---|
897 | <DD><DL>
|
---|
898 | </DL>
|
---|
899 | </DD>
|
---|
900 | <DD><DL>
|
---|
901 | <DT><B>Parameters:</B><DD><CODE>classname</CODE> - The name of the class to be loaded.
|
---|
902 | Must not be <code>null</code>.
|
---|
903 | <DT><B>Returns:</B><DD>the required Class object
|
---|
904 | <DT><B>Throws:</B>
|
---|
905 | <DD><CODE>java.lang.ClassNotFoundException</CODE> - if the requested class does not exist
|
---|
906 | on this loader's classpath.</DL>
|
---|
907 | </DD>
|
---|
908 | </DL>
|
---|
909 | <HR>
|
---|
910 |
|
---|
911 | <A NAME="getResourceAsStream(java.lang.String)"><!-- --></A><H3>
|
---|
912 | getResourceAsStream</H3>
|
---|
913 | <PRE>
|
---|
914 | public java.io.InputStream <B>getResourceAsStream</B>(java.lang.String name)</PRE>
|
---|
915 | <DL>
|
---|
916 | <DD>Returns a stream to read the requested resource name.
|
---|
917 | <P>
|
---|
918 | <DD><DL>
|
---|
919 | </DL>
|
---|
920 | </DD>
|
---|
921 | <DD><DL>
|
---|
922 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the resource for which a stream is required.
|
---|
923 | Must not be <code>null</code>.
|
---|
924 | <DT><B>Returns:</B><DD>a stream to the required resource or <code>null</code> if the
|
---|
925 | resource cannot be found on the loader's classpath.</DL>
|
---|
926 | </DD>
|
---|
927 | </DL>
|
---|
928 | <HR>
|
---|
929 |
|
---|
930 | <A NAME="getResource(java.lang.String)"><!-- --></A><H3>
|
---|
931 | getResource</H3>
|
---|
932 | <PRE>
|
---|
933 | public java.net.URL <B>getResource</B>(java.lang.String name)</PRE>
|
---|
934 | <DL>
|
---|
935 | <DD>Finds the resource with the given name. A resource is
|
---|
936 | some data (images, audio, text, etc) that can be accessed by class
|
---|
937 | code in a way that is independent of the location of the code.
|
---|
938 | <P>
|
---|
939 | <DD><DL>
|
---|
940 | </DL>
|
---|
941 | </DD>
|
---|
942 | <DD><DL>
|
---|
943 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the resource for which a stream is required.
|
---|
944 | Must not be <code>null</code>.
|
---|
945 | <DT><B>Returns:</B><DD>a URL for reading the resource, or <code>null</code> if the
|
---|
946 | resource could not be found or the caller doesn't have
|
---|
947 | adequate privileges to get the resource.</DL>
|
---|
948 | </DD>
|
---|
949 | </DL>
|
---|
950 | <HR>
|
---|
951 |
|
---|
952 | <A NAME="findResources(java.lang.String)"><!-- --></A><H3>
|
---|
953 | findResources</H3>
|
---|
954 | <PRE>
|
---|
955 | protected java.util.Enumeration <B>findResources</B>(java.lang.String name)
|
---|
956 | throws java.io.IOException</PRE>
|
---|
957 | <DL>
|
---|
958 | <DD>Returns an enumeration of URLs representing all the resources with the
|
---|
959 | given name by searching the class loader's classpath.
|
---|
960 | <P>
|
---|
961 | <DD><DL>
|
---|
962 | </DL>
|
---|
963 | </DD>
|
---|
964 | <DD><DL>
|
---|
965 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name to search for.
|
---|
966 | Must not be <code>null</code>.
|
---|
967 | <DT><B>Returns:</B><DD>an enumeration of URLs for the resources
|
---|
968 | <DT><B>Throws:</B>
|
---|
969 | <DD><CODE>java.io.IOException</CODE> - if I/O errors occurs (can't happen)</DL>
|
---|
970 | </DD>
|
---|
971 | </DL>
|
---|
972 | <HR>
|
---|
973 |
|
---|
974 | <A NAME="getResourceURL(java.io.File, java.lang.String)"><!-- --></A><H3>
|
---|
975 | getResourceURL</H3>
|
---|
976 | <PRE>
|
---|
977 | protected java.net.URL <B>getResourceURL</B>(java.io.File file,
|
---|
978 | java.lang.String resourceName)</PRE>
|
---|
979 | <DL>
|
---|
980 | <DD>Returns the URL of a given resource in the given file which may
|
---|
981 | either be a directory or a zip file.
|
---|
982 | <P>
|
---|
983 | <DD><DL>
|
---|
984 | </DL>
|
---|
985 | </DD>
|
---|
986 | <DD><DL>
|
---|
987 | <DT><B>Parameters:</B><DD><CODE>file</CODE> - The file (directory or jar) in which to search for
|
---|
988 | the resource. Must not be <code>null</code>.<DD><CODE>resourceName</CODE> - The name of the resource for which a stream
|
---|
989 | is required. Must not be <code>null</code>.
|
---|
990 | <DT><B>Returns:</B><DD>a stream to the required resource or <code>null</code> if the
|
---|
991 | resource cannot be found in the given file object.</DL>
|
---|
992 | </DD>
|
---|
993 | </DL>
|
---|
994 | <HR>
|
---|
995 |
|
---|
996 | <A NAME="loadClass(java.lang.String, boolean)"><!-- --></A><H3>
|
---|
997 | loadClass</H3>
|
---|
998 | <PRE>
|
---|
999 | protected java.lang.Class <B>loadClass</B>(java.lang.String classname,
|
---|
1000 | boolean resolve)
|
---|
1001 | throws java.lang.ClassNotFoundException</PRE>
|
---|
1002 | <DL>
|
---|
1003 | <DD>Loads a class with this class loader.
|
---|
1004 |
|
---|
1005 | This class attempts to load the class in an order determined by whether
|
---|
1006 | or not the class matches the system/loader package lists, with the
|
---|
1007 | loader package list taking priority. If the classloader is in isolated
|
---|
1008 | mode, failure to load the class in this loader will result in a
|
---|
1009 | ClassNotFoundException.
|
---|
1010 | <P>
|
---|
1011 | <DD><DL>
|
---|
1012 | </DL>
|
---|
1013 | </DD>
|
---|
1014 | <DD><DL>
|
---|
1015 | <DT><B>Parameters:</B><DD><CODE>classname</CODE> - The name of the class to be loaded.
|
---|
1016 | Must not be <code>null</code>.<DD><CODE>resolve</CODE> - <code>true</code> if all classes upon which this class
|
---|
1017 | depends are to be loaded.
|
---|
1018 | <DT><B>Returns:</B><DD>the required Class object
|
---|
1019 | <DT><B>Throws:</B>
|
---|
1020 | <DD><CODE>java.lang.ClassNotFoundException</CODE> - if the requested class does not exist
|
---|
1021 | on the system classpath (when not in isolated mode) or this loader's
|
---|
1022 | classpath.</DL>
|
---|
1023 | </DD>
|
---|
1024 | </DL>
|
---|
1025 | <HR>
|
---|
1026 |
|
---|
1027 | <A NAME="defineClassFromData(java.io.File, byte[], java.lang.String)"><!-- --></A><H3>
|
---|
1028 | defineClassFromData</H3>
|
---|
1029 | <PRE>
|
---|
1030 | protected java.lang.Class <B>defineClassFromData</B>(java.io.File container,
|
---|
1031 | byte[] classData,
|
---|
1032 | java.lang.String classname)
|
---|
1033 | throws java.io.IOException</PRE>
|
---|
1034 | <DL>
|
---|
1035 | <DD>Define a class given its bytes
|
---|
1036 | <P>
|
---|
1037 | <DD><DL>
|
---|
1038 | </DL>
|
---|
1039 | </DD>
|
---|
1040 | <DD><DL>
|
---|
1041 | <DT><B>Parameters:</B><DD><CODE>container</CODE> - the container from which the class data has been read
|
---|
1042 | may be a directory or a jar/zip file.<DD><CODE>classData</CODE> - the bytecode data for the class<DD><CODE>classname</CODE> - the name of the class
|
---|
1043 | <DT><B>Returns:</B><DD>the Class instance created from the given data
|
---|
1044 | <DT><B>Throws:</B>
|
---|
1045 | <DD><CODE>java.io.IOException</CODE> - if the class data cannot be read.</DL>
|
---|
1046 | </DD>
|
---|
1047 | </DL>
|
---|
1048 | <HR>
|
---|
1049 |
|
---|
1050 | <A NAME="findClass(java.lang.String)"><!-- --></A><H3>
|
---|
1051 | findClass</H3>
|
---|
1052 | <PRE>
|
---|
1053 | public java.lang.Class <B>findClass</B>(java.lang.String name)
|
---|
1054 | throws java.lang.ClassNotFoundException</PRE>
|
---|
1055 | <DL>
|
---|
1056 | <DD>Searches for and load a class on the classpath of this class loader.
|
---|
1057 | <P>
|
---|
1058 | <DD><DL>
|
---|
1059 | </DL>
|
---|
1060 | </DD>
|
---|
1061 | <DD><DL>
|
---|
1062 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the class to be loaded. Must not be
|
---|
1063 | <code>null</code>.
|
---|
1064 | <DT><B>Returns:</B><DD>the required Class object
|
---|
1065 | <DT><B>Throws:</B>
|
---|
1066 | <DD><CODE>java.lang.ClassNotFoundException</CODE> - if the requested class does not exist
|
---|
1067 | on this loader's classpath.</DL>
|
---|
1068 | </DD>
|
---|
1069 | </DL>
|
---|
1070 | <HR>
|
---|
1071 |
|
---|
1072 | <A NAME="isInPath(java.io.File)"><!-- --></A><H3>
|
---|
1073 | isInPath</H3>
|
---|
1074 | <PRE>
|
---|
1075 | protected boolean <B>isInPath</B>(java.io.File component)</PRE>
|
---|
1076 | <DL>
|
---|
1077 | <DD>Indicate if the given file is in this loader's path
|
---|
1078 | <P>
|
---|
1079 | <DD><DL>
|
---|
1080 | </DL>
|
---|
1081 | </DD>
|
---|
1082 | <DD><DL>
|
---|
1083 | <DT><B>Parameters:</B><DD><CODE>component</CODE> - the file which is to be checked
|
---|
1084 | <DT><B>Returns:</B><DD>true if the file is in the class path</DL>
|
---|
1085 | </DD>
|
---|
1086 | </DL>
|
---|
1087 | <HR>
|
---|
1088 |
|
---|
1089 | <A NAME="cleanup()"><!-- --></A><H3>
|
---|
1090 | cleanup</H3>
|
---|
1091 | <PRE>
|
---|
1092 | public void <B>cleanup</B>()</PRE>
|
---|
1093 | <DL>
|
---|
1094 | <DD>Cleans up any resources held by this classloader. Any open archive
|
---|
1095 | files are closed.
|
---|
1096 | <P>
|
---|
1097 | <DD><DL>
|
---|
1098 | </DL>
|
---|
1099 | </DD>
|
---|
1100 | <DD><DL>
|
---|
1101 | </DL>
|
---|
1102 | </DD>
|
---|
1103 | </DL>
|
---|
1104 | <HR>
|
---|
1105 |
|
---|
1106 | <A NAME="buildStarted(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1107 | buildStarted</H3>
|
---|
1108 | <PRE>
|
---|
1109 | public void <B>buildStarted</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1110 | <DL>
|
---|
1111 | <DD>Empty implementation to satisfy the BuildListener interface.
|
---|
1112 | <P>
|
---|
1113 | <DD><DL>
|
---|
1114 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#buildStarted(org.apache.tools.ant.BuildEvent)">buildStarted</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
|
---|
1115 | </DD>
|
---|
1116 | <DD><DL>
|
---|
1117 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the buildStarted event</DL>
|
---|
1118 | </DD>
|
---|
1119 | </DL>
|
---|
1120 | <HR>
|
---|
1121 |
|
---|
1122 | <A NAME="buildFinished(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1123 | buildFinished</H3>
|
---|
1124 | <PRE>
|
---|
1125 | public void <B>buildFinished</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1126 | <DL>
|
---|
1127 | <DD>Cleans up any resources held by this classloader at the end
|
---|
1128 | of a build.
|
---|
1129 | <P>
|
---|
1130 | <DD><DL>
|
---|
1131 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#buildFinished(org.apache.tools.ant.BuildEvent)">buildFinished</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
|
---|
1132 | </DD>
|
---|
1133 | <DD><DL>
|
---|
1134 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the buildFinished event<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getException()"><CODE>BuildEvent.getException()</CODE></A></DL>
|
---|
1135 | </DD>
|
---|
1136 | </DL>
|
---|
1137 | <HR>
|
---|
1138 |
|
---|
1139 | <A NAME="subBuildFinished(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1140 | subBuildFinished</H3>
|
---|
1141 | <PRE>
|
---|
1142 | public void <B>subBuildFinished</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1143 | <DL>
|
---|
1144 | <DD>Cleans up any resources held by this classloader at the end of
|
---|
1145 | a subbuild if it has been created for the subbuild's project
|
---|
1146 | instance.
|
---|
1147 | <P>
|
---|
1148 | <DD><DL>
|
---|
1149 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/SubBuildListener.html#subBuildFinished(org.apache.tools.ant.BuildEvent)">subBuildFinished</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/SubBuildListener.html" title="interface in org.apache.tools.ant">SubBuildListener</A></CODE></DL>
|
---|
1150 | </DD>
|
---|
1151 | <DD><DL>
|
---|
1152 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the buildFinished event<DT><B>Since:</B></DT>
|
---|
1153 | <DD>Ant 1.6.2</DD>
|
---|
1154 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getException()"><CODE>BuildEvent.getException()</CODE></A></DL>
|
---|
1155 | </DD>
|
---|
1156 | </DL>
|
---|
1157 | <HR>
|
---|
1158 |
|
---|
1159 | <A NAME="subBuildStarted(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1160 | subBuildStarted</H3>
|
---|
1161 | <PRE>
|
---|
1162 | public void <B>subBuildStarted</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1163 | <DL>
|
---|
1164 | <DD>Empty implementation to satisfy the BuildListener interface.
|
---|
1165 | <P>
|
---|
1166 | <DD><DL>
|
---|
1167 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/SubBuildListener.html#subBuildStarted(org.apache.tools.ant.BuildEvent)">subBuildStarted</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/SubBuildListener.html" title="interface in org.apache.tools.ant">SubBuildListener</A></CODE></DL>
|
---|
1168 | </DD>
|
---|
1169 | <DD><DL>
|
---|
1170 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the buildStarted event<DT><B>Since:</B></DT>
|
---|
1171 | <DD>Ant 1.6.2</DD>
|
---|
1172 | </DL>
|
---|
1173 | </DD>
|
---|
1174 | </DL>
|
---|
1175 | <HR>
|
---|
1176 |
|
---|
1177 | <A NAME="targetStarted(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1178 | targetStarted</H3>
|
---|
1179 | <PRE>
|
---|
1180 | public void <B>targetStarted</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1181 | <DL>
|
---|
1182 | <DD>Empty implementation to satisfy the BuildListener interface.
|
---|
1183 | <P>
|
---|
1184 | <DD><DL>
|
---|
1185 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#targetStarted(org.apache.tools.ant.BuildEvent)">targetStarted</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
|
---|
1186 | </DD>
|
---|
1187 | <DD><DL>
|
---|
1188 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the targetStarted event<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getTarget()"><CODE>BuildEvent.getTarget()</CODE></A></DL>
|
---|
1189 | </DD>
|
---|
1190 | </DL>
|
---|
1191 | <HR>
|
---|
1192 |
|
---|
1193 | <A NAME="targetFinished(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1194 | targetFinished</H3>
|
---|
1195 | <PRE>
|
---|
1196 | public void <B>targetFinished</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1197 | <DL>
|
---|
1198 | <DD>Empty implementation to satisfy the BuildListener interface.
|
---|
1199 | <P>
|
---|
1200 | <DD><DL>
|
---|
1201 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#targetFinished(org.apache.tools.ant.BuildEvent)">targetFinished</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
|
---|
1202 | </DD>
|
---|
1203 | <DD><DL>
|
---|
1204 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the targetFinished event<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getException()"><CODE>BuildEvent.getException()</CODE></A></DL>
|
---|
1205 | </DD>
|
---|
1206 | </DL>
|
---|
1207 | <HR>
|
---|
1208 |
|
---|
1209 | <A NAME="taskStarted(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1210 | taskStarted</H3>
|
---|
1211 | <PRE>
|
---|
1212 | public void <B>taskStarted</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1213 | <DL>
|
---|
1214 | <DD>Empty implementation to satisfy the BuildListener interface.
|
---|
1215 | <P>
|
---|
1216 | <DD><DL>
|
---|
1217 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#taskStarted(org.apache.tools.ant.BuildEvent)">taskStarted</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
|
---|
1218 | </DD>
|
---|
1219 | <DD><DL>
|
---|
1220 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the taskStarted event<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getTask()"><CODE>BuildEvent.getTask()</CODE></A></DL>
|
---|
1221 | </DD>
|
---|
1222 | </DL>
|
---|
1223 | <HR>
|
---|
1224 |
|
---|
1225 | <A NAME="taskFinished(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1226 | taskFinished</H3>
|
---|
1227 | <PRE>
|
---|
1228 | public void <B>taskFinished</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1229 | <DL>
|
---|
1230 | <DD>Empty implementation to satisfy the BuildListener interface.
|
---|
1231 | <P>
|
---|
1232 | <DD><DL>
|
---|
1233 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#taskFinished(org.apache.tools.ant.BuildEvent)">taskFinished</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
|
---|
1234 | </DD>
|
---|
1235 | <DD><DL>
|
---|
1236 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the taskFinished event<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getException()"><CODE>BuildEvent.getException()</CODE></A></DL>
|
---|
1237 | </DD>
|
---|
1238 | </DL>
|
---|
1239 | <HR>
|
---|
1240 |
|
---|
1241 | <A NAME="messageLogged(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
|
---|
1242 | messageLogged</H3>
|
---|
1243 | <PRE>
|
---|
1244 | public void <B>messageLogged</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A> event)</PRE>
|
---|
1245 | <DL>
|
---|
1246 | <DD>Empty implementation to satisfy the BuildListener interface.
|
---|
1247 | <P>
|
---|
1248 | <DD><DL>
|
---|
1249 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#messageLogged(org.apache.tools.ant.BuildEvent)">messageLogged</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
|
---|
1250 | </DD>
|
---|
1251 | <DD><DL>
|
---|
1252 | <DT><B>Parameters:</B><DD><CODE>event</CODE> - the messageLogged event<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getMessage()"><CODE>BuildEvent.getMessage()</CODE></A>,
|
---|
1253 | <A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getPriority()"><CODE>BuildEvent.getPriority()</CODE></A></DL>
|
---|
1254 | </DD>
|
---|
1255 | </DL>
|
---|
1256 | <HR>
|
---|
1257 |
|
---|
1258 | <A NAME="addJavaLibraries()"><!-- --></A><H3>
|
---|
1259 | addJavaLibraries</H3>
|
---|
1260 | <PRE>
|
---|
1261 | public void <B>addJavaLibraries</B>()</PRE>
|
---|
1262 | <DL>
|
---|
1263 | <DD>add any libraries that come with different java versions
|
---|
1264 | here
|
---|
1265 | <P>
|
---|
1266 | <DD><DL>
|
---|
1267 | </DL>
|
---|
1268 | </DD>
|
---|
1269 | <DD><DL>
|
---|
1270 | </DL>
|
---|
1271 | </DD>
|
---|
1272 | </DL>
|
---|
1273 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
1274 | <HR>
|
---|
1275 |
|
---|
1276 |
|
---|
1277 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
1278 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
1279 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
1280 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
1281 | <TR>
|
---|
1282 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
1283 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
1284 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
1285 | <TR ALIGN="center" VALIGN="top">
|
---|
1286 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
1287 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
1288 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
1289 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
1290 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
1291 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
1292 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
1293 | </TR>
|
---|
1294 | </TABLE>
|
---|
1295 | </TD>
|
---|
1296 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
1297 | </EM>
|
---|
1298 | </TD>
|
---|
1299 | </TR>
|
---|
1300 |
|
---|
1301 | <TR>
|
---|
1302 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
1303 | PREV CLASS
|
---|
1304 | <A HREF="../../../../org/apache/tools/ant/AntTypeDefinition.html" title="class in org.apache.tools.ant"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
1305 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
1306 | <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
1307 | <A HREF="AntClassLoader.html" target="_top"><B>NO FRAMES</B></A>
|
---|
1308 | <SCRIPT type="text/javascript">
|
---|
1309 | <!--
|
---|
1310 | if(window==top) {
|
---|
1311 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
1312 | }
|
---|
1313 | //-->
|
---|
1314 | </SCRIPT>
|
---|
1315 | <NOSCRIPT>
|
---|
1316 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
1317 | </NOSCRIPT>
|
---|
1318 |
|
---|
1319 | </FONT></TD>
|
---|
1320 | </TR>
|
---|
1321 | <TR>
|
---|
1322 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
1323 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
1324 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
1325 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
1326 | </TR>
|
---|
1327 | </TABLE>
|
---|
1328 | <A NAME="skip-navbar_bottom"></A>
|
---|
1329 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
1330 |
|
---|
1331 | <HR>
|
---|
1332 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
1333 | </BODY>
|
---|
1334 | </HTML>
|
---|