From e808c13ed662b5239a5473465389c0db37ffe49b Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Sun, 22 Oct 2006 21:31:41 +0000 Subject: [PATCH] bugzilla: 40803, doc use of cmd.exe /c for bat files better git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466878 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/exec.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/manual/CoreTasks/exec.html b/docs/manual/CoreTasks/exec.html index c2f337a44..e2aef8b05 100644 --- a/docs/manual/CoreTasks/exec.html +++ b/docs/manual/CoreTasks/exec.html @@ -45,8 +45,22 @@ apparently calls +

+ Note that .bat files cannot in general by executed directly. + One normally needs to execute the command shell executable cmd + using the /c switch. +

+
+
+<target name="help">
+  <exec executable="cmd">
+    <arg value="/c"/>
+    <arg value="ant.bat"/>
+    <arg value="-p"/>
+  </exec>
+</target>
+

Cygwin Users

In general the <exec> task will not understand paths such as /bin/sh for