PR: 13524 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273949 13f79535-47bb-0310-9956-ffa450edef68master
@@ -12,6 +12,13 @@ | |||||
<p>Executes a system command. When the <i>os</i> attribute is specified, then | <p>Executes a system command. When the <i>os</i> attribute is specified, then | ||||
the command is only executed when Ant is run on one of the specified operating | the command is only executed when Ant is run on one of the specified operating | ||||
systems.</p> | systems.</p> | ||||
<h4>Cygwin Users</h4> | |||||
<p>In general the <exec> task will not userstand paths such as /bin/sh for | |||||
the executable parameter. This is because the Java VM in which Ant is running is a | |||||
Windows executable and is not aware of Cygwin conventions. | |||||
</p> | |||||
<h3>Parameters</h3> | <h3>Parameters</h3> | ||||
<table border="1" cellpadding="2" cellspacing="0"> | <table border="1" cellpadding="2" cellspacing="0"> | ||||
<tr> | <tr> | ||||
@@ -95,21 +95,34 @@ file there. This directory will be known as ANT_HOME. | |||||
<table width="80%"> | <table width="80%"> | ||||
<tr> | <tr> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<b>Windows 95 and Windows 98 Note:</b> | |||||
<b>Windows 95, Windows 98 & Windows ME Note:</b> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="5%"> </td> | <td width="5%"> </td> | ||||
<td><i> | <td><i> | ||||
On these systems, the script used to launch Ant will have | On these systems, the script used to launch Ant will have | ||||
problems if ANT_HOME is a long filename. This is due to | |||||
problems if ANT_HOME is a long filename (i.e. a filename which is not | |||||
of the format known as "8.3"). This is due to | |||||
limitations in the OS's handling of the <code>"for"</code> | limitations in the OS's handling of the <code>"for"</code> | ||||
batch-file statement. It is recommended, therefore, that Ant be | batch-file statement. It is recommended, therefore, that Ant be | ||||
installed in a <b>short</b> path, such as C:\Ant.</i> | |||||
installed in a <b>short</b>, 8.3 path, such as C:\Ant. </i> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="5%"> </td> | |||||
<td> | |||||
<p>On these systems you will also need to configure more environment | |||||
space to cater for the environment variables used in the Ant lauch script. | |||||
To do this, you will need to add or update the following line in | |||||
the <code>config.sys</code> file | |||||
</p> | |||||
<p><code>shell=c:\command.com c:\ /p /e:32768</code></p> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<h3>Setup</h3> | |||||
<p> | <p> | ||||
Before you can run ant there is some additional set up you | Before you can run ant there is some additional set up you | ||||
will need to do:</p> | will need to do:</p> | ||||
@@ -160,6 +160,18 @@ set):</p> | |||||
to find, even if the file is called <code>build.xml</code>. | to find, even if the file is called <code>build.xml</code>. | ||||
</ul> | </ul> | ||||
<h2><a name="cygwin">Cygwin Users</a></h2> | |||||
<p>The Unix launch script that come with Ant works correctly with Cygwin. You | |||||
should not have any problems launching Ant form the Cygwin shell. It is important | |||||
to note however, that once Ant is runing it is part of the JDK which operates as | |||||
a native Windows application. The JDK is not a Cygwin executable, and it therefore | |||||
has no knowledge of the Cygwin paths, etc. In particular when using the <exec> | |||||
task, executable names such as "/bin/sh" will not work, even though these | |||||
work from the Cygwin shell from which Ant was launched. You can use an executable | |||||
name such as "sh" and rely on that command being available in the Windows | |||||
path. | |||||
</p> | |||||
<h2><a name="viajava">Running Ant via Java</a></h2> | <h2><a name="viajava">Running Ant via Java</a></h2> | ||||
<p>If you have installed Ant in the do-it-yourself way, Ant can be started | <p>If you have installed Ant in the do-it-yourself way, Ant can be started | ||||
with:</p> | with:</p> | ||||
@@ -15,6 +15,7 @@ | |||||
<a href="running.html#options">Options</a><br> | <a href="running.html#options">Options</a><br> | ||||
<a href="running.html#files">Files</a><br> | <a href="running.html#files">Files</a><br> | ||||
<a href="running.html#envvars">Environment Variables</a><br> | <a href="running.html#envvars">Environment Variables</a><br> | ||||
<a href="running.html#cygwin">Cygwin Users</a><br> | |||||
<a href="running.html#viajava">Running Ant via Java</a><br> | <a href="running.html#viajava">Running Ant via Java</a><br> | ||||
</body> | </body> | ||||