Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1777 | jmachado | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
2 | <!--NewPage--> |
||
3 | <HTML> |
||
4 | <HEAD> |
||
5 | <!-- Generated by javadoc (build 1.5.0_09) on Thu Nov 02 11:46:42 EST 2006 --> |
||
6 | <TITLE> |
||
7 | ShellScriptTask (Ant Contrib) |
||
8 | </TITLE> |
||
9 | |||
10 | <META NAME="keywords" CONTENT="net.sf.antcontrib.platform.ShellScriptTask class"> |
||
11 | |||
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
||
13 | |||
14 | <SCRIPT type="text/javascript"> |
||
15 | function windowTitle() |
||
16 | { |
||
17 | parent.document.title="ShellScriptTask (Ant Contrib)"; |
||
18 | } |
||
19 | </SCRIPT> |
||
20 | <NOSCRIPT> |
||
21 | </NOSCRIPT> |
||
22 | |||
23 | </HEAD> |
||
24 | |||
25 | <BODY BGCOLOR="white" onload="windowTitle();"> |
||
26 | |||
27 | |||
28 | <!-- ========= START OF TOP NAVBAR ======= --> |
||
29 | <A NAME="navbar_top"><!-- --></A> |
||
30 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
||
31 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
32 | <TR> |
||
33 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
34 | <A NAME="navbar_top_firstrow"><!-- --></A> |
||
35 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
36 | <TR ALIGN="center" VALIGN="top"> |
||
37 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
39 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
44 | </TR> |
||
45 | </TABLE> |
||
46 | </TD> |
||
47 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
48 | </EM> |
||
49 | </TD> |
||
50 | </TR> |
||
51 | |||
52 | <TR> |
||
53 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
54 | <A HREF="../../../../net/sf/antcontrib/platform/Platform.html" title="class in net.sf.antcontrib.platform"><B>PREV CLASS</B></A> |
||
55 | NEXT CLASS</FONT></TD> |
||
56 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
57 | <A HREF="../../../../index.html?net/sf/antcontrib/platform/ShellScriptTask.html" target="_top"><B>FRAMES</B></A> |
||
58 | <A HREF="ShellScriptTask.html" target="_top"><B>NO FRAMES</B></A> |
||
59 | <SCRIPT type="text/javascript"> |
||
60 | <!-- |
||
61 | if(window==top) { |
||
62 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
63 | } |
||
64 | //--> |
||
65 | </SCRIPT> |
||
66 | <NOSCRIPT> |
||
67 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
68 | </NOSCRIPT> |
||
69 | |||
70 | |||
71 | </FONT></TD> |
||
72 | </TR> |
||
73 | <TR> |
||
74 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
75 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.taskdefs.ExecTask">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
76 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
77 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
78 | </TR> |
||
79 | </TABLE> |
||
80 | <A NAME="skip-navbar_top"></A> |
||
81 | <!-- ========= END OF TOP NAVBAR ========= --> |
||
82 | |||
83 | <HR> |
||
84 | <!-- ======== START OF CLASS DATA ======== --> |
||
85 | <H2> |
||
86 | <FONT SIZE="-1"> |
||
87 | net.sf.antcontrib.platform</FONT> |
||
88 | <BR> |
||
89 | Class ShellScriptTask</H2> |
||
90 | <PRE> |
||
91 | java.lang.Object |
||
92 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.apache.tools.ant.ProjectComponent |
||
93 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.apache.tools.ant.Task |
||
94 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.apache.tools.ant.taskdefs.ExecTask |
||
95 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.antcontrib.platform.ShellScriptTask</B> |
||
96 | </PRE> |
||
97 | <HR> |
||
98 | <DL> |
||
99 | <DT><PRE>public class <B>ShellScriptTask</B><DT>extends org.apache.tools.ant.taskdefs.ExecTask</DL> |
||
100 | </PRE> |
||
101 | |||
102 | <P> |
||
103 | A generic front-end for passing "shell lines" to any application which can |
||
104 | accept a filename containing script input (bash, perl, csh, tcsh, etc.). |
||
105 | see antcontrib doc for useage |
||
106 | <P> |
||
107 | |||
108 | <P> |
||
109 | <DL> |
||
110 | <DT><B>Author:</B></DT> |
||
111 | <DD>stephan beal, peter reilly</DD> |
||
112 | </DL> |
||
113 | <HR> |
||
114 | |||
115 | <P> |
||
116 | <!-- =========== FIELD SUMMARY =========== --> |
||
117 | |||
118 | <A NAME="field_summary"><!-- --></A> |
||
119 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
120 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
121 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
122 | <B>Field Summary</B></FONT></TH> |
||
123 | </TR> |
||
124 | </TABLE> |
||
125 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.taskdefs.ExecTask"><!-- --></A> |
||
126 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
127 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
128 | <TH ALIGN="left"><B>Fields inherited from class org.apache.tools.ant.taskdefs.ExecTask</B></TH> |
||
129 | </TR> |
||
130 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
131 | <TD><CODE>cmdl, failOnError, newEnvironment, redirector, redirectorElement</CODE></TD> |
||
132 | </TR> |
||
133 | </TABLE> |
||
134 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A> |
||
135 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
136 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
137 | <TH ALIGN="left"><B>Fields inherited from class org.apache.tools.ant.Task</B></TH> |
||
138 | </TR> |
||
139 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
140 | <TD><CODE>description, location, target, taskName, taskType, wrapper</CODE></TD> |
||
141 | </TR> |
||
142 | </TABLE> |
||
143 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A> |
||
144 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
145 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
146 | <TH ALIGN="left"><B>Fields inherited from class org.apache.tools.ant.ProjectComponent</B></TH> |
||
147 | </TR> |
||
148 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
149 | <TD><CODE>project</CODE></TD> |
||
150 | </TR> |
||
151 | </TABLE> |
||
152 | |
||
153 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
154 | |||
155 | <A NAME="constructor_summary"><!-- --></A> |
||
156 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
157 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
158 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
159 | <B>Constructor Summary</B></FONT></TH> |
||
160 | </TR> |
||
161 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
162 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#ShellScriptTask()">ShellScriptTask</A></B>()</CODE> |
||
163 | |||
164 | <BR> |
||
165 | </TD> |
||
166 | </TR> |
||
167 | </TABLE> |
||
168 | |
||
169 | <!-- ========== METHOD SUMMARY =========== --> |
||
170 | |||
171 | <A NAME="method_summary"><!-- --></A> |
||
172 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
173 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
174 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
175 | <B>Method Summary</B></FONT></TH> |
||
176 | </TR> |
||
177 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
178 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
179 | <CODE> void</CODE></FONT></TD> |
||
180 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#addText(java.lang.String)">addText</A></B>(java.lang.String s)</CODE> |
||
181 | |||
182 | <BR> |
||
183 | Adds s to the lines of script code.</TD> |
||
184 | </TR> |
||
185 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
186 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
187 | <CODE> void</CODE></FONT></TD> |
||
188 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#execute()">execute</A></B>()</CODE> |
||
189 | |||
190 | <BR> |
||
191 | execute the task</TD> |
||
192 | </TR> |
||
193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
195 | <CODE> void</CODE></FONT></TD> |
||
196 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#setCommand(org.apache.tools.ant.types.Commandline)">setCommand</A></B>(org.apache.tools.ant.types.Commandline notUsed)</CODE> |
||
197 | |||
198 | <BR> |
||
199 | Disallow the command attribute of parent class ExecTask.</TD> |
||
200 | </TR> |
||
201 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
203 | <CODE> void</CODE></FONT></TD> |
||
204 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#setExecutable(java.lang.String)">setExecutable</A></B>(java.lang.String shell)</CODE> |
||
205 | |||
206 | <BR> |
||
207 | Sets the shell used to run the script.</TD> |
||
208 | </TR> |
||
209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
211 | <CODE> void</CODE></FONT></TD> |
||
212 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#setInputString(java.lang.String)">setInputString</A></B>(java.lang.String s)</CODE> |
||
213 | |||
214 | <BR> |
||
215 | Sets script code to s.</TD> |
||
216 | </TR> |
||
217 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
218 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
219 | <CODE> void</CODE></FONT></TD> |
||
220 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#setShell(java.lang.String)">setShell</A></B>(java.lang.String shell)</CODE> |
||
221 | |||
222 | <BR> |
||
223 | Sets the shell used to run the script.</TD> |
||
224 | </TR> |
||
225 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
226 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
227 | <CODE> void</CODE></FONT></TD> |
||
228 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#setTmpSuffix(java.lang.String)">setTmpSuffix</A></B>(java.lang.String tmpSuffix)</CODE> |
||
229 | |||
230 | <BR> |
||
231 | Sets the suffix for the tmp file used to |
||
232 | contain the script.</TD> |
||
233 | </TR> |
||
234 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
235 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
236 | <CODE>protected void</CODE></FONT></TD> |
||
237 | <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/platform/ShellScriptTask.html#writeScript()">writeScript</A></B>()</CODE> |
||
238 | |||
239 | <BR> |
||
240 | Writes the script lines to a temp file.</TD> |
||
241 | </TR> |
||
242 | </TABLE> |
||
243 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.taskdefs.ExecTask"><!-- --></A> |
||
244 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
245 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
246 | <TH ALIGN="left"><B>Methods inherited from class org.apache.tools.ant.taskdefs.ExecTask</B></TH> |
||
247 | </TR> |
||
248 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
249 | <TD><CODE>addConfiguredRedirector, addEnv, checkConfiguration, createArg, createHandler, createWatchdog, getResolveExecutable, isValidOs, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExec, runExecute, setAppend, setDir, setError, setErrorProperty, setFailIfExecutionFails, setFailonerror, setInput, setLogError, setNewenvironment, setOs, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setupRedirector, setVMLauncher</CODE></TD> |
||
250 | </TR> |
||
251 | </TABLE> |
||
252 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A> |
||
253 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
254 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
255 | <TH ALIGN="left"><B>Methods inherited from class org.apache.tools.ant.Task</B></TH> |
||
256 | </TR> |
||
257 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
258 | <TD><CODE>getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType</CODE></TD> |
||
259 | </TR> |
||
260 | </TABLE> |
||
261 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A> |
||
262 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
263 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
264 | <TH ALIGN="left"><B>Methods inherited from class org.apache.tools.ant.ProjectComponent</B></TH> |
||
265 | </TR> |
||
266 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
267 | <TD><CODE>getProject, setProject</CODE></TD> |
||
268 | </TR> |
||
269 | </TABLE> |
||
270 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
271 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
272 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
273 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
274 | </TR> |
||
275 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
276 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
||
277 | </TR> |
||
278 | </TABLE> |
||
279 | |
||
280 | <P> |
||
281 | |||
282 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
283 | |||
284 | <A NAME="constructor_detail"><!-- --></A> |
||
285 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
286 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
287 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
288 | <B>Constructor Detail</B></FONT></TH> |
||
289 | </TR> |
||
290 | </TABLE> |
||
291 | |||
292 | <A NAME="ShellScriptTask()"><!-- --></A><H3> |
||
293 | ShellScriptTask</H3> |
||
294 | <PRE> |
||
295 | public <B>ShellScriptTask</B>()</PRE> |
||
296 | <DL> |
||
297 | </DL> |
||
298 | |||
299 | <!-- ============ METHOD DETAIL ========== --> |
||
300 | |||
301 | <A NAME="method_detail"><!-- --></A> |
||
302 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
303 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
304 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
305 | <B>Method Detail</B></FONT></TH> |
||
306 | </TR> |
||
307 | </TABLE> |
||
308 | |||
309 | <A NAME="addText(java.lang.String)"><!-- --></A><H3> |
||
310 | addText</H3> |
||
311 | <PRE> |
||
312 | public void <B>addText</B>(java.lang.String s)</PRE> |
||
313 | <DL> |
||
314 | <DD>Adds s to the lines of script code. |
||
315 | <P> |
||
316 | <DD><DL> |
||
317 | </DL> |
||
318 | </DD> |
||
319 | </DL> |
||
320 | <HR> |
||
321 | |||
322 | <A NAME="setInputString(java.lang.String)"><!-- --></A><H3> |
||
323 | setInputString</H3> |
||
324 | <PRE> |
||
325 | public void <B>setInputString</B>(java.lang.String s)</PRE> |
||
326 | <DL> |
||
327 | <DD>Sets script code to s. |
||
328 | <P> |
||
329 | <DD><DL> |
||
330 | <DT><B>Overrides:</B><DD><CODE>setInputString</CODE> in class <CODE>org.apache.tools.ant.taskdefs.ExecTask</CODE></DL> |
||
331 | </DD> |
||
332 | <DD><DL> |
||
333 | </DL> |
||
334 | </DD> |
||
335 | </DL> |
||
336 | <HR> |
||
337 | |||
338 | <A NAME="setShell(java.lang.String)"><!-- --></A><H3> |
||
339 | setShell</H3> |
||
340 | <PRE> |
||
341 | public void <B>setShell</B>(java.lang.String shell)</PRE> |
||
342 | <DL> |
||
343 | <DD>Sets the shell used to run the script. |
||
344 | <P> |
||
345 | <DD><DL> |
||
346 | <DT><B>Parameters:</B><DD><CODE>shell</CODE> - the shell to use (bash is default)</DL> |
||
347 | </DD> |
||
348 | </DL> |
||
349 | <HR> |
||
350 | |||
351 | <A NAME="setExecutable(java.lang.String)"><!-- --></A><H3> |
||
352 | setExecutable</H3> |
||
353 | <PRE> |
||
354 | public void <B>setExecutable</B>(java.lang.String shell)</PRE> |
||
355 | <DL> |
||
356 | <DD>Sets the shell used to run the script. |
||
357 | <P> |
||
358 | <DD><DL> |
||
359 | <DT><B>Overrides:</B><DD><CODE>setExecutable</CODE> in class <CODE>org.apache.tools.ant.taskdefs.ExecTask</CODE></DL> |
||
360 | </DD> |
||
361 | <DD><DL> |
||
362 | <DT><B>Parameters:</B><DD><CODE>shell</CODE> - the shell to use (bash is default)</DL> |
||
363 | </DD> |
||
364 | </DL> |
||
365 | <HR> |
||
366 | |||
367 | <A NAME="setCommand(org.apache.tools.ant.types.Commandline)"><!-- --></A><H3> |
||
368 | setCommand</H3> |
||
369 | <PRE> |
||
370 | public void <B>setCommand</B>(org.apache.tools.ant.types.Commandline notUsed)</PRE> |
||
371 | <DL> |
||
372 | <DD>Disallow the command attribute of parent class ExecTask. |
||
373 | ant.attribute ignore="true" |
||
374 | <P> |
||
375 | <DD><DL> |
||
376 | <DT><B>Overrides:</B><DD><CODE>setCommand</CODE> in class <CODE>org.apache.tools.ant.taskdefs.ExecTask</CODE></DL> |
||
377 | </DD> |
||
378 | <DD><DL> |
||
379 | <DT><B>Parameters:</B><DD><CODE>notUsed</CODE> - not used |
||
380 | <DT><B>Throws:</B> |
||
381 | <DD><CODE>org.apache.tools.ant.BuildException</CODE> - if called</DL> |
||
382 | </DD> |
||
383 | </DL> |
||
384 | <HR> |
||
385 | |||
386 | <A NAME="setTmpSuffix(java.lang.String)"><!-- --></A><H3> |
||
387 | setTmpSuffix</H3> |
||
388 | <PRE> |
||
389 | public void <B>setTmpSuffix</B>(java.lang.String tmpSuffix)</PRE> |
||
390 | <DL> |
||
391 | <DD>Sets the suffix for the tmp file used to |
||
392 | contain the script. |
||
393 | This is useful for cmd.exe as one can |
||
394 | use cmd /c call x.bat |
||
395 | <P> |
||
396 | <DD><DL> |
||
397 | <DT><B>Parameters:</B><DD><CODE>tmpSuffix</CODE> - the suffix to use</DL> |
||
398 | </DD> |
||
399 | </DL> |
||
400 | <HR> |
||
401 | |||
402 | <A NAME="execute()"><!-- --></A><H3> |
||
403 | execute</H3> |
||
404 | <PRE> |
||
405 | public void <B>execute</B>() |
||
406 | throws org.apache.tools.ant.BuildException</PRE> |
||
407 | <DL> |
||
408 | <DD>execute the task |
||
409 | <P> |
||
410 | <DD><DL> |
||
411 | <DT><B>Overrides:</B><DD><CODE>execute</CODE> in class <CODE>org.apache.tools.ant.taskdefs.ExecTask</CODE></DL> |
||
412 | </DD> |
||
413 | <DD><DL> |
||
414 | |||
415 | <DT><B>Throws:</B> |
||
416 | <DD><CODE>org.apache.tools.ant.BuildException</CODE></DL> |
||
417 | </DD> |
||
418 | </DL> |
||
419 | <HR> |
||
420 | |||
421 | <A NAME="writeScript()"><!-- --></A><H3> |
||
422 | writeScript</H3> |
||
423 | <PRE> |
||
424 | protected void <B>writeScript</B>() |
||
425 | throws org.apache.tools.ant.BuildException</PRE> |
||
426 | <DL> |
||
427 | <DD>Writes the script lines to a temp file. |
||
428 | <P> |
||
429 | <DD><DL> |
||
430 | |||
431 | <DT><B>Throws:</B> |
||
432 | <DD><CODE>org.apache.tools.ant.BuildException</CODE></DL> |
||
433 | </DD> |
||
434 | </DL> |
||
435 | <!-- ========= END OF CLASS DATA ========= --> |
||
436 | <HR> |
||
437 | |||
438 | |||
439 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
440 | <A NAME="navbar_bottom"><!-- --></A> |
||
441 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
442 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
443 | <TR> |
||
444 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
445 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
446 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
447 | <TR ALIGN="center" VALIGN="top"> |
||
448 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
449 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
450 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
451 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
452 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
453 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
454 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
455 | </TR> |
||
456 | </TABLE> |
||
457 | </TD> |
||
458 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
459 | </EM> |
||
460 | </TD> |
||
461 | </TR> |
||
462 | |||
463 | <TR> |
||
464 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
465 | <A HREF="../../../../net/sf/antcontrib/platform/Platform.html" title="class in net.sf.antcontrib.platform"><B>PREV CLASS</B></A> |
||
466 | NEXT CLASS</FONT></TD> |
||
467 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
468 | <A HREF="../../../../index.html?net/sf/antcontrib/platform/ShellScriptTask.html" target="_top"><B>FRAMES</B></A> |
||
469 | <A HREF="ShellScriptTask.html" target="_top"><B>NO FRAMES</B></A> |
||
470 | <SCRIPT type="text/javascript"> |
||
471 | <!-- |
||
472 | if(window==top) { |
||
473 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
474 | } |
||
475 | //--> |
||
476 | </SCRIPT> |
||
477 | <NOSCRIPT> |
||
478 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
479 | </NOSCRIPT> |
||
480 | |||
481 | |||
482 | </FONT></TD> |
||
483 | </TR> |
||
484 | <TR> |
||
485 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
486 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.taskdefs.ExecTask">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
487 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
488 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
489 | </TR> |
||
490 | </TABLE> |
||
491 | <A NAME="skip-navbar_bottom"></A> |
||
492 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
493 | |||
494 | <HR> |
||
495 | |||
496 | </BODY> |
||
497 | </HTML> |