source: release-kits/lirk3/resources/gs3-release-maker/ant/docs/manual/api/org/apache/tools/ant/taskdefs/Java.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 59.3 KB
Line 
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:19 NZST 2007 -->
6<TITLE>
7Java (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.Java class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="Java (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>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../../../org/apache/tools/ant/taskdefs/Jar.FilesetManifestConfig.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../../org/apache/tools/ant/taskdefs/Javac.html" title="class in org.apache.tools.ant.taskdefs"><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> &nbsp;
56&nbsp;<A HREF="Java.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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">
84org.apache.tools.ant.taskdefs</FONT>
85<BR>
86Class Java</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
90 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
91 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.Java</B>
92</PRE>
93<DL>
94<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/optional/StyleBook.html" title="class in org.apache.tools.ant.taskdefs.optional">StyleBook</A>, <A HREF="../../../../../org/apache/tools/ant/taskdefs/optional/Test.html" title="class in org.apache.tools.ant.taskdefs.optional">Test</A></DD>
95</DL>
96<HR>
97<DL>
98<DT>public class <B>Java</B><DT>extends <A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></DL>
99
100<P>
101Launcher for Java applications. Allows use of
102 the same JVM for the called application thus resulting in much
103 faster operation.
104<P>
105
106<P>
107<DL>
108<DT><B>Since:</B></DT>
109 <DD>Ant 1.1</DD>
110</DL>
111<HR>
112
113<P>
114<!-- ======== NESTED CLASS SUMMARY ======== -->
115
116
117<!-- =========== FIELD SUMMARY =========== -->
118
119<A NAME="field_summary"><!-- --></A>
120<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122<TD COLSPAN=2><FONT SIZE="+2">
123<B>Field Summary</B></FONT></TD>
124</TR>
125<TR BGCOLOR="white" CLASS="TableRowColor">
126<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127<CODE>protected &nbsp;<A HREF="../../../../../org/apache/tools/ant/taskdefs/Redirector.html" title="class in org.apache.tools.ant.taskdefs">Redirector</A></CODE></FONT></TD>
128<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#redirector">redirector</A></B></CODE>
129
130<BR>
131&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135<CODE>protected &nbsp;<A HREF="../../../../../org/apache/tools/ant/types/RedirectorElement.html" title="class in org.apache.tools.ant.types">RedirectorElement</A></CODE></FONT></TD>
136<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#redirectorElement">redirectorElement</A></B></CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
140</TR>
141</TABLE>
142&nbsp;<A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
143<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
144<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
145<TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
146</TR>
147<TR BGCOLOR="white" CLASS="TableRowColor">
148<TD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#location">location</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#target">target</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#taskName">taskName</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#taskType">taskType</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</A></CODE></TD>
149</TR>
150</TABLE>
151&nbsp;<A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
152<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
153<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
154<TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD><CODE><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
158</TR>
159</TABLE>
160&nbsp;
161<!-- ======== CONSTRUCTOR SUMMARY ======== -->
162
163<A NAME="constructor_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>Constructor Summary</B></FONT></TD>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#Java()">Java</A></B>()</CODE>
171
172<BR>
173&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
174</TR>
175</TABLE>
176&nbsp;
177<!-- ========== METHOD SUMMARY =========== -->
178
179<A NAME="method_summary"><!-- --></A>
180<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
181<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
182<TD COLSPAN=2><FONT SIZE="+2">
183<B>Method Summary</B></FONT></TD>
184</TR>
185<TR BGCOLOR="white" CLASS="TableRowColor">
186<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187<CODE>&nbsp;void</CODE></FONT></TD>
188<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#addAssertions(org.apache.tools.ant.types.Assertions)">addAssertions</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Assertions.html" title="class in org.apache.tools.ant.types">Assertions</A>&nbsp;asserts)</CODE>
189
190<BR>
191&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;assertions to enable in this program (if fork=true)</TD>
192</TR>
193<TR BGCOLOR="white" CLASS="TableRowColor">
194<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195<CODE>&nbsp;void</CODE></FONT></TD>
196<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#addConfiguredRedirector(org.apache.tools.ant.types.RedirectorElement)">addConfiguredRedirector</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/RedirectorElement.html" title="class in org.apache.tools.ant.types">RedirectorElement</A>&nbsp;redirectorElement)</CODE>
197
198<BR>
199&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a <CODE>RedirectorElement</CODE> to this task.</TD>
200</TR>
201<TR BGCOLOR="white" CLASS="TableRowColor">
202<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203<CODE>&nbsp;void</CODE></FONT></TD>
204<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#addEnv(org.apache.tools.ant.types.Environment.Variable)">addEnv</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Environment.Variable.html" title="class in org.apache.tools.ant.types">Environment.Variable</A>&nbsp;var)</CODE>
205
206<BR>
207&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an environment variable.</TD>
208</TR>
209<TR BGCOLOR="white" CLASS="TableRowColor">
210<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
211<CODE>&nbsp;void</CODE></FONT></TD>
212<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#addSysproperty(org.apache.tools.ant.types.Environment.Variable)">addSysproperty</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Environment.Variable.html" title="class in org.apache.tools.ant.types">Environment.Variable</A>&nbsp;sysp)</CODE>
213
214<BR>
215&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a system property.</TD>
216</TR>
217<TR BGCOLOR="white" CLASS="TableRowColor">
218<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219<CODE>&nbsp;void</CODE></FONT></TD>
220<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#addSyspropertyset(org.apache.tools.ant.types.PropertySet)">addSyspropertyset</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/PropertySet.html" title="class in org.apache.tools.ant.types">PropertySet</A>&nbsp;sysp)</CODE>
221
222<BR>
223&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a set of properties as system properties.</TD>
224</TR>
225<TR BGCOLOR="white" CLASS="TableRowColor">
226<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227<CODE>&nbsp;void</CODE></FONT></TD>
228<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#clearArgs()">clearArgs</A></B>()</CODE>
229
230<BR>
231&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clear out the arguments to this java task.</TD>
232</TR>
233<TR BGCOLOR="white" CLASS="TableRowColor">
234<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235<CODE>&nbsp;<A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A></CODE></FONT></TD>
236<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#createArg()">createArg</A></B>()</CODE>
237
238<BR>
239&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a command-line argument.</TD>
240</TR>
241<TR BGCOLOR="white" CLASS="TableRowColor">
242<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
243<CODE>&nbsp;<A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
244<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#createBootclasspath()">createBootclasspath</A></B>()</CODE>
245
246<BR>
247&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a path to the bootclasspath.</TD>
248</TR>
249<TR BGCOLOR="white" CLASS="TableRowColor">
250<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251<CODE>&nbsp;<A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
252<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#createClasspath()">createClasspath</A></B>()</CODE>
253
254<BR>
255&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a path to the classpath.</TD>
256</TR>
257<TR BGCOLOR="white" CLASS="TableRowColor">
258<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259<CODE>&nbsp;<A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A></CODE></FONT></TD>
260<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#createJvmarg()">createJvmarg</A></B>()</CODE>
261
262<BR>
263&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a JVM argument.</TD>
264</TR>
265<TR BGCOLOR="white" CLASS="TableRowColor">
266<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267<CODE>&nbsp;<A HREF="../../../../../org/apache/tools/ant/types/Permissions.html" title="class in org.apache.tools.ant.types">Permissions</A></CODE></FONT></TD>
268<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#createPermissions()">createPermissions</A></B>()</CODE>
269
270<BR>
271&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the permissions for the application run inside the same JVM.</TD>
272</TR>
273<TR BGCOLOR="white" CLASS="TableRowColor">
274<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275<CODE>protected &nbsp;<A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html" title="class in org.apache.tools.ant.taskdefs">ExecuteWatchdog</A></CODE></FONT></TD>
276<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#createWatchdog()">createWatchdog</A></B>()</CODE>
277
278<BR>
279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create the Watchdog to kill a runaway process.</TD>
280</TR>
281<TR BGCOLOR="white" CLASS="TableRowColor">
282<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283<CODE>&nbsp;void</CODE></FONT></TD>
284<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#execute()">execute</A></B>()</CODE>
285
286<BR>
287&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do the execution.</TD>
288</TR>
289<TR BGCOLOR="white" CLASS="TableRowColor">
290<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
291<CODE>&nbsp;int</CODE></FONT></TD>
292<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#executeJava()">executeJava</A></B>()</CODE>
293
294<BR>
295&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do the execution and return a return code.</TD>
296</TR>
297<TR BGCOLOR="white" CLASS="TableRowColor">
298<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
299<CODE>&nbsp;<A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html" title="class in org.apache.tools.ant.types">CommandlineJava</A></CODE></FONT></TD>
300<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#getCommandLine()">getCommandLine</A></B>()</CODE>
301
302<BR>
303&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;accessor to the command line</TD>
304</TR>
305<TR BGCOLOR="white" CLASS="TableRowColor">
306<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
307<CODE>&nbsp;<A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types">CommandlineJava.SysProperties</A></CODE></FONT></TD>
308<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#getSysProperties()">getSysProperties</A></B>()</CODE>
309
310<BR>
311&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get the system properties of the command line</TD>
312</TR>
313<TR BGCOLOR="white" CLASS="TableRowColor">
314<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
315<CODE>protected &nbsp;void</CODE></FONT></TD>
316<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A></B>(java.lang.String&nbsp;output)</CODE>
317
318<BR>
319&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle output sent to System.err and flush the stream.</TD>
320</TR>
321<TR BGCOLOR="white" CLASS="TableRowColor">
322<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
323<CODE>protected &nbsp;void</CODE></FONT></TD>
324<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A></B>(java.lang.String&nbsp;output)</CODE>
325
326<BR>
327&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle output sent to System.err</TD>
328</TR>
329<TR BGCOLOR="white" CLASS="TableRowColor">
330<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
331<CODE>protected &nbsp;void</CODE></FONT></TD>
332<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#handleFlush(java.lang.String)">handleFlush</A></B>(java.lang.String&nbsp;output)</CODE>
333
334<BR>
335&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pass output sent to System.out to specified output file.</TD>
336</TR>
337<TR BGCOLOR="white" CLASS="TableRowColor">
338<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
339<CODE>&nbsp;int</CODE></FONT></TD>
340<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#handleInput(byte[], int, int)">handleInput</A></B>(byte[]&nbsp;buffer,
341 int&nbsp;offset,
342 int&nbsp;length)</CODE>
343
344<BR>
345&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle an input request by this task</TD>
346</TR>
347<TR BGCOLOR="white" CLASS="TableRowColor">
348<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
349<CODE>protected &nbsp;void</CODE></FONT></TD>
350<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#handleOutput(java.lang.String)">handleOutput</A></B>(java.lang.String&nbsp;output)</CODE>
351
352<BR>
353&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pass output sent to System.out to specified output file.</TD>
354</TR>
355<TR BGCOLOR="white" CLASS="TableRowColor">
356<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
357<CODE>protected &nbsp;void</CODE></FONT></TD>
358<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#maybeSetResultPropertyValue(int)">maybeSetResultPropertyValue</A></B>(int&nbsp;result)</CODE>
359
360<BR>
361&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;helper method to set result property to the
362 passed in value if appropriate</TD>
363</TR>
364<TR BGCOLOR="white" CLASS="TableRowColor">
365<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
366<CODE>protected &nbsp;void</CODE></FONT></TD>
367<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#run(java.lang.String, java.util.Vector)">run</A></B>(java.lang.String&nbsp;classname,
368 java.util.Vector&nbsp;args)</CODE>
369
370<BR>
371&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executes the given classname with the given arguments as it
372 was a command line application.</TD>
373</TR>
374<TR BGCOLOR="white" CLASS="TableRowColor">
375<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
376<CODE>&nbsp;void</CODE></FONT></TD>
377<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setAppend(boolean)">setAppend</A></B>(boolean&nbsp;append)</CODE>
378
379<BR>
380&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, append output to existing file.</TD>
381</TR>
382<TR BGCOLOR="white" CLASS="TableRowColor">
383<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
384<CODE>&nbsp;void</CODE></FONT></TD>
385<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setArgs(java.lang.String)">setArgs</A></B>(java.lang.String&nbsp;s)</CODE>
386
387<BR>
388&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deprecated: use nested arg instead.</TD>
389</TR>
390<TR BGCOLOR="white" CLASS="TableRowColor">
391<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
392<CODE>&nbsp;void</CODE></FONT></TD>
393<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setClassname(java.lang.String)">setClassname</A></B>(java.lang.String&nbsp;s)</CODE>
394
395<BR>
396&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Java class to execute.</TD>
397</TR>
398<TR BGCOLOR="white" CLASS="TableRowColor">
399<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
400<CODE>&nbsp;void</CODE></FONT></TD>
401<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.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>&nbsp;s)</CODE>
402
403<BR>
404&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the classpath to be used when running the Java class</TD>
405</TR>
406<TR BGCOLOR="white" CLASS="TableRowColor">
407<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
408<CODE>&nbsp;void</CODE></FONT></TD>
409<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setClasspathRef(org.apache.tools.ant.types.Reference)">setClasspathRef</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A>&nbsp;r)</CODE>
410
411<BR>
412&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Classpath to use, by reference.</TD>
413</TR>
414<TR BGCOLOR="white" CLASS="TableRowColor">
415<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
416<CODE>&nbsp;void</CODE></FONT></TD>
417<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setDir(java.io.File)">setDir</A></B>(java.io.File&nbsp;d)</CODE>
418
419<BR>
420&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The working directory of the process</TD>
421</TR>
422<TR BGCOLOR="white" CLASS="TableRowColor">
423<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
424<CODE>&nbsp;void</CODE></FONT></TD>
425<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setError(java.io.File)">setError</A></B>(java.io.File&nbsp;error)</CODE>
426
427<BR>
428&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File the error stream of the process is redirected to.</TD>
429</TR>
430<TR BGCOLOR="white" CLASS="TableRowColor">
431<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
432<CODE>&nbsp;void</CODE></FONT></TD>
433<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setErrorProperty(java.lang.String)">setErrorProperty</A></B>(java.lang.String&nbsp;errorProperty)</CODE>
434
435<BR>
436&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Property name whose value should be set to the error of
437 the process.</TD>
438</TR>
439<TR BGCOLOR="white" CLASS="TableRowColor">
440<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
441<CODE>&nbsp;void</CODE></FONT></TD>
442<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setFailonerror(boolean)">setFailonerror</A></B>(boolean&nbsp;fail)</CODE>
443
444<BR>
445&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, then fail if the command exits with a
446 returncode other than 0</TD>
447</TR>
448<TR BGCOLOR="white" CLASS="TableRowColor">
449<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
450<CODE>&nbsp;void</CODE></FONT></TD>
451<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setFork(boolean)">setFork</A></B>(boolean&nbsp;s)</CODE>
452
453<BR>
454&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, execute in a new VM.</TD>
455</TR>
456<TR BGCOLOR="white" CLASS="TableRowColor">
457<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
458<CODE>&nbsp;void</CODE></FONT></TD>
459<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setInput(java.io.File)">setInput</A></B>(java.io.File&nbsp;input)</CODE>
460
461<BR>
462&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the input to use for the task</TD>
463</TR>
464<TR BGCOLOR="white" CLASS="TableRowColor">
465<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
466<CODE>&nbsp;void</CODE></FONT></TD>
467<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setInputString(java.lang.String)">setInputString</A></B>(java.lang.String&nbsp;inputString)</CODE>
468
469<BR>
470&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the string to use as input</TD>
471</TR>
472<TR BGCOLOR="white" CLASS="TableRowColor">
473<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
474<CODE>&nbsp;void</CODE></FONT></TD>
475<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setJar(java.io.File)">setJar</A></B>(java.io.File&nbsp;jarfile)</CODE>
476
477<BR>
478&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The location of the JAR file to execute.</TD>
479</TR>
480<TR BGCOLOR="white" CLASS="TableRowColor">
481<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
482<CODE>&nbsp;void</CODE></FONT></TD>
483<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setJvm(java.lang.String)">setJvm</A></B>(java.lang.String&nbsp;s)</CODE>
484
485<BR>
486&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the command used to start the VM (only if forking).</TD>
487</TR>
488<TR BGCOLOR="white" CLASS="TableRowColor">
489<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
490<CODE>&nbsp;void</CODE></FONT></TD>
491<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setJvmargs(java.lang.String)">setJvmargs</A></B>(java.lang.String&nbsp;s)</CODE>
492
493<BR>
494&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the command line arguments for the JVM.</TD>
495</TR>
496<TR BGCOLOR="white" CLASS="TableRowColor">
497<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
498<CODE>&nbsp;void</CODE></FONT></TD>
499<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setJVMVersion(java.lang.String)">setJVMVersion</A></B>(java.lang.String&nbsp;value)</CODE>
500
501<BR>
502&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the JVM version.</TD>
503</TR>
504<TR BGCOLOR="white" CLASS="TableRowColor">
505<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506<CODE>&nbsp;void</CODE></FONT></TD>
507<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setLogError(boolean)">setLogError</A></B>(boolean&nbsp;logError)</CODE>
508
509<BR>
510&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls whether error output of exec is logged.</TD>
511</TR>
512<TR BGCOLOR="white" CLASS="TableRowColor">
513<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
514<CODE>&nbsp;void</CODE></FONT></TD>
515<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setMaxmemory(java.lang.String)">setMaxmemory</A></B>(java.lang.String&nbsp;max)</CODE>
516
517<BR>
518&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Corresponds to -mx or -Xmx depending on VM version.</TD>
519</TR>
520<TR BGCOLOR="white" CLASS="TableRowColor">
521<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
522<CODE>&nbsp;void</CODE></FONT></TD>
523<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setNewenvironment(boolean)">setNewenvironment</A></B>(boolean&nbsp;newenv)</CODE>
524
525<BR>
526&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, use a completely new environment.</TD>
527</TR>
528<TR BGCOLOR="white" CLASS="TableRowColor">
529<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
530<CODE>&nbsp;void</CODE></FONT></TD>
531<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setOutput(java.io.File)">setOutput</A></B>(java.io.File&nbsp;out)</CODE>
532
533<BR>
534&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File the output of the process is redirected to.</TD>
535</TR>
536<TR BGCOLOR="white" CLASS="TableRowColor">
537<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
538<CODE>&nbsp;void</CODE></FONT></TD>
539<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setOutputproperty(java.lang.String)">setOutputproperty</A></B>(java.lang.String&nbsp;outputProp)</CODE>
540
541<BR>
542&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Property name whose value should be set to the output of
543 the process.</TD>
544</TR>
545<TR BGCOLOR="white" CLASS="TableRowColor">
546<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
547<CODE>&nbsp;void</CODE></FONT></TD>
548<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setResultProperty(java.lang.String)">setResultProperty</A></B>(java.lang.String&nbsp;resultProperty)</CODE>
549
550<BR>
551&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The name of a property in which the return code of the
552 command should be stored.</TD>
553</TR>
554<TR BGCOLOR="white" CLASS="TableRowColor">
555<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
556<CODE>&nbsp;void</CODE></FONT></TD>
557<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setSpawn(boolean)">setSpawn</A></B>(boolean&nbsp;spawn)</CODE>
558
559<BR>
560&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set whether or not you want the process to be spawned
561 default is not spawned</TD>
562</TR>
563<TR BGCOLOR="white" CLASS="TableRowColor">
564<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
565<CODE>&nbsp;void</CODE></FONT></TD>
566<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setTimeout(java.lang.Long)">setTimeout</A></B>(java.lang.Long&nbsp;value)</CODE>
567
568<BR>
569&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Timeout in milliseconds after which the process will be killed.</TD>
570</TR>
571<TR BGCOLOR="white" CLASS="TableRowColor">
572<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
573<CODE>protected &nbsp;void</CODE></FONT></TD>
574<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Java.html#setupRedirector()">setupRedirector</A></B>()</CODE>
575
576<BR>
577&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set up properties on the redirector that we needed to store locally.</TD>
578</TR>
579</TABLE>
580&nbsp;<A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
581<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
582<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
583<TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
584</TR>
585<TR BGCOLOR="white" CLASS="TableRowColor">
586<TD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#init()">init</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#perform()">perform</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</A></CODE></TD>
587</TR>
588</TABLE>
589&nbsp;<A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
590<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
591<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
592<TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
593</TR>
594<TR BGCOLOR="white" CLASS="TableRowColor">
595<TD><CODE><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
596</TR>
597</TABLE>
598&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
599<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
600<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
601<TD><B>Methods inherited from class java.lang.Object</B></TD>
602</TR>
603<TR BGCOLOR="white" CLASS="TableRowColor">
604<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
605</TR>
606</TABLE>
607&nbsp;
608<P>
609
610<!-- ============ FIELD DETAIL =========== -->
611
612<A NAME="field_detail"><!-- --></A>
613<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
614<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
615<TD COLSPAN=1><FONT SIZE="+2">
616<B>Field Detail</B></FONT></TD>
617</TR>
618</TABLE>
619
620<A NAME="redirector"><!-- --></A><H3>
621redirector</H3>
622<PRE>
623protected <A HREF="../../../../../org/apache/tools/ant/taskdefs/Redirector.html" title="class in org.apache.tools.ant.taskdefs">Redirector</A> <B>redirector</B></PRE>
624<DL>
625<DL>
626</DL>
627</DL>
628<HR>
629
630<A NAME="redirectorElement"><!-- --></A><H3>
631redirectorElement</H3>
632<PRE>
633protected <A HREF="../../../../../org/apache/tools/ant/types/RedirectorElement.html" title="class in org.apache.tools.ant.types">RedirectorElement</A> <B>redirectorElement</B></PRE>
634<DL>
635<DL>
636</DL>
637</DL>
638
639<!-- ========= CONSTRUCTOR DETAIL ======== -->
640
641<A NAME="constructor_detail"><!-- --></A>
642<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
643<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
644<TD COLSPAN=1><FONT SIZE="+2">
645<B>Constructor Detail</B></FONT></TD>
646</TR>
647</TABLE>
648
649<A NAME="Java()"><!-- --></A><H3>
650Java</H3>
651<PRE>
652public <B>Java</B>()</PRE>
653<DL>
654</DL>
655
656<!-- ============ METHOD DETAIL ========== -->
657
658<A NAME="method_detail"><!-- --></A>
659<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
660<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
661<TD COLSPAN=1><FONT SIZE="+2">
662<B>Method Detail</B></FONT></TD>
663</TR>
664</TABLE>
665
666<A NAME="execute()"><!-- --></A><H3>
667execute</H3>
668<PRE>
669public void <B>execute</B>()
670 throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
671<DL>
672<DD>Do the execution.
673<P>
674<DD><DL>
675<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#execute()">execute</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
676</DD>
677<DD><DL>
678
679<DT><B>Throws:</B>
680<DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if failOnError is set to true and the application
681 returns a non 0 result code</DL>
682</DD>
683</DL>
684<HR>
685
686<A NAME="executeJava()"><!-- --></A><H3>
687executeJava</H3>
688<PRE>
689public int <B>executeJava</B>()
690 throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
691<DL>
692<DD>Do the execution and return a return code.
693<P>
694<DD><DL>
695
696<DT><B>Returns:</B><DD>the return code from the execute java class if it was
697 executed in a separate VM (fork = "yes").
698<DT><B>Throws:</B>
699<DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if required parameters are missing</DL>
700</DD>
701</DL>
702<HR>
703
704<A NAME="setSpawn(boolean)"><!-- --></A><H3>
705setSpawn</H3>
706<PRE>
707public void <B>setSpawn</B>(boolean&nbsp;spawn)</PRE>
708<DL>
709<DD>set whether or not you want the process to be spawned
710 default is not spawned
711<P>
712<DD><DL>
713<DT><B>Parameters:</B><DD><CODE>spawn</CODE> - if true you do not want ant to wait for the end of the process<DT><B>Since:</B></DT>
714 <DD>ant 1.6</DD>
715</DL>
716</DD>
717</DL>
718<HR>
719
720<A NAME="setClasspath(org.apache.tools.ant.types.Path)"><!-- --></A><H3>
721setClasspath</H3>
722<PRE>
723public void <B>setClasspath</B>(<A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A>&nbsp;s)</PRE>
724<DL>
725<DD>Set the classpath to be used when running the Java class
726<P>
727<DD><DL>
728<DT><B>Parameters:</B><DD><CODE>s</CODE> - an Ant Path object containing the classpath.</DL>
729</DD>
730</DL>
731<HR>
732
733<A NAME="createClasspath()"><!-- --></A><H3>
734createClasspath</H3>
735<PRE>
736public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createClasspath</B>()</PRE>
737<DL>
738<DD>Adds a path to the classpath.
739<P>
740<DD><DL>
741
742<DT><B>Returns:</B><DD>created classpath</DL>
743</DD>
744</DL>
745<HR>
746
747<A NAME="createBootclasspath()"><!-- --></A><H3>
748createBootclasspath</H3>
749<PRE>
750public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createBootclasspath</B>()</PRE>
751<DL>
752<DD>Adds a path to the bootclasspath.
753<P>
754<DD><DL>
755
756<DT><B>Returns:</B><DD>created bootclasspath<DT><B>Since:</B></DT>
757 <DD>Ant 1.6</DD>
758</DL>
759</DD>
760</DL>
761<HR>
762
763<A NAME="createPermissions()"><!-- --></A><H3>
764createPermissions</H3>
765<PRE>
766public <A HREF="../../../../../org/apache/tools/ant/types/Permissions.html" title="class in org.apache.tools.ant.types">Permissions</A> <B>createPermissions</B>()</PRE>
767<DL>
768<DD>Sets the permissions for the application run inside the same JVM.
769<P>
770<DD><DL>
771
772<DT><B>Returns:</B><DD>.<DT><B>Since:</B></DT>
773 <DD>Ant 1.6</DD>
774</DL>
775</DD>
776</DL>
777<HR>
778
779<A NAME="setClasspathRef(org.apache.tools.ant.types.Reference)"><!-- --></A><H3>
780setClasspathRef</H3>
781<PRE>
782public void <B>setClasspathRef</B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A>&nbsp;r)</PRE>
783<DL>
784<DD>Classpath to use, by reference.
785<P>
786<DD><DL>
787<DT><B>Parameters:</B><DD><CODE>r</CODE> - a reference to an existing classpath</DL>
788</DD>
789</DL>
790<HR>
791
792<A NAME="setJar(java.io.File)"><!-- --></A><H3>
793setJar</H3>
794<PRE>
795public void <B>setJar</B>(java.io.File&nbsp;jarfile)
796 throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
797<DL>
798<DD>The location of the JAR file to execute.
799<P>
800<DD><DL>
801<DT><B>Parameters:</B><DD><CODE>jarfile</CODE> - the jarfile that one wants to execute
802<DT><B>Throws:</B>
803<DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if there is also a main class specified</DL>
804</DD>
805</DL>
806<HR>
807
808<A NAME="setClassname(java.lang.String)"><!-- --></A><H3>
809setClassname</H3>
810<PRE>
811public void <B>setClassname</B>(java.lang.String&nbsp;s)
812 throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
813<DL>
814<DD>Sets the Java class to execute.
815<P>
816<DD><DL>
817<DT><B>Parameters:</B><DD><CODE>s</CODE> - the name of the main class
818<DT><B>Throws:</B>
819<DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if the jar attribute has been set</DL>
820</DD>
821</DL>
822<HR>
823
824<A NAME="setArgs(java.lang.String)"><!-- --></A><H3>
825setArgs</H3>
826<PRE>
827public void <B>setArgs</B>(java.lang.String&nbsp;s)</PRE>
828<DL>
829<DD>Deprecated: use nested arg instead.
830 Set the command line arguments for the class.
831<P>
832<DD><DL>
833<DT><B>Parameters:</B><DD><CODE>s</CODE> - arguments</DL>
834</DD>
835</DL>
836<HR>
837
838<A NAME="createArg()"><!-- --></A><H3>
839createArg</H3>
840<PRE>
841public <A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A> <B>createArg</B>()</PRE>
842<DL>
843<DD>Adds a command-line argument.
844<P>
845<DD><DL>
846
847<DT><B>Returns:</B><DD>created argument</DL>
848</DD>
849</DL>
850<HR>
851
852<A NAME="setResultProperty(java.lang.String)"><!-- --></A><H3>
853setResultProperty</H3>
854<PRE>
855public void <B>setResultProperty</B>(java.lang.String&nbsp;resultProperty)</PRE>
856<DL>
857<DD>The name of a property in which the return code of the
858 command should be stored. Only of interest if failonerror=false.
859<P>
860<DD><DL>
861<DT><B>Parameters:</B><DD><CODE>resultProperty</CODE> - name of property<DT><B>Since:</B></DT>
862 <DD>Ant 1.6</DD>
863</DL>
864</DD>
865</DL>
866<HR>
867
868<A NAME="maybeSetResultPropertyValue(int)"><!-- --></A><H3>
869maybeSetResultPropertyValue</H3>
870<PRE>
871protected void <B>maybeSetResultPropertyValue</B>(int&nbsp;result)</PRE>
872<DL>
873<DD>helper method to set result property to the
874 passed in value if appropriate
875<P>
876<DD><DL>
877<DT><B>Parameters:</B><DD><CODE>result</CODE> - the exit code</DL>
878</DD>
879</DL>
880<HR>
881
882<A NAME="setFork(boolean)"><!-- --></A><H3>
883setFork</H3>
884<PRE>
885public void <B>setFork</B>(boolean&nbsp;s)</PRE>
886<DL>
887<DD>If true, execute in a new VM.
888<P>
889<DD><DL>
890<DT><B>Parameters:</B><DD><CODE>s</CODE> - do you want to run Java in a new VM.</DL>
891</DD>
892</DL>
893<HR>
894
895<A NAME="setJvmargs(java.lang.String)"><!-- --></A><H3>
896setJvmargs</H3>
897<PRE>
898public void <B>setJvmargs</B>(java.lang.String&nbsp;s)</PRE>
899<DL>
900<DD>Set the command line arguments for the JVM.
901<P>
902<DD><DL>
903<DT><B>Parameters:</B><DD><CODE>s</CODE> - jvmargs</DL>
904</DD>
905</DL>
906<HR>
907
908<A NAME="createJvmarg()"><!-- --></A><H3>
909createJvmarg</H3>
910<PRE>
911public <A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A> <B>createJvmarg</B>()</PRE>
912<DL>
913<DD>Adds a JVM argument.
914<P>
915<DD><DL>
916
917<DT><B>Returns:</B><DD>JVM argument created</DL>
918</DD>
919</DL>
920<HR>
921
922<A NAME="setJvm(java.lang.String)"><!-- --></A><H3>
923setJvm</H3>
924<PRE>
925public void <B>setJvm</B>(java.lang.String&nbsp;s)</PRE>
926<DL>
927<DD>Set the command used to start the VM (only if forking).
928<P>
929<DD><DL>
930<DT><B>Parameters:</B><DD><CODE>s</CODE> - command to start the VM</DL>
931</DD>
932</DL>
933<HR>
934
935<A NAME="addSysproperty(org.apache.tools.ant.types.Environment.Variable)"><!-- --></A><H3>
936addSysproperty</H3>
937<PRE>
938public void <B>addSysproperty</B>(<A HREF="../../../../../org/apache/tools/ant/types/Environment.Variable.html" title="class in org.apache.tools.ant.types">Environment.Variable</A>&nbsp;sysp)</PRE>
939<DL>
940<DD>Adds a system property.
941<P>
942<DD><DL>
943<DT><B>Parameters:</B><DD><CODE>sysp</CODE> - system property</DL>
944</DD>
945</DL>
946<HR>
947
948<A NAME="addSyspropertyset(org.apache.tools.ant.types.PropertySet)"><!-- --></A><H3>
949addSyspropertyset</H3>
950<PRE>
951public void <B>addSyspropertyset</B>(<A HREF="../../../../../org/apache/tools/ant/types/PropertySet.html" title="class in org.apache.tools.ant.types">PropertySet</A>&nbsp;sysp)</PRE>
952<DL>
953<DD>Adds a set of properties as system properties.
954<P>
955<DD><DL>
956<DT><B>Parameters:</B><DD><CODE>sysp</CODE> - set of properties to add<DT><B>Since:</B></DT>
957 <DD>Ant 1.6</DD>
958</DL>
959</DD>
960</DL>
961<HR>
962
963<A NAME="setFailonerror(boolean)"><!-- --></A><H3>
964setFailonerror</H3>
965<PRE>
966public void <B>setFailonerror</B>(boolean&nbsp;fail)</PRE>
967<DL>
968<DD>If true, then fail if the command exits with a
969 returncode other than 0
970<P>
971<DD><DL>
972<DT><B>Parameters:</B><DD><CODE>fail</CODE> - if true fail the build when the command exits with a non
973 zero returncode</DL>
974</DD>
975</DL>
976<HR>
977
978<A NAME="setDir(java.io.File)"><!-- --></A><H3>
979setDir</H3>
980<PRE>
981public void <B>setDir</B>(java.io.File&nbsp;d)</PRE>
982<DL>
983<DD>The working directory of the process
984<P>
985<DD><DL>
986<DT><B>Parameters:</B><DD><CODE>d</CODE> - working directory</DL>
987</DD>
988</DL>
989<HR>
990
991<A NAME="setOutput(java.io.File)"><!-- --></A><H3>
992setOutput</H3>
993<PRE>
994public void <B>setOutput</B>(java.io.File&nbsp;out)</PRE>
995<DL>
996<DD>File the output of the process is redirected to.
997<P>
998<DD><DL>
999<DT><B>Parameters:</B><DD><CODE>out</CODE> - name of the output file</DL>
1000</DD>
1001</DL>
1002<HR>
1003
1004<A NAME="setInput(java.io.File)"><!-- --></A><H3>
1005setInput</H3>
1006<PRE>
1007public void <B>setInput</B>(java.io.File&nbsp;input)</PRE>
1008<DL>
1009<DD>Set the input to use for the task
1010<P>
1011<DD><DL>
1012<DT><B>Parameters:</B><DD><CODE>input</CODE> - name of the input file</DL>
1013</DD>
1014</DL>
1015<HR>
1016
1017<A NAME="setInputString(java.lang.String)"><!-- --></A><H3>
1018setInputString</H3>
1019<PRE>
1020public void <B>setInputString</B>(java.lang.String&nbsp;inputString)</PRE>
1021<DL>
1022<DD>Set the string to use as input
1023<P>
1024<DD><DL>
1025<DT><B>Parameters:</B><DD><CODE>inputString</CODE> - the string which is used as the input source</DL>
1026</DD>
1027</DL>
1028<HR>
1029
1030<A NAME="setLogError(boolean)"><!-- --></A><H3>
1031setLogError</H3>
1032<PRE>
1033public void <B>setLogError</B>(boolean&nbsp;logError)</PRE>
1034<DL>
1035<DD>Controls whether error output of exec is logged. This is only useful
1036 when output is being redirected and error output is desired in the
1037 Ant log
1038<P>
1039<DD><DL>
1040<DT><B>Parameters:</B><DD><CODE>logError</CODE> - get in the ant log the messages coming from stderr
1041 in the case that fork = true</DL>
1042</DD>
1043</DL>
1044<HR>
1045
1046<A NAME="setError(java.io.File)"><!-- --></A><H3>
1047setError</H3>
1048<PRE>
1049public void <B>setError</B>(java.io.File&nbsp;error)</PRE>
1050<DL>
1051<DD>File the error stream of the process is redirected to.
1052<P>
1053<DD><DL>
1054<DT><B>Parameters:</B><DD><CODE>error</CODE> - file getting the error stream<DT><B>Since:</B></DT>
1055 <DD>ant 1.6</DD>
1056</DL>
1057</DD>
1058</DL>
1059<HR>
1060
1061<A NAME="setOutputproperty(java.lang.String)"><!-- --></A><H3>
1062setOutputproperty</H3>
1063<PRE>
1064public void <B>setOutputproperty</B>(java.lang.String&nbsp;outputProp)</PRE>
1065<DL>
1066<DD>Property name whose value should be set to the output of
1067 the process.
1068<P>
1069<DD><DL>
1070<DT><B>Parameters:</B><DD><CODE>outputProp</CODE> - property name</DL>
1071</DD>
1072</DL>
1073<HR>
1074
1075<A NAME="setErrorProperty(java.lang.String)"><!-- --></A><H3>
1076setErrorProperty</H3>
1077<PRE>
1078public void <B>setErrorProperty</B>(java.lang.String&nbsp;errorProperty)</PRE>
1079<DL>
1080<DD>Property name whose value should be set to the error of
1081 the process.
1082<P>
1083<DD><DL>
1084<DT><B>Parameters:</B><DD><CODE>errorProperty</CODE> - property name<DT><B>Since:</B></DT>
1085 <DD>ant 1.6</DD>
1086</DL>
1087</DD>
1088</DL>
1089<HR>
1090
1091<A NAME="setMaxmemory(java.lang.String)"><!-- --></A><H3>
1092setMaxmemory</H3>
1093<PRE>
1094public void <B>setMaxmemory</B>(java.lang.String&nbsp;max)</PRE>
1095<DL>
1096<DD>Corresponds to -mx or -Xmx depending on VM version.
1097<P>
1098<DD><DL>
1099<DT><B>Parameters:</B><DD><CODE>max</CODE> - max memory parameter</DL>
1100</DD>
1101</DL>
1102<HR>
1103
1104<A NAME="setJVMVersion(java.lang.String)"><!-- --></A><H3>
1105setJVMVersion</H3>
1106<PRE>
1107public void <B>setJVMVersion</B>(java.lang.String&nbsp;value)</PRE>
1108<DL>
1109<DD>Sets the JVM version.
1110<P>
1111<DD><DL>
1112<DT><B>Parameters:</B><DD><CODE>value</CODE> - JVM version</DL>
1113</DD>
1114</DL>
1115<HR>
1116
1117<A NAME="addEnv(org.apache.tools.ant.types.Environment.Variable)"><!-- --></A><H3>
1118addEnv</H3>
1119<PRE>
1120public void <B>addEnv</B>(<A HREF="../../../../../org/apache/tools/ant/types/Environment.Variable.html" title="class in org.apache.tools.ant.types">Environment.Variable</A>&nbsp;var)</PRE>
1121<DL>
1122<DD>Adds an environment variable.
1123
1124 <p>Will be ignored if we are not forking a new VM.
1125<P>
1126<DD><DL>
1127<DT><B>Parameters:</B><DD><CODE>var</CODE> - new environment variable<DT><B>Since:</B></DT>
1128 <DD>Ant 1.5</DD>
1129</DL>
1130</DD>
1131</DL>
1132<HR>
1133
1134<A NAME="setNewenvironment(boolean)"><!-- --></A><H3>
1135setNewenvironment</H3>
1136<PRE>
1137public void <B>setNewenvironment</B>(boolean&nbsp;newenv)</PRE>
1138<DL>
1139<DD>If true, use a completely new environment.
1140
1141 <p>Will be ignored if we are not forking a new VM.
1142<P>
1143<DD><DL>
1144<DT><B>Parameters:</B><DD><CODE>newenv</CODE> - if true, use a completely new environment.<DT><B>Since:</B></DT>
1145 <DD>Ant 1.5</DD>
1146</DL>
1147</DD>
1148</DL>
1149<HR>
1150
1151<A NAME="setAppend(boolean)"><!-- --></A><H3>
1152setAppend</H3>
1153<PRE>
1154public void <B>setAppend</B>(boolean&nbsp;append)</PRE>
1155<DL>
1156<DD>If true, append output to existing file.
1157<P>
1158<DD><DL>
1159<DT><B>Parameters:</B><DD><CODE>append</CODE> - if true, append output to existing file<DT><B>Since:</B></DT>
1160 <DD>Ant 1.5</DD>
1161</DL>
1162</DD>
1163</DL>
1164<HR>
1165
1166<A NAME="setTimeout(java.lang.Long)"><!-- --></A><H3>
1167setTimeout</H3>
1168<PRE>
1169public void <B>setTimeout</B>(java.lang.Long&nbsp;value)</PRE>
1170<DL>
1171<DD>Timeout in milliseconds after which the process will be killed.
1172<P>
1173<DD><DL>
1174<DT><B>Parameters:</B><DD><CODE>value</CODE> - time out in milliseconds<DT><B>Since:</B></DT>
1175 <DD>Ant 1.5</DD>
1176</DL>
1177</DD>
1178</DL>
1179<HR>
1180
1181<A NAME="addAssertions(org.apache.tools.ant.types.Assertions)"><!-- --></A><H3>
1182addAssertions</H3>
1183<PRE>
1184public void <B>addAssertions</B>(<A HREF="../../../../../org/apache/tools/ant/types/Assertions.html" title="class in org.apache.tools.ant.types">Assertions</A>&nbsp;asserts)</PRE>
1185<DL>
1186<DD>assertions to enable in this program (if fork=true)
1187<P>
1188<DD><DL>
1189<DT><B>Parameters:</B><DD><CODE>asserts</CODE> - assertion set<DT><B>Since:</B></DT>
1190 <DD>Ant 1.6</DD>
1191</DL>
1192</DD>
1193</DL>
1194<HR>
1195
1196<A NAME="addConfiguredRedirector(org.apache.tools.ant.types.RedirectorElement)"><!-- --></A><H3>
1197addConfiguredRedirector</H3>
1198<PRE>
1199public void <B>addConfiguredRedirector</B>(<A HREF="../../../../../org/apache/tools/ant/types/RedirectorElement.html" title="class in org.apache.tools.ant.types">RedirectorElement</A>&nbsp;redirectorElement)</PRE>
1200<DL>
1201<DD>Add a <CODE>RedirectorElement</CODE> to this task.
1202<P>
1203<DD><DL>
1204<DT><B>Parameters:</B><DD><CODE>redirectorElement</CODE> - <CODE>RedirectorElement</CODE>.</DL>
1205</DD>
1206</DL>
1207<HR>
1208
1209<A NAME="handleOutput(java.lang.String)"><!-- --></A><H3>
1210handleOutput</H3>
1211<PRE>
1212protected void <B>handleOutput</B>(java.lang.String&nbsp;output)</PRE>
1213<DL>
1214<DD>Pass output sent to System.out to specified output file.
1215<P>
1216<DD><DL>
1217<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
1218</DD>
1219<DD><DL>
1220<DT><B>Parameters:</B><DD><CODE>output</CODE> - a string of output on its way to the handlers<DT><B>Since:</B></DT>
1221 <DD>Ant 1.5</DD>
1222</DL>
1223</DD>
1224</DL>
1225<HR>
1226
1227<A NAME="handleInput(byte[], int, int)"><!-- --></A><H3>
1228handleInput</H3>
1229<PRE>
1230public int <B>handleInput</B>(byte[]&nbsp;buffer,
1231 int&nbsp;offset,
1232 int&nbsp;length)
1233 throws java.io.IOException</PRE>
1234<DL>
1235<DD>Handle an input request by this task
1236<P>
1237<DD><DL>
1238<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
1239</DD>
1240<DD><DL>
1241<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the buffer into which data is to be read.<DD><CODE>offset</CODE> - the offset into the buffer at which data is stored.<DD><CODE>length</CODE> - the amount of data to read
1242<DT><B>Returns:</B><DD>the number of bytes read
1243<DT><B>Throws:</B>
1244<DD><CODE>java.io.IOException</CODE> - if the data cannot be read<DT><B>Since:</B></DT>
1245 <DD>Ant 1.6</DD>
1246</DL>
1247</DD>
1248</DL>
1249<HR>
1250
1251<A NAME="handleFlush(java.lang.String)"><!-- --></A><H3>
1252handleFlush</H3>
1253<PRE>
1254protected void <B>handleFlush</B>(java.lang.String&nbsp;output)</PRE>
1255<DL>
1256<DD>Pass output sent to System.out to specified output file.
1257<P>
1258<DD><DL>
1259<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
1260</DD>
1261<DD><DL>
1262<DT><B>Parameters:</B><DD><CODE>output</CODE> - string of output on its way to its handlers<DT><B>Since:</B></DT>
1263 <DD>Ant 1.5.2</DD>
1264</DL>
1265</DD>
1266</DL>
1267<HR>
1268
1269<A NAME="handleErrorOutput(java.lang.String)"><!-- --></A><H3>
1270handleErrorOutput</H3>
1271<PRE>
1272protected void <B>handleErrorOutput</B>(java.lang.String&nbsp;output)</PRE>
1273<DL>
1274<DD>Handle output sent to System.err
1275<P>
1276<DD><DL>
1277<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
1278</DD>
1279<DD><DL>
1280<DT><B>Parameters:</B><DD><CODE>output</CODE> - string of stderr<DT><B>Since:</B></DT>
1281 <DD>Ant 1.5</DD>
1282</DL>
1283</DD>
1284</DL>
1285<HR>
1286
1287<A NAME="handleErrorFlush(java.lang.String)"><!-- --></A><H3>
1288handleErrorFlush</H3>
1289<PRE>
1290protected void <B>handleErrorFlush</B>(java.lang.String&nbsp;output)</PRE>
1291<DL>
1292<DD>Handle output sent to System.err and flush the stream.
1293<P>
1294<DD><DL>
1295<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
1296</DD>
1297<DD><DL>
1298<DT><B>Parameters:</B><DD><CODE>output</CODE> - string of stderr<DT><B>Since:</B></DT>
1299 <DD>Ant 1.5.2</DD>
1300</DL>
1301</DD>
1302</DL>
1303<HR>
1304
1305<A NAME="setupRedirector()"><!-- --></A><H3>
1306setupRedirector</H3>
1307<PRE>
1308protected void <B>setupRedirector</B>()</PRE>
1309<DL>
1310<DD>Set up properties on the redirector that we needed to store locally.
1311<P>
1312<DD><DL>
1313</DL>
1314</DD>
1315</DL>
1316<HR>
1317
1318<A NAME="run(java.lang.String, java.util.Vector)"><!-- --></A><H3>
1319run</H3>
1320<PRE>
1321protected void <B>run</B>(java.lang.String&nbsp;classname,
1322 java.util.Vector&nbsp;args)
1323 throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
1324<DL>
1325<DD>Executes the given classname with the given arguments as it
1326 was a command line application.
1327<P>
1328<DD><DL>
1329<DT><B>Parameters:</B><DD><CODE>classname</CODE> - the name of the class to run<DD><CODE>args</CODE> - arguments for the class
1330<DT><B>Throws:</B>
1331<DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - in case of IO Exception in the execution</DL>
1332</DD>
1333</DL>
1334<HR>
1335
1336<A NAME="clearArgs()"><!-- --></A><H3>
1337clearArgs</H3>
1338<PRE>
1339public void <B>clearArgs</B>()</PRE>
1340<DL>
1341<DD>Clear out the arguments to this java task.
1342<P>
1343<DD><DL>
1344</DL>
1345</DD>
1346</DL>
1347<HR>
1348
1349<A NAME="createWatchdog()"><!-- --></A><H3>
1350createWatchdog</H3>
1351<PRE>
1352protected <A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html" title="class in org.apache.tools.ant.taskdefs">ExecuteWatchdog</A> <B>createWatchdog</B>()
1353 throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
1354<DL>
1355<DD>Create the Watchdog to kill a runaway process.
1356<P>
1357<DD><DL>
1358
1359<DT><B>Returns:</B><DD>new watchdog
1360<DT><B>Throws:</B>
1361<DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - under unknown circumstances<DT><B>Since:</B></DT>
1362 <DD>Ant 1.5</DD>
1363</DL>
1364</DD>
1365</DL>
1366<HR>
1367
1368<A NAME="getCommandLine()"><!-- --></A><H3>
1369getCommandLine</H3>
1370<PRE>
1371public <A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html" title="class in org.apache.tools.ant.types">CommandlineJava</A> <B>getCommandLine</B>()</PRE>
1372<DL>
1373<DD>accessor to the command line
1374<P>
1375<DD><DL>
1376
1377<DT><B>Returns:</B><DD>the current command line<DT><B>Since:</B></DT>
1378 <DD>1.6.3</DD>
1379</DL>
1380</DD>
1381</DL>
1382<HR>
1383
1384<A NAME="getSysProperties()"><!-- --></A><H3>
1385getSysProperties</H3>
1386<PRE>
1387public <A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types">CommandlineJava.SysProperties</A> <B>getSysProperties</B>()</PRE>
1388<DL>
1389<DD>get the system properties of the command line
1390<P>
1391<DD><DL>
1392
1393<DT><B>Returns:</B><DD>the current properties of this java invocation<DT><B>Since:</B></DT>
1394 <DD>1.6.3</DD>
1395</DL>
1396</DD>
1397</DL>
1398<!-- ========= END OF CLASS DATA ========= -->
1399<HR>
1400
1401
1402<!-- ======= START OF BOTTOM NAVBAR ====== -->
1403<A NAME="navbar_bottom"><!-- --></A>
1404<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1405<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1406<TR>
1407<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1408<A NAME="navbar_bottom_firstrow"><!-- --></A>
1409<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1410 <TR ALIGN="center" VALIGN="top">
1411 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1412 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1413 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1414 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1415 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1416 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1417 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1418 </TR>
1419</TABLE>
1420</TD>
1421<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1422</EM>
1423</TD>
1424</TR>
1425
1426<TR>
1427<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1428&nbsp;<A HREF="../../../../../org/apache/tools/ant/taskdefs/Jar.FilesetManifestConfig.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>&nbsp;
1429&nbsp;<A HREF="../../../../../org/apache/tools/ant/taskdefs/Javac.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
1430<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1431 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
1432&nbsp;<A HREF="Java.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
1433&nbsp;<SCRIPT type="text/javascript">
1434 <!--
1435 if(window==top) {
1436 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1437 }
1438 //-->
1439</SCRIPT>
1440<NOSCRIPT>
1441 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
1442</NOSCRIPT>
1443
1444</FONT></TD>
1445</TR>
1446<TR>
1447<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1448 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1449<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1450DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1451</TR>
1452</TABLE>
1453<A NAME="skip-navbar_bottom"></A>
1454<!-- ======== END OF BOTTOM NAVBAR ======= -->
1455
1456<HR>
1457Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
1458</BODY>
1459</HTML>
Note: See TracBrowser for help on using the repository browser.