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:15 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | Main (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.Main 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="Main (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 | <A HREF="../../../../org/apache/tools/ant/MagicNames.html" title="class in org.apache.tools.ant"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../org/apache/tools/ant/NoBannerLogger.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="Main.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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 Main</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.Main</B>
|
---|
90 | </PRE>
|
---|
91 | <DL>
|
---|
92 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/tools/ant/launch/AntMain.html" title="interface in org.apache.tools.ant.launch">AntMain</A></DD>
|
---|
93 | </DL>
|
---|
94 | <HR>
|
---|
95 | <DL>
|
---|
96 | <DT>public class <B>Main</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../org/apache/tools/ant/launch/AntMain.html" title="interface in org.apache.tools.ant.launch">AntMain</A></DL>
|
---|
97 |
|
---|
98 | <P>
|
---|
99 | Command line entry point into Ant. This class is entered via the
|
---|
100 | canonical `public static void main` entry point and reads the
|
---|
101 | command line arguments. It then assembles and executes an Ant
|
---|
102 | project.
|
---|
103 | <p>
|
---|
104 | If you integrating Ant into some other tool, this is not the class
|
---|
105 | to use as an entry point. Please see the source code of this
|
---|
106 | class to see how it manipulates the Ant project classes.
|
---|
107 | <P>
|
---|
108 |
|
---|
109 | <P>
|
---|
110 | <HR>
|
---|
111 |
|
---|
112 | <P>
|
---|
113 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
114 |
|
---|
115 |
|
---|
116 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
117 |
|
---|
118 | <A NAME="field_summary"><!-- --></A>
|
---|
119 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
120 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
121 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
122 | <B>Field Summary</B></FONT></TD>
|
---|
123 | </TR>
|
---|
124 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
125 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
126 | <CODE>static java.lang.String</CODE></FONT></TD>
|
---|
127 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#DEFAULT_BUILD_FILENAME">DEFAULT_BUILD_FILENAME</A></B></CODE>
|
---|
128 |
|
---|
129 | <BR>
|
---|
130 | The default build file name.</TD>
|
---|
131 | </TR>
|
---|
132 | </TABLE>
|
---|
133 |
|
---|
134 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
135 |
|
---|
136 | <A NAME="constructor_summary"><!-- --></A>
|
---|
137 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
138 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
139 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
140 | <B>Constructor Summary</B></FONT></TD>
|
---|
141 | </TR>
|
---|
142 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
144 | <CODE> </CODE></FONT></TD>
|
---|
145 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#Main()">Main</A></B>()</CODE>
|
---|
146 |
|
---|
147 | <BR>
|
---|
148 | Constructor used when creating Main for later arg processing
|
---|
149 | and startup</TD>
|
---|
150 | </TR>
|
---|
151 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
152 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
153 | <CODE>protected </CODE></FONT></TD>
|
---|
154 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#Main(java.lang.String[])">Main</A></B>(java.lang.String[] args)</CODE>
|
---|
155 |
|
---|
156 | <BR>
|
---|
157 | <B>Deprecated.</B> <I></I> </TD>
|
---|
158 | </TR>
|
---|
159 | </TABLE>
|
---|
160 |
|
---|
161 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
162 |
|
---|
163 | <A NAME="method_summary"><!-- --></A>
|
---|
164 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
165 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
166 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
167 | <B>Method Summary</B></FONT></TD>
|
---|
168 | </TR>
|
---|
169 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
170 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
171 | <CODE>protected void</CODE></FONT></TD>
|
---|
172 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#addBuildListeners(org.apache.tools.ant.Project)">addBuildListeners</A></B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</CODE>
|
---|
173 |
|
---|
174 | <BR>
|
---|
175 | Adds the listeners specified in the command line arguments,
|
---|
176 | along with the default listener, to the specified project.</TD>
|
---|
177 | </TR>
|
---|
178 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
179 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
180 | <CODE>static java.lang.String</CODE></FONT></TD>
|
---|
181 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#getAntVersion()">getAntVersion</A></B>()</CODE>
|
---|
182 |
|
---|
183 | <BR>
|
---|
184 | Returns the Ant version information, if available.</TD>
|
---|
185 | </TR>
|
---|
186 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
187 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
188 | <CODE>static void</CODE></FONT></TD>
|
---|
189 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
|
---|
190 |
|
---|
191 | <BR>
|
---|
192 | Command line entry point.</TD>
|
---|
193 | </TR>
|
---|
194 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
195 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
196 | <CODE>static void</CODE></FONT></TD>
|
---|
197 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#start(java.lang.String[], java.util.Properties, java.lang.ClassLoader)">start</A></B>(java.lang.String[] args,
|
---|
198 | java.util.Properties additionalUserProperties,
|
---|
199 | java.lang.ClassLoader coreLoader)</CODE>
|
---|
200 |
|
---|
201 | <BR>
|
---|
202 | Creates a new instance of this class using the
|
---|
203 | arguments specified, gives it any extra user properties which have been
|
---|
204 | specified, and then runs the build using the classloader provided.</TD>
|
---|
205 | </TR>
|
---|
206 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
207 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
208 | <CODE> void</CODE></FONT></TD>
|
---|
209 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/Main.html#startAnt(java.lang.String[], java.util.Properties, java.lang.ClassLoader)">startAnt</A></B>(java.lang.String[] args,
|
---|
210 | java.util.Properties additionalUserProperties,
|
---|
211 | java.lang.ClassLoader coreLoader)</CODE>
|
---|
212 |
|
---|
213 | <BR>
|
---|
214 | Start Ant</TD>
|
---|
215 | </TR>
|
---|
216 | </TABLE>
|
---|
217 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
218 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
219 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
220 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
221 | </TR>
|
---|
222 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
223 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
224 | </TR>
|
---|
225 | </TABLE>
|
---|
226 |
|
---|
227 | <P>
|
---|
228 |
|
---|
229 | <!-- ============ FIELD DETAIL =========== -->
|
---|
230 |
|
---|
231 | <A NAME="field_detail"><!-- --></A>
|
---|
232 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
233 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
234 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
235 | <B>Field Detail</B></FONT></TD>
|
---|
236 | </TR>
|
---|
237 | </TABLE>
|
---|
238 |
|
---|
239 | <A NAME="DEFAULT_BUILD_FILENAME"><!-- --></A><H3>
|
---|
240 | DEFAULT_BUILD_FILENAME</H3>
|
---|
241 | <PRE>
|
---|
242 | public static final java.lang.String <B>DEFAULT_BUILD_FILENAME</B></PRE>
|
---|
243 | <DL>
|
---|
244 | <DD>The default build file name.
|
---|
245 | <P>
|
---|
246 | <DL>
|
---|
247 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.tools.ant.Main.DEFAULT_BUILD_FILENAME">Constant Field Values</A></DL>
|
---|
248 | </DL>
|
---|
249 |
|
---|
250 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
251 |
|
---|
252 | <A NAME="constructor_detail"><!-- --></A>
|
---|
253 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
254 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
255 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
256 | <B>Constructor Detail</B></FONT></TD>
|
---|
257 | </TR>
|
---|
258 | </TABLE>
|
---|
259 |
|
---|
260 | <A NAME="Main()"><!-- --></A><H3>
|
---|
261 | Main</H3>
|
---|
262 | <PRE>
|
---|
263 | public <B>Main</B>()</PRE>
|
---|
264 | <DL>
|
---|
265 | <DD>Constructor used when creating Main for later arg processing
|
---|
266 | and startup
|
---|
267 | <P>
|
---|
268 | </DL>
|
---|
269 | <HR>
|
---|
270 |
|
---|
271 | <A NAME="Main(java.lang.String[])"><!-- --></A><H3>
|
---|
272 | Main</H3>
|
---|
273 | <PRE>
|
---|
274 | protected <B>Main</B>(java.lang.String[] args)
|
---|
275 | throws <A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
276 | <DL>
|
---|
277 | <DD><B>Deprecated.</B> <I></I>
|
---|
278 | <P>
|
---|
279 | <DD>Sole constructor, which parses and deals with command line
|
---|
280 | arguments.
|
---|
281 | <P>
|
---|
282 | <DT><B>Parameters:</B><DD><CODE>args</CODE> - Command line arguments. Must not be <code>null</code>.
|
---|
283 | <DT><B>Throws:</B>
|
---|
284 | <DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if the specified build file doesn't exist
|
---|
285 | or is a directory.</DL>
|
---|
286 |
|
---|
287 | <!-- ============ METHOD DETAIL ========== -->
|
---|
288 |
|
---|
289 | <A NAME="method_detail"><!-- --></A>
|
---|
290 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
291 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
292 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
293 | <B>Method Detail</B></FONT></TD>
|
---|
294 | </TR>
|
---|
295 | </TABLE>
|
---|
296 |
|
---|
297 | <A NAME="start(java.lang.String[], java.util.Properties, java.lang.ClassLoader)"><!-- --></A><H3>
|
---|
298 | start</H3>
|
---|
299 | <PRE>
|
---|
300 | public static void <B>start</B>(java.lang.String[] args,
|
---|
301 | java.util.Properties additionalUserProperties,
|
---|
302 | java.lang.ClassLoader coreLoader)</PRE>
|
---|
303 | <DL>
|
---|
304 | <DD>Creates a new instance of this class using the
|
---|
305 | arguments specified, gives it any extra user properties which have been
|
---|
306 | specified, and then runs the build using the classloader provided.
|
---|
307 | <P>
|
---|
308 | <DD><DL>
|
---|
309 | </DL>
|
---|
310 | </DD>
|
---|
311 | <DD><DL>
|
---|
312 | <DT><B>Parameters:</B><DD><CODE>args</CODE> - Command line arguments. Must not be <code>null</code>.<DD><CODE>additionalUserProperties</CODE> - Any extra properties to use in this
|
---|
313 | build. May be <code>null</code>, which is the equivalent to
|
---|
314 | passing in an empty set of properties.<DD><CODE>coreLoader</CODE> - Classloader used for core classes. May be
|
---|
315 | <code>null</code> in which case the system classloader is used.</DL>
|
---|
316 | </DD>
|
---|
317 | </DL>
|
---|
318 | <HR>
|
---|
319 |
|
---|
320 | <A NAME="startAnt(java.lang.String[], java.util.Properties, java.lang.ClassLoader)"><!-- --></A><H3>
|
---|
321 | startAnt</H3>
|
---|
322 | <PRE>
|
---|
323 | public void <B>startAnt</B>(java.lang.String[] args,
|
---|
324 | java.util.Properties additionalUserProperties,
|
---|
325 | java.lang.ClassLoader coreLoader)</PRE>
|
---|
326 | <DL>
|
---|
327 | <DD>Start Ant
|
---|
328 | <P>
|
---|
329 | <DD><DL>
|
---|
330 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/launch/AntMain.html#startAnt(java.lang.String[], java.util.Properties, java.lang.ClassLoader)">startAnt</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/launch/AntMain.html" title="interface in org.apache.tools.ant.launch">AntMain</A></CODE></DL>
|
---|
331 | </DD>
|
---|
332 | <DD><DL>
|
---|
333 | <DT><B>Parameters:</B><DD><CODE>args</CODE> - command line args<DD><CODE>additionalUserProperties</CODE> - properties to set beyond those that
|
---|
334 | may be specified on the args list<DD><CODE>coreLoader</CODE> - - not used<DT><B>Since:</B></DT>
|
---|
335 | <DD>Ant 1.6</DD>
|
---|
336 | </DL>
|
---|
337 | </DD>
|
---|
338 | </DL>
|
---|
339 | <HR>
|
---|
340 |
|
---|
341 | <A NAME="main(java.lang.String[])"><!-- --></A><H3>
|
---|
342 | main</H3>
|
---|
343 | <PRE>
|
---|
344 | public static void <B>main</B>(java.lang.String[] args)</PRE>
|
---|
345 | <DL>
|
---|
346 | <DD>Command line entry point. This method kicks off the building
|
---|
347 | of a project object and executes a build using either a given
|
---|
348 | target or the default target.
|
---|
349 | <P>
|
---|
350 | <DD><DL>
|
---|
351 | </DL>
|
---|
352 | </DD>
|
---|
353 | <DD><DL>
|
---|
354 | <DT><B>Parameters:</B><DD><CODE>args</CODE> - Command line arguments. Must not be <code>null</code>.</DL>
|
---|
355 | </DD>
|
---|
356 | </DL>
|
---|
357 | <HR>
|
---|
358 |
|
---|
359 | <A NAME="addBuildListeners(org.apache.tools.ant.Project)"><!-- --></A><H3>
|
---|
360 | addBuildListeners</H3>
|
---|
361 | <PRE>
|
---|
362 | protected void <B>addBuildListeners</B>(<A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</PRE>
|
---|
363 | <DL>
|
---|
364 | <DD>Adds the listeners specified in the command line arguments,
|
---|
365 | along with the default listener, to the specified project.
|
---|
366 | <P>
|
---|
367 | <DD><DL>
|
---|
368 | </DL>
|
---|
369 | </DD>
|
---|
370 | <DD><DL>
|
---|
371 | <DT><B>Parameters:</B><DD><CODE>project</CODE> - The project to add listeners to.
|
---|
372 | Must not be <code>null</code>.</DL>
|
---|
373 | </DD>
|
---|
374 | </DL>
|
---|
375 | <HR>
|
---|
376 |
|
---|
377 | <A NAME="getAntVersion()"><!-- --></A><H3>
|
---|
378 | getAntVersion</H3>
|
---|
379 | <PRE>
|
---|
380 | public static java.lang.String <B>getAntVersion</B>()
|
---|
381 | throws <A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
382 | <DL>
|
---|
383 | <DD>Returns the Ant version information, if available. Once the information
|
---|
384 | has been loaded once, it's cached and returned from the cache on future
|
---|
385 | calls.
|
---|
386 | <P>
|
---|
387 | <DD><DL>
|
---|
388 | </DL>
|
---|
389 | </DD>
|
---|
390 | <DD><DL>
|
---|
391 |
|
---|
392 | <DT><B>Returns:</B><DD>the Ant version information as a String
|
---|
393 | (always non-<code>null</code>)
|
---|
394 | <DT><B>Throws:</B>
|
---|
395 | <DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if the version information is unavailable</DL>
|
---|
396 | </DD>
|
---|
397 | </DL>
|
---|
398 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
399 | <HR>
|
---|
400 |
|
---|
401 |
|
---|
402 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
403 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
404 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
405 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
406 | <TR>
|
---|
407 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
408 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
409 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
410 | <TR ALIGN="center" VALIGN="top">
|
---|
411 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
412 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
413 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
414 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
415 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
416 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
417 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
418 | </TR>
|
---|
419 | </TABLE>
|
---|
420 | </TD>
|
---|
421 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
422 | </EM>
|
---|
423 | </TD>
|
---|
424 | </TR>
|
---|
425 |
|
---|
426 | <TR>
|
---|
427 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
428 | <A HREF="../../../../org/apache/tools/ant/MagicNames.html" title="class in org.apache.tools.ant"><B>PREV CLASS</B></A>
|
---|
429 | <A HREF="../../../../org/apache/tools/ant/NoBannerLogger.html" title="class in org.apache.tools.ant"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
430 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
431 | <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
432 | <A HREF="Main.html" target="_top"><B>NO FRAMES</B></A>
|
---|
433 | <SCRIPT type="text/javascript">
|
---|
434 | <!--
|
---|
435 | if(window==top) {
|
---|
436 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
437 | }
|
---|
438 | //-->
|
---|
439 | </SCRIPT>
|
---|
440 | <NOSCRIPT>
|
---|
441 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
442 | </NOSCRIPT>
|
---|
443 |
|
---|
444 | </FONT></TD>
|
---|
445 | </TR>
|
---|
446 | <TR>
|
---|
447 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
448 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
449 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
450 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
451 | </TR>
|
---|
452 | </TABLE>
|
---|
453 | <A NAME="skip-navbar_bottom"></A>
|
---|
454 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
455 |
|
---|
456 | <HR>
|
---|
457 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
458 | </BODY>
|
---|
459 | </HTML>
|
---|