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.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  5. <title>DefaultExcludes Task</title>
  6. </head>
  7. <body>
  8. <h2><a name="echo">DefaultExcludes</a></h2>
  9. <p><em>since Ant 1.6</em></p>
  10. <h3>Description</h3>
  11. <p>Alters the default excludes for all subsequent processing in the
  12. build, and prints out the current default excludes if desired.
  13. <h3>Parameters</h3>
  14. <table border="1" cellpadding="2" cellspacing="0">
  15. <tr>
  16. <td valign="top"><b>Attribute</b></td>
  17. <td valign="top"><b>Description</b></td>
  18. <td align="center" valign="top"><b>Required</b></td>
  19. </tr>
  20. <tr>
  21. <td valign="top">echo</td>
  22. <td valign="top">whether or not to print out the default excludes.(defaults to false)</td>
  23. <td valign="top" align="center">attribute "true" required if no
  24. other attribute specified</td>
  25. </tr>
  26. <tr>
  27. <td valign="top">default</td>
  28. <td valign="top">go back to hard wired default excludes</td>
  29. <td valign="top" align="center">attribute "true" required if no
  30. if no other attribute is specified</td>
  31. </tr>
  32. <tr>
  33. <td valign="top">add</td>
  34. <td valign="top">the pattern to add to the default excludes</td>
  35. <td valign="top" align="center">if no other attribute is specified</td>
  36. </tr>
  37. <tr>
  38. <td valign="top">remove</td>
  39. <td valign="top">remove the specified pattern from the default excludes</td>
  40. <td valign="top" align="center">if no other attribute is specified</td>
  41. </tr>
  42. </table>
  43. <h3>Examples</h3>
  44. <p>Print out the default excludes</p>
  45. <pre> &lt;defaultexcludes echo=&quot;true&quot;/&gt;</pre>
  46. <p>Print out the default excludes and exclude all *.bak files in
  47. <strong>all</strong> further processing</p>
  48. <pre> &lt;defaultexcludes echo=&quot;true&quot; add=&quot;**/*.bak&quot;/&gt;</pre>
  49. <p>Silently allow several fileset based tasks to operate on emacs
  50. backup files and then restore normal behavior</p>
  51. <pre>
  52. &lt;defaultexcludes remove=&quot;**/*~&quot;/&gt;
  53. (do several fileset based tasks here)
  54. &lt;defaultexcludes default=&quot;true&quot;/&gt;
  55. </pre>
  56. <h3>Notes</h3>
  57. By default the pattern <tt>**/.svn</tt> and <tt>**/.svn/**</tt> are set as default
  58. excludes. With version 1.3 Subversion supports the
  59. <a target="_blank" href="http://subversion.tigris.org/svn_1.3_releasenotes.html">&quot;_svn hack&quot;</a>.
  60. That means, that the svn-libraries evaluate environment variables and use <i>.svn</i>
  61. or <i>_svn</i> directory regarding to that value. We had chosen not to evaluate environment variables to
  62. get a more reliable build. Instead you have to change the settings by yourself by changing
  63. the exclude patterns:
  64. <pre>
  65. &lt;defaultexcludes remove=&quot;**/.svn&quot;/&gt;
  66. &lt;defaultexcludes remove=&quot;**/.svn/**&quot;/&gt;
  67. &lt;defaultexcludes add=&quot;**/_svn&quot;/&gt;
  68. &lt;defaultexcludes add=&quot;**/_svn/**&quot;/&gt;
  69. </pre>
  70. <hr>
  71. <p align="center">Copyright &copy; 2003-2006 The Apache Software Foundation. All rights
  72. Reserved.</p>
  73. </body>
  74. </html>