Author: peterreilly Date: Sun Oct 22 14:31:41 2006 New Revision: 466878 URL: http://svn.apache.org/viewvc?view=rev&rev=466878 Log: bugzilla: 40803, doc use of cmd.exe /c for bat files better
Modified: ant/core/trunk/docs/manual/CoreTasks/exec.html Modified: ant/core/trunk/docs/manual/CoreTasks/exec.html URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/exec.html?view=diff&rev=466878&r1=466877&r2=466878 ============================================================================== --- ant/core/trunk/docs/manual/CoreTasks/exec.html (original) +++ ant/core/trunk/docs/manual/CoreTasks/exec.html Sun Oct 22 14:31:41 2006 @@ -45,8 +45,22 @@ the exact semantics of the call. In particular, if you do not put a file extension on the executable, only ".EXE" files are looked for, not ".COM", ".CMD" or other file types listed in the environment variable PATHEXT. That is only used by the shell. - </p> + <p> + Note that <em>.bat</em> files cannot in general by executed directly. + One normally needs to execute the command shell executable <code>cmd</code> + using the <code>/c</code> switch. + </p> + <blockquote> +<pre> +<target name="help"> + <exec executable="cmd"> + <arg value="/c"/> + <arg value="ant.bat"/> + <arg value="-p"/> + </exec> +</target> +</pre></blockquote> <h4>Cygwin Users</h4> <p>In general the <code><exec></code> task will not understand paths such as /bin/sh for --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]