diff --git a/docs/faq.html b/docs/faq.html index db9402bf4..38345216b 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -895,12 +895,16 @@ shell-prompt> cat < foo
-

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:

@@ -911,7 +915,7 @@ shell-prompt> cat < foo diff --git a/docs/manual/install.html b/docs/manual/install.html index dd4e03896..3cb8ff92d 100644 --- a/docs/manual/install.html +++ b/docs/manual/install.html @@ -287,6 +287,11 @@ Installing Ant / Optional Tasks section above.

+ + + + + 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:

+ ]]>
-<exec dir="." executable="cmd.exe" os="Windows NT">
+<exec dir="." executable="cmd" os="Windows NT">
   <arg line="/c test.bat"/>
 </exec>
 
junit tasks www.junit.org
xerces.jar and xalan.jarjunitreport taskxml.apache.org
stylebook.jar stylebook task