From 3629ace7b026df2c60620e46320376dbfb6dbda2 Mon Sep 17 00:00:00 2001 From: Diane Holt Date: Wed, 13 Mar 2002 17:02:35 +0000 Subject: [PATCH] Clarify the shell-script-running stuff a bit. (faq.{xml,html}) Add needed jars for to lib deps table. (install.html) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271840 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 12 ++++++++---- docs/manual/install.html | 5 +++++ xdocs/faq.xml | 12 ++++++++---- 3 files changed, 21 insertions(+), 8 deletions(-) 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