Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 75456 invoked from network); 13 Mar 2002 17:02:54 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Mar 2002 17:02:54 -0000 Received: (qmail 16710 invoked by uid 97); 13 Mar 2002 17:02:53 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 16691 invoked by uid 97); 13 Mar 2002 17:02:53 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 16668 invoked by uid 97); 13 Mar 2002 17:02:52 -0000 Date: 13 Mar 2002 17:02:35 -0000 Message-ID: <20020313170235.21712.qmail@icarus.apache.org> From: holtdl@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/docs/manual install.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N holtdl 02/03/13 09:02:35 Modified: xdocs faq.xml docs faq.html docs/manual install.html Log: Clarify the shell-script-running stuff a bit. (faq.{xml,html}) Add needed jars for to lib deps table. (install.html) Revision Changes Path 1.15 +8 -4 jakarta-ant/xdocs/faq.xml Index: faq.xml =================================================================== RCS file: /home/cvs/jakarta-ant/xdocs/faq.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- faq.xml 12 Mar 2002 21:23:13 -0000 1.14 +++ faq.xml 13 Mar 2002 17:02:35 -0000 1.15 @@ -330,14 +330,18 @@ 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:

+ ]]> 1.23 +8 -4 jakarta-ant/docs/faq.html Index: faq.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/faq.html,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- faq.html 12 Mar 2002 21:23:13 -0000 1.22 +++ faq.html 13 Mar 2002 17:02:35 -0000 1.23 @@ -895,12 +895,16 @@
-

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 @@ 1.27 +5 -0 jakarta-ant/docs/manual/install.html Index: install.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/install.html,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- install.html 7 Mar 2002 03:13:04 -0000 1.26 +++ install.html 13 Mar 2002 17:02:35 -0000 1.27 @@ -288,6 +288,11 @@ + + + + + -- To unsubscribe, e-mail: For additional commands, e-mail:
  -<exec dir="." executable="cmd.exe" os="Windows NT">
  +<exec dir="." executable="cmd" os="Windows NT">
     <arg line="/c test.bat"/>
   </exec>
   
www.junit.org
xerces.jar and xalan.jarjunitreport taskxml.apache.org
stylebook.jar stylebook task CVS repository of xml.apache.org