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

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

initial import of LiRK3

File size: 28.1 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:25 NZST 2007 -->
6<TITLE>
7NetCommand (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.dotnet.NetCommand 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="NetCommand (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/optional/dotnet/JSharp.html" title="class in org.apache.tools.ant.taskdefs.optional.dotnet"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.html" title="class in org.apache.tools.ant.taskdefs.optional.dotnet"><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="NetCommand.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.optional.dotnet</FONT>
85<BR>
86Class NetCommand</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.optional.dotnet.NetCommand</B>
90</PRE>
91<HR>
92<DL>
93<DT>public class <B>NetCommand</B><DT>extends java.lang.Object</DL>
94
95<P>
96This is a helper class to spawn net commands out. In its initial form it
97 contains no .net specifics, just contains all the command line/exe
98 construction stuff. However, it may be handy in future to have a means of
99 setting the path to point to the dotnet bin directory; in which case the
100 shared code should go in here.
101<P>
102
103<P>
104<DL>
105<DT><B>Version:</B></DT>
106 <DD>0.5</DD>
107</DL>
108<HR>
109
110<P>
111<!-- ======== NESTED CLASS SUMMARY ======== -->
112
113
114<!-- =========== FIELD SUMMARY =========== -->
115
116<A NAME="field_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TD COLSPAN=2><FONT SIZE="+2">
120<B>Field Summary</B></FONT></TD>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
124<CODE>protected &nbsp;<A HREF="../../../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A></CODE></FONT></TD>
125<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#commandLine">commandLine</A></B></CODE>
126
127<BR>
128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;what is the command line</TD>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132<CODE>protected &nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/Execute.html" title="class in org.apache.tools.ant.taskdefs">Execute</A></CODE></FONT></TD>
133<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#executable">executable</A></B></CODE>
134
135<BR>
136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;executable</TD>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>protected &nbsp;boolean</CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#failOnError">failOnError</A></B></CODE>
142
143<BR>
144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flag to control action on execution trouble</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>protected &nbsp;<A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#owner">owner</A></B></CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;owner project</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#program">program</A></B></CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;actual program to invoke</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#title">title</A></B></CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title of the command</TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>protected &nbsp;boolean</CODE></FONT></TD>
173<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#traceCommandLine">traceCommandLine</A></B></CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trace flag</TD>
177</TR>
178</TABLE>
179&nbsp;
180<!-- ======== CONSTRUCTOR SUMMARY ======== -->
181
182<A NAME="constructor_summary"><!-- --></A>
183<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
185<TD COLSPAN=2><FONT SIZE="+2">
186<B>Constructor Summary</B></FONT></TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#NetCommand(org.apache.tools.ant.Task, java.lang.String, java.lang.String)">NetCommand</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A>&nbsp;owner,
190 java.lang.String&nbsp;title,
191 java.lang.String&nbsp;program)</CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constructor</TD>
195</TR>
196</TABLE>
197&nbsp;
198<!-- ========== METHOD SUMMARY =========== -->
199
200<A NAME="method_summary"><!-- --></A>
201<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203<TD COLSPAN=2><FONT SIZE="+2">
204<B>Method Summary</B></FONT></TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>&nbsp;void</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#addArgument(java.lang.String)">addArgument</A></B>(java.lang.String&nbsp;argument)</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add an argument to a command line; do nothing if the arg is null or
213 empty string</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>&nbsp;void</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#addArgument(java.lang.String, java.lang.String)">addArgument</A></B>(java.lang.String&nbsp;argument1,
219 java.lang.String&nbsp;argument2)</CODE>
220
221<BR>
222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;concatenate two strings together and add them as a single argument,
223 but only if argument2 is non-null and non-zero length</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/optional/dotnet/NetCommand.html#addArguments(java.lang.String[])">addArguments</A></B>(java.lang.String[]&nbsp;arguments)</CODE>
229
230<BR>
231&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add an argument to a command line; do nothing if the arg is null or
232 empty string</TD>
233</TR>
234<TR BGCOLOR="white" CLASS="TableRowColor">
235<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
236<CODE>&nbsp;int</CODE></FONT></TD>
237<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#getAutomaticResponseFileThreshold()">getAutomaticResponseFileThreshold</A></B>()</CODE>
238
239<BR>
240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getter for threshold</TD>
241</TR>
242<TR BGCOLOR="white" CLASS="TableRowColor">
243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244<CODE>&nbsp;boolean</CODE></FONT></TD>
245<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#getFailFailOnError()">getFailFailOnError</A></B>()</CODE>
246
247<BR>
248&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query fail on error flag</TD>
249</TR>
250<TR BGCOLOR="white" CLASS="TableRowColor">
251<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
252<CODE>&nbsp;boolean</CODE></FONT></TD>
253<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#isUseResponseFile()">isUseResponseFile</A></B>()</CODE>
254
255<BR>
256&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getter</TD>
257</TR>
258<TR BGCOLOR="white" CLASS="TableRowColor">
259<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
260<CODE>protected &nbsp;void</CODE></FONT></TD>
261<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#logError(java.lang.String)">logError</A></B>(java.lang.String&nbsp;msg)</CODE>
262
263<BR>
264&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error text log</TD>
265</TR>
266<TR BGCOLOR="white" CLASS="TableRowColor">
267<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268<CODE>protected &nbsp;void</CODE></FONT></TD>
269<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#logVerbose(java.lang.String)">logVerbose</A></B>(java.lang.String&nbsp;msg)</CODE>
270
271<BR>
272&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;verbose text log</TD>
273</TR>
274<TR BGCOLOR="white" CLASS="TableRowColor">
275<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
276<CODE>protected &nbsp;void</CODE></FONT></TD>
277<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#prepareExecutor()">prepareExecutor</A></B>()</CODE>
278
279<BR>
280&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set up the command sequence..</TD>
281</TR>
282<TR BGCOLOR="white" CLASS="TableRowColor">
283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284<CODE>&nbsp;void</CODE></FONT></TD>
285<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#runCommand()">runCommand</A></B>()</CODE>
286
287<BR>
288&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Run the command using the given Execute instance.</TD>
289</TR>
290<TR BGCOLOR="white" CLASS="TableRowColor">
291<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292<CODE>&nbsp;int</CODE></FONT></TD>
293<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#scanOneFileset(org.apache.tools.ant.DirectoryScanner, java.util.Hashtable, long)">scanOneFileset</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A>&nbsp;scanner,
294 java.util.Hashtable&nbsp;filesToBuild,
295 long&nbsp;outputTimestamp)</CODE>
296
297<BR>
298&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scan through one fileset for files to include</TD>
299</TR>
300<TR BGCOLOR="white" CLASS="TableRowColor">
301<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
302<CODE>&nbsp;void</CODE></FONT></TD>
303<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#setAutomaticResponseFileThreshold(int)">setAutomaticResponseFileThreshold</A></B>(int&nbsp;automaticResponseFileThreshold)</CODE>
304
305<BR>
306&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set threshold for automatically using response files -use 0 for off</TD>
307</TR>
308<TR BGCOLOR="white" CLASS="TableRowColor">
309<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
310<CODE>&nbsp;void</CODE></FONT></TD>
311<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#setDirectory(java.io.File)">setDirectory</A></B>(java.io.File&nbsp;directory)</CODE>
312
313<BR>
314&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the directory to run from, if the default is inadequate</TD>
315</TR>
316<TR BGCOLOR="white" CLASS="TableRowColor">
317<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
318<CODE>&nbsp;void</CODE></FONT></TD>
319<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#setFailOnError(boolean)">setFailOnError</A></B>(boolean&nbsp;b)</CODE>
320
321<BR>
322&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set fail on error flag</TD>
323</TR>
324<TR BGCOLOR="white" CLASS="TableRowColor">
325<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
326<CODE>&nbsp;void</CODE></FONT></TD>
327<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#setTraceCommandLine(boolean)">setTraceCommandLine</A></B>(boolean&nbsp;b)</CODE>
328
329<BR>
330&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;turn tracing on or off</TD>
331</TR>
332<TR BGCOLOR="white" CLASS="TableRowColor">
333<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
334<CODE>&nbsp;void</CODE></FONT></TD>
335<TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.html#setUseResponseFile(boolean)">setUseResponseFile</A></B>(boolean&nbsp;useResponseFile)</CODE>
336
337<BR>
338&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set this to true to always use the response file</TD>
339</TR>
340</TABLE>
341&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
342<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
343<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
344<TD><B>Methods inherited from class java.lang.Object</B></TD>
345</TR>
346<TR BGCOLOR="white" CLASS="TableRowColor">
347<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
348</TR>
349</TABLE>
350&nbsp;
351<P>
352
353<!-- ============ FIELD DETAIL =========== -->
354
355<A NAME="field_detail"><!-- --></A>
356<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
357<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
358<TD COLSPAN=1><FONT SIZE="+2">
359<B>Field Detail</B></FONT></TD>
360</TR>
361</TABLE>
362
363<A NAME="owner"><!-- --></A><H3>
364owner</H3>
365<PRE>
366protected <A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A> <B>owner</B></PRE>
367<DL>
368<DD>owner project
369<P>
370<DL>
371</DL>
372</DL>
373<HR>
374
375<A NAME="executable"><!-- --></A><H3>
376executable</H3>
377<PRE>
378protected <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/Execute.html" title="class in org.apache.tools.ant.taskdefs">Execute</A> <B>executable</B></PRE>
379<DL>
380<DD>executable
381<P>
382<DL>
383</DL>
384</DL>
385<HR>
386
387<A NAME="commandLine"><!-- --></A><H3>
388commandLine</H3>
389<PRE>
390protected <A HREF="../../../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A> <B>commandLine</B></PRE>
391<DL>
392<DD>what is the command line
393<P>
394<DL>
395</DL>
396</DL>
397<HR>
398
399<A NAME="title"><!-- --></A><H3>
400title</H3>
401<PRE>
402protected java.lang.String <B>title</B></PRE>
403<DL>
404<DD>title of the command
405<P>
406<DL>
407</DL>
408</DL>
409<HR>
410
411<A NAME="program"><!-- --></A><H3>
412program</H3>
413<PRE>
414protected java.lang.String <B>program</B></PRE>
415<DL>
416<DD>actual program to invoke
417<P>
418<DL>
419</DL>
420</DL>
421<HR>
422
423<A NAME="traceCommandLine"><!-- --></A><H3>
424traceCommandLine</H3>
425<PRE>
426protected boolean <B>traceCommandLine</B></PRE>
427<DL>
428<DD>trace flag
429<P>
430<DL>
431</DL>
432</DL>
433<HR>
434
435<A NAME="failOnError"><!-- --></A><H3>
436failOnError</H3>
437<PRE>
438protected boolean <B>failOnError</B></PRE>
439<DL>
440<DD>flag to control action on execution trouble
441<P>
442<DL>
443</DL>
444</DL>
445
446<!-- ========= CONSTRUCTOR DETAIL ======== -->
447
448<A NAME="constructor_detail"><!-- --></A>
449<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
450<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
451<TD COLSPAN=1><FONT SIZE="+2">
452<B>Constructor Detail</B></FONT></TD>
453</TR>
454</TABLE>
455
456<A NAME="NetCommand(org.apache.tools.ant.Task, java.lang.String, java.lang.String)"><!-- --></A><H3>
457NetCommand</H3>
458<PRE>
459public <B>NetCommand</B>(<A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A>&nbsp;owner,
460 java.lang.String&nbsp;title,
461 java.lang.String&nbsp;program)</PRE>
462<DL>
463<DD>constructor
464<P>
465<DT><B>Parameters:</B><DD><CODE>title</CODE> - (for logging/errors)<DD><CODE>owner</CODE> - owner task<DD><CODE>program</CODE> - app we are to run</DL>
466
467<!-- ============ METHOD DETAIL ========== -->
468
469<A NAME="method_detail"><!-- --></A>
470<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
471<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
472<TD COLSPAN=1><FONT SIZE="+2">
473<B>Method Detail</B></FONT></TD>
474</TR>
475</TABLE>
476
477<A NAME="setTraceCommandLine(boolean)"><!-- --></A><H3>
478setTraceCommandLine</H3>
479<PRE>
480public void <B>setTraceCommandLine</B>(boolean&nbsp;b)</PRE>
481<DL>
482<DD>turn tracing on or off
483<P>
484<DD><DL>
485<DT><B>Parameters:</B><DD><CODE>b</CODE> - trace flag</DL>
486</DD>
487</DL>
488<HR>
489
490<A NAME="setFailOnError(boolean)"><!-- --></A><H3>
491setFailOnError</H3>
492<PRE>
493public void <B>setFailOnError</B>(boolean&nbsp;b)</PRE>
494<DL>
495<DD>set fail on error flag
496<P>
497<DD><DL>
498<DT><B>Parameters:</B><DD><CODE>b</CODE> - fail flag -set to true to cause an exception to be raised if
499 the return value != 0</DL>
500</DD>
501</DL>
502<HR>
503
504<A NAME="getFailFailOnError()"><!-- --></A><H3>
505getFailFailOnError</H3>
506<PRE>
507public boolean <B>getFailFailOnError</B>()</PRE>
508<DL>
509<DD>query fail on error flag
510<P>
511<DD><DL>
512
513<DT><B>Returns:</B><DD>The failFailOnError value</DL>
514</DD>
515</DL>
516<HR>
517
518<A NAME="setDirectory(java.io.File)"><!-- --></A><H3>
519setDirectory</H3>
520<PRE>
521public void <B>setDirectory</B>(java.io.File&nbsp;directory)</PRE>
522<DL>
523<DD>set the directory to run from, if the default is inadequate
524<P>
525<DD><DL>
526<DT><B>Parameters:</B><DD><CODE>directory</CODE> - </DL>
527</DD>
528</DL>
529<HR>
530
531<A NAME="logVerbose(java.lang.String)"><!-- --></A><H3>
532logVerbose</H3>
533<PRE>
534protected void <B>logVerbose</B>(java.lang.String&nbsp;msg)</PRE>
535<DL>
536<DD>verbose text log
537<P>
538<DD><DL>
539<DT><B>Parameters:</B><DD><CODE>msg</CODE> - string to add to log if verbose is defined for the build</DL>
540</DD>
541</DL>
542<HR>
543
544<A NAME="logError(java.lang.String)"><!-- --></A><H3>
545logError</H3>
546<PRE>
547protected void <B>logError</B>(java.lang.String&nbsp;msg)</PRE>
548<DL>
549<DD>error text log
550<P>
551<DD><DL>
552<DT><B>Parameters:</B><DD><CODE>msg</CODE> - message to display as an error</DL>
553</DD>
554</DL>
555<HR>
556
557<A NAME="addArgument(java.lang.String)"><!-- --></A><H3>
558addArgument</H3>
559<PRE>
560public void <B>addArgument</B>(java.lang.String&nbsp;argument)</PRE>
561<DL>
562<DD>add an argument to a command line; do nothing if the arg is null or
563 empty string
564<P>
565<DD><DL>
566<DT><B>Parameters:</B><DD><CODE>argument</CODE> - The feature to be added to the Argument attribute</DL>
567</DD>
568</DL>
569<HR>
570
571<A NAME="addArguments(java.lang.String[])"><!-- --></A><H3>
572addArguments</H3>
573<PRE>
574public void <B>addArguments</B>(java.lang.String[]&nbsp;arguments)</PRE>
575<DL>
576<DD>add an argument to a command line; do nothing if the arg is null or
577 empty string
578<P>
579<DD><DL>
580</DL>
581</DD>
582</DL>
583<HR>
584
585<A NAME="addArgument(java.lang.String, java.lang.String)"><!-- --></A><H3>
586addArgument</H3>
587<PRE>
588public void <B>addArgument</B>(java.lang.String&nbsp;argument1,
589 java.lang.String&nbsp;argument2)</PRE>
590<DL>
591<DD>concatenate two strings together and add them as a single argument,
592 but only if argument2 is non-null and non-zero length
593<P>
594<DD><DL>
595<DT><B>Parameters:</B><DD><CODE>argument1</CODE> - The first argument<DD><CODE>argument2</CODE> - The second argument</DL>
596</DD>
597</DL>
598<HR>
599
600<A NAME="isUseResponseFile()"><!-- --></A><H3>
601isUseResponseFile</H3>
602<PRE>
603public boolean <B>isUseResponseFile</B>()</PRE>
604<DL>
605<DD>getter
606<P>
607<DD><DL>
608
609<DT><B>Returns:</B><DD>response file state</DL>
610</DD>
611</DL>
612<HR>
613
614<A NAME="setUseResponseFile(boolean)"><!-- --></A><H3>
615setUseResponseFile</H3>
616<PRE>
617public void <B>setUseResponseFile</B>(boolean&nbsp;useResponseFile)</PRE>
618<DL>
619<DD>set this to true to always use the response file
620<P>
621<DD><DL>
622<DT><B>Parameters:</B><DD><CODE>useResponseFile</CODE> - </DL>
623</DD>
624</DL>
625<HR>
626
627<A NAME="getAutomaticResponseFileThreshold()"><!-- --></A><H3>
628getAutomaticResponseFileThreshold</H3>
629<PRE>
630public int <B>getAutomaticResponseFileThreshold</B>()</PRE>
631<DL>
632<DD>getter for threshold
633<P>
634<DD><DL>
635
636<DT><B>Returns:</B><DD>0 for disabled, or a threshold for enabling response files</DL>
637</DD>
638</DL>
639<HR>
640
641<A NAME="setAutomaticResponseFileThreshold(int)"><!-- --></A><H3>
642setAutomaticResponseFileThreshold</H3>
643<PRE>
644public void <B>setAutomaticResponseFileThreshold</B>(int&nbsp;automaticResponseFileThreshold)</PRE>
645<DL>
646<DD>set threshold for automatically using response files -use 0 for off
647<P>
648<DD><DL>
649<DT><B>Parameters:</B><DD><CODE>automaticResponseFileThreshold</CODE> - </DL>
650</DD>
651</DL>
652<HR>
653
654<A NAME="prepareExecutor()"><!-- --></A><H3>
655prepareExecutor</H3>
656<PRE>
657protected void <B>prepareExecutor</B>()</PRE>
658<DL>
659<DD>set up the command sequence..
660<P>
661<DD><DL>
662</DL>
663</DD>
664</DL>
665<HR>
666
667<A NAME="runCommand()"><!-- --></A><H3>
668runCommand</H3>
669<PRE>
670public void <B>runCommand</B>()
671 throws <A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
672<DL>
673<DD>Run the command using the given Execute instance.
674<P>
675<DD><DL>
676
677<DT><B>Throws:</B>
678<DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if something goes wrong and the
679 failOnError flag is true</DL>
680</DD>
681</DL>
682<HR>
683
684<A NAME="scanOneFileset(org.apache.tools.ant.DirectoryScanner, java.util.Hashtable, long)"><!-- --></A><H3>
685scanOneFileset</H3>
686<PRE>
687public int <B>scanOneFileset</B>(<A HREF="../../../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A>&nbsp;scanner,
688 java.util.Hashtable&nbsp;filesToBuild,
689 long&nbsp;outputTimestamp)</PRE>
690<DL>
691<DD>scan through one fileset for files to include
692<P>
693<DD><DL>
694<DT><B>Parameters:</B><DD><CODE>scanner</CODE> - <DD><CODE>filesToBuild</CODE> - <DD><CODE>outputTimestamp</CODE> - timestamp to compare against
695<DT><B>Returns:</B><DD>#of files out of date</DL>
696</DD>
697</DL>
698<!-- ========= END OF CLASS DATA ========= -->
699<HR>
700
701
702<!-- ======= START OF BOTTOM NAVBAR ====== -->
703<A NAME="navbar_bottom"><!-- --></A>
704<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
705<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
706<TR>
707<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
708<A NAME="navbar_bottom_firstrow"><!-- --></A>
709<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
710 <TR ALIGN="center" VALIGN="top">
711 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
712 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
713 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
714 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
715 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
716 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
717 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
718 </TR>
719</TABLE>
720</TD>
721<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
722</EM>
723</TD>
724</TR>
725
726<TR>
727<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
728&nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/JSharp.html" title="class in org.apache.tools.ant.taskdefs.optional.dotnet"><B>PREV CLASS</B></A>&nbsp;
729&nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.html" title="class in org.apache.tools.ant.taskdefs.optional.dotnet"><B>NEXT CLASS</B></A></FONT></TD>
730<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
731 <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
732&nbsp;<A HREF="NetCommand.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
733&nbsp;<SCRIPT type="text/javascript">
734 <!--
735 if(window==top) {
736 document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
737 }
738 //-->
739</SCRIPT>
740<NOSCRIPT>
741 <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
742</NOSCRIPT>
743
744</FONT></TD>
745</TR>
746<TR>
747<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
748 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>
749<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
750DETAIL:&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>
751</TR>
752</TABLE>
753<A NAME="skip-navbar_bottom"></A>
754<!-- ======== END OF BOTTOM NAVBAR ======= -->
755
756<HR>
757Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
758</BODY>
759</HTML>
Note: See TracBrowser for help on using the repository browser.