source: other-projects/trunk/realistic-books/packages/AntInstaller/web/manual/manual/CoreTasks/defaultexcludes.html@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 3.7 KB
Line 
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
33build, 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> &lt;defaultexcludes echo=&quot;true&quot;/&gt;</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> &lt;defaultexcludes echo=&quot;true&quot; add=&quot;**/*.bak&quot;/&gt;</pre>
76
77<p>Silently allow several fileset based tasks to operate on emacs
78backup files and then restore normal behavior</p>
79
80<pre>
81 &lt;defaultexcludes remove=&quot;**/*~&quot;/&gt;
82
83 (do several fileset based tasks here)
84
85 &lt;defaultexcludes default=&quot;true&quot;/&gt;
86</pre>
87
88<h3>Notes</h3>
89By default the pattern <tt>**/.svn</tt> and <tt>**/.svn/**</tt> are set as default
90excludes. With version 1.3 Subversion supports the
91<a target="_blank" href="http://subversion.tigris.org/svn_1.3_releasenotes.html">&quot;_svn hack&quot;</a>.
92That means, that the svn-libraries evaluate environment variables and use <i>.svn</i>
93or <i>_svn</i> directory regarding to that value. We had chosen not to evaluate environment variables to
94get a more reliable build. Instead you have to change the settings by yourself by changing
95the exclude patterns:
96<pre>
97 &lt;defaultexcludes remove=&quot;**/.svn&quot;/&gt;
98 &lt;defaultexcludes remove=&quot;**/.svn/**&quot;/&gt;
99 &lt;defaultexcludes add=&quot;**/_svn&quot;/&gt;
100 &lt;defaultexcludes add=&quot;**/_svn/**&quot;/&gt;
101</pre>
102
103
104
105
106</body>
107</html>
Note: See TracBrowser for help on using the repository browser.