You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

defaultexcludes.html 3.7 KiB

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