2006-09-11 04:19:00 +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.
|
|
|
|
-->
|
2003-05-09 12:10:36 +00:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
2005-04-29 18:58:16 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
2003-05-09 12:10:36 +00:00
|
|
|
<title>DefaultExcludes Task</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2018-03-04 15:17:41 +01:00
|
|
|
<h2 id="defaultexcludes">DefaultExcludes</h2>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
2018-03-04 15:17:41 +01:00
|
|
|
<p><em>Since Apache Ant 1.6</em></p>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
|
|
|
<h3>Description</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Alters the default excludes for all subsequent processing in the build, and prints out the
|
|
|
|
current default excludes if desired.</p>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
|
|
|
<h3>Parameters</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<table class="attr">
|
2003-05-09 12:10:36 +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>
|
2003-05-09 12:10:36 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>echo</td>
|
|
|
|
<td>whether or not to print out the default excludes</td>
|
|
|
|
<td><q>true</q> required if no other attribute specified; defaults to <q>false</q></td>
|
2003-07-21 10:52:20 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>default</td>
|
|
|
|
<td>go back to hard wired default excludes</td>
|
|
|
|
<td><q>true</q> required if no other attribute is specified</td>
|
2003-05-09 12:10:36 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>add</td>
|
|
|
|
<td>the pattern to add to the default excludes</td>
|
|
|
|
<td>if no other attribute is specified</td>
|
2003-05-09 12:10:36 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>remove</td>
|
|
|
|
<td>remove the specified pattern from the default excludes</td>
|
|
|
|
<td>if no other attribute is specified</td>
|
2003-05-09 12:10:36 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h3>Examples</h3>
|
|
|
|
|
|
|
|
<p>Print out the default excludes</p>
|
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<pre><defaultexcludes echo="true"/></pre>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Print out the default excludes and exclude all <samp>*.bak</samp> files in <strong>all</strong>
|
|
|
|
further processing</p>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<pre><defaultexcludes echo="true" add="**/*.bak"/></pre>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Silently allow several fileset based tasks to operate on emacs backup files and then restore
|
|
|
|
normal behavior</p>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
|
|
|
<pre>
|
2018-02-28 07:58:59 +01:00
|
|
|
<defaultexcludes remove="**/*~"/>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
(do several fileset based tasks here)
|
2003-05-09 12:10:36 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<defaultexcludes default="true"/></pre>
|
2003-05-09 12:10:36 +00:00
|
|
|
|
2006-08-18 09:37:11 +00:00
|
|
|
<h3>Notes</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>By default the pattern <samp>**/.svn</samp> and <samp>**/.svn/**</samp> are set as default
|
2018-03-08 07:43:53 +01:00
|
|
|
excludes. Since version 1.3, Subversion supports
|
|
|
|
the <a href="https://subversion.apache.org/docs/release-notes/1.3.html#_svn-hack"
|
|
|
|
target="_top">"_svn hack"</a>. That means, that the svn-libraries evaluate environment
|
|
|
|
variables and use <samp>.svn</samp> or <samp>_svn</samp> directory regarding to that value. We had
|
|
|
|
chosen not to evaluate environment variables to get a more reliable build. Instead you have to
|
|
|
|
change the settings by yourself by changing the exclude patterns:</p>
|
2006-08-18 09:37:11 +00:00
|
|
|
<pre>
|
2018-02-28 07:58:59 +01:00
|
|
|
<defaultexcludes remove="**/.svn"/>
|
|
|
|
<defaultexcludes remove="**/.svn/**"/>
|
|
|
|
<defaultexcludes add="**/_svn"/>
|
|
|
|
<defaultexcludes add="**/_svn/**"/>
|
2006-08-18 09:37:11 +00:00
|
|
|
</pre>
|
|
|
|
|
2003-05-09 12:10:36 +00:00
|
|
|
</body>
|
|
|
|
</html>
|