Browse Source

minor doc updates

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277615 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
17b08e6f01
3 changed files with 16 additions and 21 deletions
  1. +2
    -1
      docs/manual/CoreTasks/conditions.html
  2. +12
    -16
      docs/manual/CoreTasks/exec.html
  3. +2
    -4
      docs/manual/CoreTasks/unzip.html

+ 2
- 1
docs/manual/CoreTasks/conditions.html View File

@@ -340,7 +340,8 @@ that is "true","yes", or "on"</p>
If the name of the
signature is passed, the file is checked for presence of that
particular signature; otherwise the file is checked for the
existence of any signature
existence of any signature. It does not perform rigorous
signature validation; it only looks for the presence of a signature.
</p>
<p>
This condition was added in Apache Ant 1.7.


+ 12
- 16
docs/manual/CoreTasks/exec.html View File

@@ -1,4 +1,4 @@
html>
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
@@ -236,7 +236,7 @@ or the task will fail as follows:
</tr>
<tr>
<td valign="top">searchpath</td>
<td valign="top">When this attribute is true nested, then
<td valign="top">When this attribute is true, then
system path environment variables will
be searched when resolving the location
of the executable. <em>since Ant 1.6.3</em></td>
@@ -312,10 +312,11 @@ is set to <code>false</code>. You can use that to run a program if it exists, bu
otherwise do nothing.
<p>
What do those error codes mean? Well, they are OS dependent. On Windows
boxes you have to look in include\error.h in your windows compiler or wine files;
error code 2 means 'no such program', which usually means it is not on the path.
Any time you see such an error from any ant task, it is usually not an ant bug,
but some configuration problem on your machine.
boxes you have to look at
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes__0-499_.asp">
the documentation</a>; error code 2 means 'no such program', which usually means
it is not on the path. Any time you see such an error from any Ant task, it is
usually not an Ant bug, but some configuration problem on your machine.

<h3>Examples</h3>
<blockquote><pre>
@@ -335,7 +336,7 @@ but some configuration problem on your machine.
system command.</p>

<blockquote><pre>
&lt;property name="browser" location="C:/Programme/Internet Explorer/iexplore.exe"/&gt;
&lt;property name="browser" location="C:/Program Files/Internet Explorer/iexplore.exe"/&gt;
&lt;property name="file" location="ant/docs/manual/index.html"/&gt;

&lt;exec executable="${browser}" spawn="true"&gt;
@@ -343,7 +344,7 @@ system command.</p>
&lt;/exec&gt;
</pre></blockquote>
<p>Starts the <i>${browser}</i> with the specified <i>${file}</i> and end the
ant process. The browser will let be open.</p>
Ant process. The browser will remain.</p>

<blockquote><pre>
&lt;exec executable=&quot;cat&quot;&gt;
@@ -367,14 +368,9 @@ in a property of the same name. Similarly, error output is sent to
a file and a property, both named &quot;redirector.err&quot;.


<p><b>Note:</b> Although it may work for you to specify arguments using
a simple arg-element and separate them by spaces it may fail if you switch to
a newer version of the JDK. JDK &lt; 1.2 will pass these as separate arguments
to the program you are calling, JDK &gt;= 1.2 will pass them as a single
argument and cause most calls to fail.</p>
<p><b>Note2:</b> If you are using Ant on Windows and a new DOS-Window pops up
for every command which is executed this may be a problem of the JDK you are using.
This problem may occur with all JDK's &lt; 1.2.</p>
<p><b>Note:</b> do not try to specify arguments using
a simple arg-element and separate them by spaces. This results in
only a single argument containing the entire string.</p>
<p>
<b>Timeouts: </b> If a timeout is specified, when it is reached the
sub process is killed and a message printed to the log. The return


+ 2
- 4
docs/manual/CoreTasks/unzip.html View File

@@ -9,9 +9,7 @@

<h2><a name="unzip">Unjar/Untar/Unwar/Unzip</a></h2>
<h3>Description</h3>
<p>Unzips a zip-, war-, tar- or jarfile.</p>
<p>For JDK 1.1 &quot;last modified time&quot; field is set to current time instead of being
carried from the archive file.</p>
<p>Unzips a zip-, war-, or jar file.</p>
<p><a href="../CoreTypes/patternset.html">PatternSet</a>s are used to select files to extract
<I>from</I> the archive. If no patternset is used, all files are extracted.
</p>
@@ -116,7 +114,7 @@ to perform unarchival upon.
</pre></p>
</blockquote>
<hr>
<p align="center">Copyright &copy; 2000-2004 The Apache Software Foundation. All rights
<p align="center">Copyright &copy; 2000-2005 The Apache Software Foundation. All rights
Reserved.</p>

</body>


Loading…
Cancel
Save