jhm 2003/09/06 08:48:01
Modified: docs/manual/CoreTasks exec.html
Log:
A little example for spawn attribute.
Revision Changes Path
1.33 +14 -0 ant/docs/manual/CoreTasks/exec.html
Index: exec.html
===================================================================
RCS file: /home/cvs/ant/docs/manual/CoreTasks/exec.html,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- exec.html 2 Sep 2003 16:24:02 -0000 1.32
+++ exec.html 6 Sep 2003 15:48:01 -0000 1.33
@@ -253,6 +253,7 @@
</exec>
</pre></blockquote>
<p>starts <code>emacs</code> on display 1 of the X Window System.</p>
+
<blockquote><pre>
<exec ... >
<env key="PATH"
path="${java.library.path}:${basedir}/bin"/>
@@ -260,6 +261,19 @@
</pre></blockquote>
<p>adds <code>${basedir}/bin</code> to the <code>PATH</code> of the
system command.</p>
+
+<blockquote><pre>
+<property name="browser" location="C:/Programme/Internet
Explorer/iexplore.exe"/>
+<property name="file" location="ant/docs/manual/index.html"/>
+
+<exec executable="${browser}" spawn="true">
+ <arg value="${file}"/>
+</exec>
+</pre></blockquote>
+<p>Starts the <i>${browser}</i> with the specified <i>${file}</i> and end the
+ant process. The browser will let be open.</p>
+
+
<p><b>Note:</b> Although it may work for you to specify arguments using
a simple arg-element and separate them by spaces it may fail if you switch to
a newer version of the JDK. JDK < 1.2 will pass these as separate
arguments
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]