Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1777 | jmachado | 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.5.0_09) on Thu Nov 02 11:46:41 EST 2006 --> |
||
6 | <TITLE> |
||
7 | TryCatchTask (Ant Contrib) |
||
8 | </TITLE> |
||
9 | |||
10 | <META NAME="keywords" CONTENT="net.sf.antcontrib.logic.TryCatchTask 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="TryCatchTask (Ant Contrib)"; |
||
18 | } |
||
19 | </SCRIPT> |
||
20 | <NOSCRIPT> |
||
21 | </NOSCRIPT> |
||
22 | |||
23 | </HEAD> |
||
24 | |||
25 | <BODY BGCOLOR="white" onload="windowTitle();"> |
||
26 | |||
27 | |||
28 | <!-- ========= START OF TOP NAVBAR ======= --> |
||
29 | <A NAME="navbar_top"><!-- --></A> |
||
30 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
||
31 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
32 | <TR> |
||
33 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
34 | <A NAME="navbar_top_firstrow"><!-- --></A> |
||
35 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
36 | <TR ALIGN="center" VALIGN="top"> |
||
37 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
39 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
44 | </TR> |
||
45 | </TABLE> |
||
46 | </TD> |
||
47 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
48 | </EM> |
||
49 | </TD> |
||
50 | </TR> |
||
51 | |||
52 | <TR> |
||
53 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
54 | <A HREF="../../../../net/sf/antcontrib/logic/TimestampSelector.html" title="class in net.sf.antcontrib.logic"><B>PREV CLASS</B></A> |
||
55 | <A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.CatchBlock.html" title="class in net.sf.antcontrib.logic"><B>NEXT CLASS</B></A></FONT></TD> |
||
56 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
57 | <A HREF="../../../../index.html?net/sf/antcontrib/logic/TryCatchTask.html" target="_top"><B>FRAMES</B></A> |
||
58 | <A HREF="TryCatchTask.html" target="_top"><B>NO FRAMES</B></A> |
||
59 | <SCRIPT type="text/javascript"> |
||
60 | <!-- |
||
61 | if(window==top) { |
||
62 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
63 | } |
||
64 | //--> |
||
65 | </SCRIPT> |
||
66 | <NOSCRIPT> |
||
67 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
68 | </NOSCRIPT> |
||
69 | |||
70 | |||
71 | </FONT></TD> |
||
72 | </TR> |
||
73 | <TR> |
||
74 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
75 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
76 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
77 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
78 | </TR> |
||
79 | </TABLE> |
||
80 | <A NAME="skip-navbar_top"></A> |
||
81 | <!-- ========= END OF TOP NAVBAR ========= --> |
||
82 | |||
83 | <HR> |
||
84 | <!-- ======== START OF CLASS DATA ======== --> |
||
85 | <H2> |
||
86 | <FONT SIZE="-1"> |
||
87 | net.sf.antcontrib.logic</FONT> |
||
88 | <BR> |
||
89 | Class TryCatchTask</H2> |
||
90 | <PRE> |
||
91 | java.lang.Object |
||
92 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.apache.tools.ant.ProjectComponent |
||
93 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.apache.tools.ant.Task |
||
94 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.antcontrib.logic.TryCatchTask</B> |
||
95 | </PRE> |
||
96 | <HR> |
||
97 | <DL> |
||
98 | <DT><PRE>public class <B>TryCatchTask</B><DT>extends org.apache.tools.ant.Task</DL> |
||
99 | </PRE> |
||
100 | |||
101 | <P> |
||
102 | A wrapper that lets you run a set of tasks and optionally run a |
||
103 | different set of tasks if the first set fails and yet another set |
||
104 | after the first one has finished. |
||
105 | |||
106 | <p>This mirrors Java's try/catch/finally.</p> |
||
107 | |||
108 | <p>The tasks inside of the required <code><try></code> |
||
109 | element will be run. If one of them should throw a <CODE>BuildException</CODE> several things |
||
110 | can happen:</p> |
||
111 | |||
112 | <ul> |
||
113 | <li>If there is no <code><catch></code> block, the |
||
114 | exception will be passed through to Ant.</li> |
||
115 | |||
116 | <li>If the property attribute has been set, a property of the |
||
117 | given name will be set to the message of the exception.</li> |
||
118 | |||
119 | <li>If the reference attribute has been set, a reference of the |
||
120 | given id will be created and point to the exception object.</li> |
||
121 | |||
122 | <li>If there is a <code><catch></code> block, the tasks |
||
123 | nested into it will be run.</li> |
||
124 | </ul> |
||
125 | |||
126 | <p>If a <code><finally></code> block is present, the task |
||
127 | nested into it will be run, no matter whether the first tasks have |
||
128 | thrown an exception or not.</p> |
||
129 | |||
130 | <p><strong>Attributes:</strong></p> |
||
131 | |||
132 | <table> |
||
133 | <tr> |
||
134 | <td>Name</td> |
||
135 | <td>Description</td> |
||
136 | <td>Required</td> |
||
137 | </tr> |
||
138 | <tr> |
||
139 | <td>property</td> |
||
140 | <td>Name of a property that will receive the message of the |
||
141 | exception that has been caught (if any)</td> |
||
142 | <td>No</td> |
||
143 | </tr> |
||
144 | <tr> |
||
145 | <td>reference</td> |
||
146 | <td>Id of a reference that will point to the exception object |
||
147 | that has been caught (if any)</td> |
||
148 | <td>No</td> |
||
149 | </tr> |
||
150 | </table> |
||
151 | |||
152 | <p>Use the following task to define the <code><trycatch></code> |
||
153 | task before you use it the first time:</p> |
||
154 | |||
155 | <pre><code> |
||
156 | <taskdef name="trycatch" |
||
157 | classname="net.sf.antcontrib.logic.TryCatchTask" /> |
||
158 | </code></pre> |
||
159 | |||
160 | <h3>Crude Example</h3> |
||
161 | |||
162 | <pre><code> |
||
163 | <trycatch property="foo" reference="bar"> |
||
164 | <try> |
||
165 | <fail>Tada!</fail> |
||
166 | </try> |
||
167 | |||
168 | <catch> |
||
169 | <echo>In &lt;catch&gt;.</echo> |
||
170 | </catch> |
||
171 | |||
172 | <finally> |
||
173 | <echo>In &lt;finally&gt;.</echo> |
||
174 | </finally> |
||
175 | </trycatch> |
||
176 | |||
177 | <echo>As property: ${foo}</echo> |
||
178 | <property name="baz" refid="bar" /> |
||
179 | <echo>From reference: ${baz}</echo> |
||
180 | </code></pre> |
||
181 | |||
182 | <p>results in</p> |
||
183 | |||
184 | <pre><code> |
||
185 | [trycatch] Caught exception: Tada! |
||
186 | [echo] In <catch>. |
||
187 | [echo] In <finally>. |
||
188 | [echo] As property: Tada! |
||
189 | [echo] From reference: Tada! |
||
190 | </code></pre> |
||
191 | <P> |
||
192 | |||
193 | <P> |
||
194 | <DL> |
||
195 | <DT><B>Author:</B></DT> |
||
196 | <DD><a href="mailto:stefan.bodewig@freenet.de">Stefan Bodewig</a>, <a href="mailto:RITCHED2@Nationwide.com">Dan Ritchey</a></DD> |
||
197 | </DL> |
||
198 | <HR> |
||
199 | |||
200 | <P> |
||
201 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
||
202 | |||
203 | <A NAME="nested_class_summary"><!-- --></A> |
||
204 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
205 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
206 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
207 | <B>Nested Class Summary</B></FONT></TH> |
||
208 | </TR> |
||
209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
211 | <CODE>static class</CODE></FONT></TD> |
||
212 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.CatchBlock.html" title="class in net.sf.antcontrib.logic">TryCatchTask.CatchBlock</A></B></CODE> |
||
213 | |||
214 | <BR> |
||
215 | </TD> |
||
216 | </TR> |
||
217 | </TABLE> |
||
218 | <!-- =========== FIELD SUMMARY =========== --> |
||
219 | |||
220 | <A NAME="field_summary"><!-- --></A> |
||
221 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
222 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
223 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
224 | <B>Field Summary</B></FONT></TH> |
||
225 | </TR> |
||
226 | </TABLE> |
||
227 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A> |
||
228 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
229 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
230 | <TH ALIGN="left"><B>Fields inherited from class org.apache.tools.ant.Task</B></TH> |
||
231 | </TR> |
||
232 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
233 | <TD><CODE>description, location, target, taskName, taskType, wrapper</CODE></TD> |
||
234 | </TR> |
||
235 | </TABLE> |
||
236 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A> |
||
237 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
238 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
239 | <TH ALIGN="left"><B>Fields inherited from class org.apache.tools.ant.ProjectComponent</B></TH> |
||
240 | </TR> |
||
241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
242 | <TD><CODE>project</CODE></TD> |
||
243 | </TR> |
||
244 | </TABLE> |
||
245 | |
||
246 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
247 | |||
248 | <A NAME="constructor_summary"><!-- --></A> |
||
249 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
250 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
251 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
252 | <B>Constructor Summary</B></FONT></TH> |
||
253 | </TR> |
||
254 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
255 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.html#TryCatchTask()">TryCatchTask</A></B>()</CODE> |
||
256 | |||
257 | <BR> |
||
258 | </TD> |
||
259 | </TR> |
||
260 | </TABLE> |
||
261 | |
||
262 | <!-- ========== METHOD SUMMARY =========== --> |
||
263 | |||
264 | <A NAME="method_summary"><!-- --></A> |
||
265 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
266 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
267 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
268 | <B>Method Summary</B></FONT></TH> |
||
269 | </TR> |
||
270 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
271 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
272 | <CODE> void</CODE></FONT></TD> |
||
273 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.html#addCatch(net.sf.antcontrib.logic.TryCatchTask.CatchBlock)">addCatch</A></B>(<A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.CatchBlock.html" title="class in net.sf.antcontrib.logic">TryCatchTask.CatchBlock</A> cb)</CODE> |
||
274 | |||
275 | <BR> |
||
276 | </TD> |
||
277 | </TR> |
||
278 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
279 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
280 | <CODE> void</CODE></FONT></TD> |
||
281 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.html#addFinally(org.apache.tools.ant.taskdefs.Sequential)">addFinally</A></B>(org.apache.tools.ant.taskdefs.Sequential seq)</CODE> |
||
282 | |||
283 | <BR> |
||
284 | Adds a nested <finally> block - at most one is allowed.</TD> |
||
285 | </TR> |
||
286 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
288 | <CODE> void</CODE></FONT></TD> |
||
289 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.html#addTry(org.apache.tools.ant.taskdefs.Sequential)">addTry</A></B>(org.apache.tools.ant.taskdefs.Sequential seq)</CODE> |
||
290 | |||
291 | <BR> |
||
292 | Adds a nested <try> block - one is required, more is |
||
293 | forbidden.</TD> |
||
294 | </TR> |
||
295 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
296 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
297 | <CODE> void</CODE></FONT></TD> |
||
298 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.html#execute()">execute</A></B>()</CODE> |
||
299 | |||
300 | <BR> |
||
301 | The heart of the task.</TD> |
||
302 | </TR> |
||
303 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
304 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
305 | <CODE> void</CODE></FONT></TD> |
||
306 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.html#setProperty(java.lang.String)">setProperty</A></B>(java.lang.String p)</CODE> |
||
307 | |||
308 | <BR> |
||
309 | Sets the property attribute.</TD> |
||
310 | </TR> |
||
311 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
312 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
313 | <CODE> void</CODE></FONT></TD> |
||
314 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.html#setReference(java.lang.String)">setReference</A></B>(java.lang.String r)</CODE> |
||
315 | |||
316 | <BR> |
||
317 | Sets the reference attribute.</TD> |
||
318 | </TR> |
||
319 | </TABLE> |
||
320 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A> |
||
321 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
322 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
323 | <TH ALIGN="left"><B>Methods inherited from class org.apache.tools.ant.Task</B></TH> |
||
324 | </TR> |
||
325 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
326 | <TD><CODE>getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType</CODE></TD> |
||
327 | </TR> |
||
328 | </TABLE> |
||
329 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A> |
||
330 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
331 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
332 | <TH ALIGN="left"><B>Methods inherited from class org.apache.tools.ant.ProjectComponent</B></TH> |
||
333 | </TR> |
||
334 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
335 | <TD><CODE>getProject, setProject</CODE></TD> |
||
336 | </TR> |
||
337 | </TABLE> |
||
338 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
339 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
340 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
341 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
342 | </TR> |
||
343 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
344 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
||
345 | </TR> |
||
346 | </TABLE> |
||
347 | |
||
348 | <P> |
||
349 | |||
350 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
351 | |||
352 | <A NAME="constructor_detail"><!-- --></A> |
||
353 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
354 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
355 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
356 | <B>Constructor Detail</B></FONT></TH> |
||
357 | </TR> |
||
358 | </TABLE> |
||
359 | |||
360 | <A NAME="TryCatchTask()"><!-- --></A><H3> |
||
361 | TryCatchTask</H3> |
||
362 | <PRE> |
||
363 | public <B>TryCatchTask</B>()</PRE> |
||
364 | <DL> |
||
365 | </DL> |
||
366 | |||
367 | <!-- ============ METHOD DETAIL ========== --> |
||
368 | |||
369 | <A NAME="method_detail"><!-- --></A> |
||
370 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
371 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
372 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
373 | <B>Method Detail</B></FONT></TH> |
||
374 | </TR> |
||
375 | </TABLE> |
||
376 | |||
377 | <A NAME="addTry(org.apache.tools.ant.taskdefs.Sequential)"><!-- --></A><H3> |
||
378 | addTry</H3> |
||
379 | <PRE> |
||
380 | public void <B>addTry</B>(org.apache.tools.ant.taskdefs.Sequential seq) |
||
381 | throws org.apache.tools.ant.BuildException</PRE> |
||
382 | <DL> |
||
383 | <DD>Adds a nested <try> block - one is required, more is |
||
384 | forbidden. |
||
385 | <P> |
||
386 | <DD><DL> |
||
387 | |||
388 | <DT><B>Throws:</B> |
||
389 | <DD><CODE>org.apache.tools.ant.BuildException</CODE></DL> |
||
390 | </DD> |
||
391 | </DL> |
||
392 | <HR> |
||
393 | |||
394 | <A NAME="addCatch(net.sf.antcontrib.logic.TryCatchTask.CatchBlock)"><!-- --></A><H3> |
||
395 | addCatch</H3> |
||
396 | <PRE> |
||
397 | public void <B>addCatch</B>(<A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.CatchBlock.html" title="class in net.sf.antcontrib.logic">TryCatchTask.CatchBlock</A> cb)</PRE> |
||
398 | <DL> |
||
399 | <DD><DL> |
||
400 | </DL> |
||
401 | </DD> |
||
402 | </DL> |
||
403 | <HR> |
||
404 | |||
405 | <A NAME="addFinally(org.apache.tools.ant.taskdefs.Sequential)"><!-- --></A><H3> |
||
406 | addFinally</H3> |
||
407 | <PRE> |
||
408 | public void <B>addFinally</B>(org.apache.tools.ant.taskdefs.Sequential seq) |
||
409 | throws org.apache.tools.ant.BuildException</PRE> |
||
410 | <DL> |
||
411 | <DD>Adds a nested <finally> block - at most one is allowed. |
||
412 | <P> |
||
413 | <DD><DL> |
||
414 | |||
415 | <DT><B>Throws:</B> |
||
416 | <DD><CODE>org.apache.tools.ant.BuildException</CODE></DL> |
||
417 | </DD> |
||
418 | </DL> |
||
419 | <HR> |
||
420 | |||
421 | <A NAME="setProperty(java.lang.String)"><!-- --></A><H3> |
||
422 | setProperty</H3> |
||
423 | <PRE> |
||
424 | public void <B>setProperty</B>(java.lang.String p)</PRE> |
||
425 | <DL> |
||
426 | <DD>Sets the property attribute. |
||
427 | <P> |
||
428 | <DD><DL> |
||
429 | </DL> |
||
430 | </DD> |
||
431 | </DL> |
||
432 | <HR> |
||
433 | |||
434 | <A NAME="setReference(java.lang.String)"><!-- --></A><H3> |
||
435 | setReference</H3> |
||
436 | <PRE> |
||
437 | public void <B>setReference</B>(java.lang.String r)</PRE> |
||
438 | <DL> |
||
439 | <DD>Sets the reference attribute. |
||
440 | <P> |
||
441 | <DD><DL> |
||
442 | </DL> |
||
443 | </DD> |
||
444 | </DL> |
||
445 | <HR> |
||
446 | |||
447 | <A NAME="execute()"><!-- --></A><H3> |
||
448 | execute</H3> |
||
449 | <PRE> |
||
450 | public void <B>execute</B>() |
||
451 | throws org.apache.tools.ant.BuildException</PRE> |
||
452 | <DL> |
||
453 | <DD>The heart of the task. |
||
454 | <P> |
||
455 | <DD><DL> |
||
456 | <DT><B>Overrides:</B><DD><CODE>execute</CODE> in class <CODE>org.apache.tools.ant.Task</CODE></DL> |
||
457 | </DD> |
||
458 | <DD><DL> |
||
459 | |||
460 | <DT><B>Throws:</B> |
||
461 | <DD><CODE>org.apache.tools.ant.BuildException</CODE></DL> |
||
462 | </DD> |
||
463 | </DL> |
||
464 | <!-- ========= END OF CLASS DATA ========= --> |
||
465 | <HR> |
||
466 | |||
467 | |||
468 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
469 | <A NAME="navbar_bottom"><!-- --></A> |
||
470 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
471 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
472 | <TR> |
||
473 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
474 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
475 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
476 | <TR ALIGN="center" VALIGN="top"> |
||
477 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
478 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
479 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
480 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
481 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
482 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
483 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
484 | </TR> |
||
485 | </TABLE> |
||
486 | </TD> |
||
487 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
488 | </EM> |
||
489 | </TD> |
||
490 | </TR> |
||
491 | |||
492 | <TR> |
||
493 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
494 | <A HREF="../../../../net/sf/antcontrib/logic/TimestampSelector.html" title="class in net.sf.antcontrib.logic"><B>PREV CLASS</B></A> |
||
495 | <A HREF="../../../../net/sf/antcontrib/logic/TryCatchTask.CatchBlock.html" title="class in net.sf.antcontrib.logic"><B>NEXT CLASS</B></A></FONT></TD> |
||
496 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
497 | <A HREF="../../../../index.html?net/sf/antcontrib/logic/TryCatchTask.html" target="_top"><B>FRAMES</B></A> |
||
498 | <A HREF="TryCatchTask.html" target="_top"><B>NO FRAMES</B></A> |
||
499 | <SCRIPT type="text/javascript"> |
||
500 | <!-- |
||
501 | if(window==top) { |
||
502 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
503 | } |
||
504 | //--> |
||
505 | </SCRIPT> |
||
506 | <NOSCRIPT> |
||
507 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
508 | </NOSCRIPT> |
||
509 | |||
510 | |||
511 | </FONT></TD> |
||
512 | </TR> |
||
513 | <TR> |
||
514 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
515 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
516 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
517 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
518 | </TR> |
||
519 | </TABLE> |
||
520 | <A NAME="skip-navbar_bottom"></A> |
||
521 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
522 | |||
523 | <HR> |
||
524 | |||
525 | </BODY> |
||
526 | </HTML> |