Browse Source

Removed <keysubst> and <expand> which have been deprecated in 1.1.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267916 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
0679f04a82
3 changed files with 33 additions and 79 deletions
  1. +2
    -0
      WHATSNEW
  2. +31
    -77
      docs/index.html
  3. +0
    -2
      src/main/org/apache/tools/ant/taskdefs/defaults.properties

+ 2
- 0
WHATSNEW View File

@@ -6,6 +6,8 @@ Changes that could break older environments:
* copying of support files in <javac> has been removed - as well as
the filtering attribute.

* the <expand> and <keysubst> tasks have been removed.

* the command line switches _not_ starting with - have been removed.

* Path and EnumeratedAttribute have been moved from


+ 31
- 77
docs/index.html View File

@@ -25,7 +25,7 @@
<li>Dave Walend (<a href="mailto:dwalend@cs.tufts.edu">dwalend@cs.tufts.edu</a>)</li>
</ul>

<p>Version 1.2 - 2000/08/09</p>
<p>Version 1.2 - 2000/08/10</p>

<hr>
<h2>Table of Contents</h2>
@@ -617,7 +617,6 @@ If you do not want these default excludes applied, you may disable them with the
<li><a href="#deltree">Deltree</a></li>
<li><a href="#echo">Echo</a></li>
<li><a href="#exec">Exec</a></li>
<li><a href="#unzip">Expand</a></li>
<li><a href="#filter">Filter</a></li>
<li><a href="#fixcrlf">FixCRLF</a></li>
<li><a href="#genkey">GenKey</a></li>
@@ -628,7 +627,6 @@ If you do not want these default excludes applied, you may disable them with the
<li><a href="#java">Java</a></li>
<li><a href="#javac">Javac</a></li>
<li><a href="#javadoc">Javadoc/Javadoc2</a></li>
<li><a href="#keysubst">KeySubst</a></li>
<li><a href="#mkdir">Mkdir</a></li>
<li><a href="#patch">Patch</a></li>
<li><a href="#property">Property</a></li>
@@ -1278,38 +1276,6 @@ system command via nested <code>&lt;env&gt;</code> elements.</p>
<p>adds <code>${basedir}/bin</code> to the <code>PATH</code> of the
system command.</p>
<hr>
<h2><a name="unzip">Expand/Unzip/Unjar</a></h2>
<h3>Description</h3>
<p>Unzips a zip- or jarfile.</p>
<p>For JDK 1.1 "last modified time" field is set to current time instead of being
carried from zipfile.</p>
<p>File permissions will not be restored on extracted files.</a>
<p>DEPRECATION: the expand task simply points to the unzip task and it's
there for back compatibility reasons.</p>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td valign="top"><b>Attribute</b></td>
<td valign="top"><b>Description</b></td>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">src</td>
<td valign="top">zipfile to expand.</td>
<td align="center" valign="top">Yes</td>
</tr>
<tr>
<td valign="top">dest</td>
<td valign="top">directory where to store the expanded files.</td>
<td align="center" valign="top">Yes</td>
</tr>
</table>
<h3>Examples</h3>
<blockquote>
<p><code>&lt;unzip src=&quot;${tomcat_src}/tools-src.zip&quot; dest=&quot;${tools.home}&quot;
/&gt;</code></p>
</blockquote>
<hr>
<h2><a name="filter">Filter</a></h2>
<h3>Description</h3>
<p>Sets a token filter for this project. Token filters are used by all tasks
@@ -2511,48 +2477,6 @@ respectively.</p>
&lt;link href=&quot;http://developer.java.sun.com/developer/products/xml/docs/api/&quot;/&gt;
&lt/javadoc&gt;</pre>
<hr>
<h2><a name="keysubst">KeySubst</a></h2>
<h3>Description</h3>
<p>Performs keyword substitution in the source file, and writes the result to
the destination file.</p>
<p>Keys in the source file are of the form ${keyname}. The <i>keys</i> attribute
contains key/value pairs. When a key is found in the <i>keys</i> attribute, then
&quot;${keyname}&quot; is replaced by the corresponding value.</p>
<p>The <i>keys</i> attribute is of the form
&quot;name1=value1*name2=value2*name3=value3&quot;. The '*' is called the
separator, which might we changed with the <i>sep</i> attribute.</p>
<p>Note: the source file and destination file may not be the same.</p>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td valign="top"><b>Attribute</b></td>
<td valign="top"><b>Description</b></td>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">src</td>
<td valign="top">the source file.</td>
<td align="center" valign="top">Yes</td>
</tr>
<tr>
<td valign="top">dest</td>
<td valign="top">the destination file.</td>
<td align="center" valign="top">Yes</td>
</tr>
<tr>
<td valign="top">sep</td>
<td valign="top">the separator for the name/value pairs.</td>
<td align="center" valign="top">No</td>
</tr>
<tr>
<td valign="top">keys</td>
<td valign="top">name/value pairs for replacement.</td>
<td align="center" valign="top">Yes</td>
</tr>
</table>
<h3>Examples</h3>
<pre> &lt;keysubst src=&quot;abc.txt&quot; dest=&quot;def.txt&quot; keys=&quot;VERSION=1.0.3*DATE=2000-01-10&quot; /&gt;</pre>
<hr>
<h2><a name="mkdir">Mkdir</a></h2>
<h3>Description</h3>
@@ -3291,6 +3215,36 @@ class path</td>
</pre></p>
</blockquote>
<hr>
<h2><a name="unzip">Unjar/Unzip</a></h2>
<h3>Description</h3>
<p>Unzips a zip- or jarfile.</p>
<p>For JDK 1.1 "last modified time" field is set to current time instead of being
carried from zipfile.</p>
<p>File permissions will not be restored on extracted files.</a>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td valign="top"><b>Attribute</b></td>
<td valign="top"><b>Description</b></td>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">src</td>
<td valign="top">zipfile to expand.</td>
<td align="center" valign="top">Yes</td>
</tr>
<tr>
<td valign="top">dest</td>
<td valign="top">directory where to store the expanded files.</td>
<td align="center" valign="top">Yes</td>
</tr>
</table>
<h3>Examples</h3>
<blockquote>
<p><code>&lt;unzip src=&quot;${tomcat_src}/tools-src.zip&quot; dest=&quot;${tools.home}&quot;
/&gt;</code></p>
</blockquote>
<hr>
<h2><a name="untar">Untar</a></h2>
<h3>Description</h3>
<p>Untars a tarfile.</p>


+ 0
- 2
src/main/org/apache/tools/ant/taskdefs/defaults.properties View File

@@ -58,5 +58,3 @@ ftp=org.apache.tools.ant.taskdefs.optional.FTP

# deprecated ant tasks (kept for back compatibility)
javadoc2=org.apache.tools.ant.taskdefs.Javadoc
keysubst=org.apache.tools.ant.taskdefs.KeySubst
expand=org.apache.tools.ant.taskdefs.Expand

Loading…
Cancel
Save