1 | <!--
|
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
3 | contributor license agreements. See the NOTICE file distributed with
|
---|
4 | this work for additional information regarding copyright ownership.
|
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
6 | (the "License"); you may not use this file except in compliance with
|
---|
7 | the License. You may obtain a copy of the License at
|
---|
8 |
|
---|
9 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 |
|
---|
11 | Unless required by applicable law or agreed to in writing, software
|
---|
12 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | See the License for the specific language governing permissions and
|
---|
15 | limitations under the License.
|
---|
16 | -->
|
---|
17 | <html>
|
---|
18 |
|
---|
19 | <head>
|
---|
20 | <meta http-equiv="Content-Language" content="en-us">
|
---|
21 | <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
---|
22 | <title>DefaultExcludes Task</title>
|
---|
23 | </head>
|
---|
24 |
|
---|
25 | <body>
|
---|
26 |
|
---|
27 | <h2><a name="echo">DefaultExcludes</a></h2>
|
---|
28 |
|
---|
29 | <p><em>since Ant 1.6</em></p>
|
---|
30 |
|
---|
31 | <h3>Description</h3>
|
---|
32 | <p>Alters the default excludes for all subsequent processing in the
|
---|
33 | build, and prints out the current default excludes if desired.
|
---|
34 |
|
---|
35 | <h3>Parameters</h3>
|
---|
36 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
37 | <tr>
|
---|
38 | <td valign="top"><b>Attribute</b></td>
|
---|
39 | <td valign="top"><b>Description</b></td>
|
---|
40 | <td align="center" valign="top"><b>Required</b></td>
|
---|
41 | </tr>
|
---|
42 | <tr>
|
---|
43 | <td valign="top">echo</td>
|
---|
44 | <td valign="top">whether or not to print out the default excludes.(defaults to false)</td>
|
---|
45 | <td valign="top" align="center">attribute "true" required if no
|
---|
46 | other attribute specified</td>
|
---|
47 | </tr>
|
---|
48 | <tr>
|
---|
49 | <td valign="top">default</td>
|
---|
50 | <td valign="top">go back to hard wired default excludes</td>
|
---|
51 | <td valign="top" align="center">attribute "true" required if no
|
---|
52 | if no other attribute is specified</td>
|
---|
53 | </tr>
|
---|
54 | <tr>
|
---|
55 | <td valign="top">add</td>
|
---|
56 | <td valign="top">the pattern to add to the default excludes</td>
|
---|
57 | <td valign="top" align="center">if no other attribute is specified</td>
|
---|
58 | </tr>
|
---|
59 | <tr>
|
---|
60 | <td valign="top">remove</td>
|
---|
61 | <td valign="top">remove the specified pattern from the default excludes</td>
|
---|
62 | <td valign="top" align="center">if no other attribute is specified</td>
|
---|
63 | </tr>
|
---|
64 | </table>
|
---|
65 |
|
---|
66 | <h3>Examples</h3>
|
---|
67 |
|
---|
68 | <p>Print out the default excludes</p>
|
---|
69 |
|
---|
70 | <pre> <defaultexcludes echo="true"/></pre>
|
---|
71 |
|
---|
72 | <p>Print out the default excludes and exclude all *.bak files in
|
---|
73 | <strong>all</strong> further processing</p>
|
---|
74 |
|
---|
75 | <pre> <defaultexcludes echo="true" add="**/*.bak"/></pre>
|
---|
76 |
|
---|
77 | <p>Silently allow several fileset based tasks to operate on emacs
|
---|
78 | backup files and then restore normal behavior</p>
|
---|
79 |
|
---|
80 | <pre>
|
---|
81 | <defaultexcludes remove="**/*~"/>
|
---|
82 |
|
---|
83 | (do several fileset based tasks here)
|
---|
84 |
|
---|
85 | <defaultexcludes default="true"/>
|
---|
86 | </pre>
|
---|
87 |
|
---|
88 | <h3>Notes</h3>
|
---|
89 | By default the pattern <tt>**/.svn</tt> and <tt>**/.svn/**</tt> are set as default
|
---|
90 | excludes. With version 1.3 Subversion supports the
|
---|
91 | <a target="_blank" href="http://subversion.tigris.org/svn_1.3_releasenotes.html">"_svn hack"</a>.
|
---|
92 | That means, that the svn-libraries evaluate environment variables and use <i>.svn</i>
|
---|
93 | or <i>_svn</i> directory regarding to that value. We had chosen not to evaluate environment variables to
|
---|
94 | get a more reliable build. Instead you have to change the settings by yourself by changing
|
---|
95 | the exclude patterns:
|
---|
96 | <pre>
|
---|
97 | <defaultexcludes remove="**/.svn"/>
|
---|
98 | <defaultexcludes remove="**/.svn/**"/>
|
---|
99 | <defaultexcludes add="**/_svn"/>
|
---|
100 | <defaultexcludes add="**/_svn/**"/>
|
---|
101 | </pre>
|
---|
102 |
|
---|
103 |
|
---|
104 |
|
---|
105 |
|
---|
106 | </body>
|
---|
107 | </html>
|
---|