Execute the command shell instead, then pass the batch file or
- shell script as a single command, using the /c or
+
On native Unix systems, you should be able to run shell scripts
+ directly. On systems running a Unix-type shell (for example, Cygwin
+ on Windows) execute the (command) shell instead - cmd
+ for batch files, sh for shell scripts - then pass the
+ batch file or shell script (plus any arguments to the script)
+ as a single command, using the /c or
-c switch, respectively. See
the above section
for example <exec> tasks
- executing sh. On Windows, use something like:
+ executing sh. For batch files, use something like:
diff --git a/xdocs/faq.xml b/xdocs/faq.xml
index 6f233bcea..a6205a5a5 100644
--- a/xdocs/faq.xml
+++ b/xdocs/faq.xml
@@ -330,14 +330,18 @@ shell-prompt> cat < foo
How do I execute a batch file or shell script from Ant?
-
Execute the command shell instead, then pass the batch file or
- shell script as a single command, using the /c or
+
On native Unix systems, you should be able to run shell scripts
+ directly. On systems running a Unix-type shell (for example, Cygwin
+ on Windows) execute the (command) shell instead - cmd
+ for batch files, sh for shell scripts - then pass the
+ batch file or shell script (plus any arguments to the script)
+ as a single command, using the /c or
-c switch, respectively. See
the above section
for example <exec> tasks
- executing sh. On Windows, use something like:
+ executing sh. For batch files, use something like:
+
]]>