2010-04-21 16:08:10 +00:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
|
|
|
<title>Augment Task</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h2>Augment</h2>
|
2018-03-04 15:17:41 +01:00
|
|
|
<p><em>Since Apache Ant 1.8.1</em></p>
|
2010-04-21 16:08:10 +00:00
|
|
|
<h3>Description</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Modify an existing reference by adding nested elements or (re-)assigning properties mapped as XML
|
|
|
|
attributes. This is an unusual task that makes use of Ant's internal processing mechanisms to reload
|
|
|
|
a previously declared reference by means of the <var>id</var> attribute, then treats the
|
2018-03-04 15:17:41 +01:00
|
|
|
declared <code>augment</code> element as though it were the original element.</p>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
|
|
|
<h3>Parameters</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<table class="attr">
|
2010-04-21 16:08:10 +00:00
|
|
|
<tr>
|
2018-05-15 10:29:27 +02:00
|
|
|
<th scope="col">Attribute</th>
|
|
|
|
<th scope="col">Description</th>
|
|
|
|
<th scope="col">Required</th>
|
2010-04-21 16:08:10 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>id</td>
|
|
|
|
<td>The <var>id</var> of the reference to augment. If no such reference has been declared
|
|
|
|
a <code>BuildException</code> is thrown.</td>
|
|
|
|
<td>Yes</td>
|
2010-04-21 16:08:10 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Additional permissible attributes are dependent on the reference to be modified.</p>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
|
|
|
<h3>Parameters specified as nested elements</h3>
|
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Permissible nested elements are dependent on the reference to be modified.</p>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
|
|
|
<h3>Examples</h3>
|
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Given</p>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<pre><fileset id="input-fs" dir="${basedir}"/></pre>
|
|
|
|
|
2018-05-15 09:51:58 +02:00
|
|
|
<p>invocation</p>
|
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<pre><augment id="input-fs" excludes="foo"/></pre>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
2018-05-15 09:51:58 +02:00
|
|
|
<p>modifies the <var>excludes</var> attribute of <samp>input-fs</samp>, whereas</p>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
|
|
|
<pre>
|
2018-02-28 07:58:59 +01:00
|
|
|
<augment id="input-fs">
|
|
|
|
<filename name="bar"/>
|
|
|
|
</augment></pre>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
2018-05-15 09:51:58 +02:00
|
|
|
<p>adds a <code>filename</code> selector to <samp>input-fs</samp>.</p>
|
2010-04-21 16:08:10 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|