ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r809463 - /ant/core/trunk/docs/manual/CoreTasks/exec.html
Date Mon, 31 Aug 2009 05:27:02 GMT
Author: jhm
Date: Mon Aug 31 05:27:02 2009
New Revision: 809463

URL: http://svn.apache.org/viewvc?rev=809463&view=rev
Log:
Hints for handling <exec> errors 'CreateProcess error=2' on Windows.

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?rev=809463&r1=809462&r2=809463&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/exec.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/exec.html Mon Aug 31 05:27:02 2009
@@ -72,6 +72,15 @@
 &lt;/target&gt;
 </pre></blockquote>
 
+<p>A common problem is not having the executable on the PATH. In case you get an error
+message <tt>Cannot run program "...":CreateProcess error=2. The system cannot find
+the path specified.</tt> have a look at your PATH variable. Just type the command directly
on
+the command line and if Windows find it, Ant should do it too. (Otherwise ask on the user
mailinglist for help.) If Windows can not execute the program add the directory of the programm
+to the PATH (<tt>set PATH=%PATH%;dirOfProgram</tt>) or specify the absolute path
in the
+<tt>executable</tt> attribute in your buildfile.
+</p>
+
+
 <h4>Cygwin Users</h4>
 <p>The <code>&lt;exec&gt;</code> task will not understand paths
such as /bin/sh
 for the executable parameter.  This is because the Java VM in which Ant is



Mime
View raw message