~mandel/ubuntuone-windows-installer/improve_logging

« back to all changes in this revision

Viewing changes to tools/Nant/doc/help/types/filterchain.html

  • Committer: Manuel de la Pena
  • Date: 2010-10-12 13:38:14 UTC
  • Revision ID: mandel@themacaque.com-20101012133814-nxp9kr2lx2jygmmx
Updated nant to work with .Net 4.0 and removed useless docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
 
<html xmlns="http://www.w3.org/1999/xhtml">
3
 
  <!-- Documenting T:NAnt.Core.Filters.FilterChain-->
4
 
  <head>
5
 
    <meta http-equiv="Content-Language" content="en-ca" />
6
 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
 
    <link rel="stylesheet" type="text/css" href="../style.css" />
8
 
    <title>&lt;filterchain&gt; Type</title>
9
 
  </head>
10
 
  <body>
11
 
    <table width="100%" border="0" cellspacing="0" cellpadding="2" class="NavBar">
12
 
      <tr>
13
 
        <td class="NavBar-Cell">
14
 
          <a href="http://nant.sourceforge.net">
15
 
            <b>NAnt</b>
16
 
          </a>
17
 
          <img alt="-&gt;" src="../images/arrow.gif" />
18
 
          <a href="../index.html">Help</a>
19
 
          <img alt="-&gt;" src="../images/arrow.gif" />
20
 
          <a href="../types/index.html">Type Reference</a>
21
 
          <img alt="-&gt;" src="../images/arrow.gif" /> &lt;filterchain&gt;</td>
22
 
        <td class="NavBar-Cell" align="right">
23
 
                        v0.90</td>
24
 
      </tr>
25
 
    </table>
26
 
    <h1>&lt;filterchain&gt;</h1>
27
 
    <p> Represent a chain of NAnt filters that can be applied to a <a href="../elements/NAnt.Core.Task.html">Task</a>. </p>
28
 
    <p> A FilterChain represents a collection of one or more filters that can be appled to a <a href="../elements/NAnt.Core.Task.html">Task</a> such as the <a href="../tasks/copy.html">&lt;copy&gt;</a> task. In the case of the <a href="../tasks/copy.html">&lt;copy&gt;</a> task, the contents of the copied files are filtered through each filter specified in the filter chain. Filtering occurs in the order the filters are specified with filtered output of one filter feeding into another. </p>
29
 
    <p> :--------:---&gt;:----------:---&gt;:----------: ... :----------:---&gt;:--------:<br xmlns=""></br> :.Source.:---&gt;:.Filter 1.:---&gt;:.Filter 2.: ... :.Filter n.:---&gt;:.target.:<br xmlns=""></br> :--------:---&gt;:----------:---&gt;:----------: ... :----------:---&gt;:--------:<br xmlns=""></br></p>
30
 
    <p> A list of all filters that come with NAnt is available <a href="../filters/index.html">here</a>. </p>
31
 
    <p> The following tasks support filtering with a FilterChain: </p>
32
 
    <ul style="list-style-type: disc;">
33
 
      <li>
34
 
        <a href="../tasks/copy.html">&lt;copy&gt;</a> task</li>
35
 
      <li>
36
 
        <a href="../tasks/move.html">&lt;move&gt;</a> task</li>
37
 
    </ul>
38
 
    <h3>Parameters</h3>
39
 
    <div class="table">
40
 
      <table>
41
 
        <tr>
42
 
          <th>Attribute</th>
43
 
          <th style="text-align: center;">Type</th>
44
 
          <th>Description</th>
45
 
          <th style="text-align: center;">Required</th>
46
 
        </tr>
47
 
        <tr>
48
 
          <td valign="top">encoding</td>
49
 
          <td style="text-align: center;">
50
 
            <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemTextEncodingClassTopic.asp">Encoding</a>
51
 
          </td>
52
 
          <td>
53
 
            <i>Deprecated.</i>  The encoding to assume when filter-copying files. The default is system's current ANSI code page. </td>
54
 
          <td style="text-align: center;">False</td>
55
 
        </tr>
56
 
        <tr>
57
 
          <td valign="top">id</td>
58
 
          <td style="text-align: center;">string</td>
59
 
          <td> The ID used to be referenced later. </td>
60
 
          <td style="text-align: center;">False</td>
61
 
        </tr>
62
 
        <tr>
63
 
          <td valign="top">refid</td>
64
 
          <td style="text-align: center;">string</td>
65
 
          <td> The ID to use as the reference. </td>
66
 
          <td style="text-align: center;">False</td>
67
 
        </tr>
68
 
      </table>
69
 
    </div>
70
 
    <h3>Nested Elements:</h3>
71
 
    <!--Array-->
72
 
    <!--NestedElementArray=T:NAnt.Core.Filters.Filter-->
73
 
    <h4>
74
 
      <a id="filter">
75
 
      </a>
76
 
                    &lt;filter&gt;
77
 
                </h4>
78
 
    <div class="nested-element"> The filters to apply. <p> Allows a file's content to be modified while performing an operation. </p><h3>Parameters</h3><div class="table"><table><tr><th>Attribute</th><th style="text-align: center;">Type</th><th>Description</th><th style="text-align: center;">Required</th></tr><tr><td valign="top">if</td><td style="text-align: center;">bool</td><td> If <b>true</b> then the filter will be used; otherwise, skipped. The default is <b>true</b>. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">unless</td><td style="text-align: center;">bool</td><td> Opposite of <code>if</code>. If <b>false</b> then the filter will be executed; otherwise, skipped. The default is <b>false</b>. </td><td style="text-align: center;">False</td></tr></table></div></div>
79
 
    <h4>
80
 
      <a id="filter">
81
 
      </a>
82
 
                    &lt;/filter&gt;
83
 
                </h4>
84
 
    <h3>Examples</h3>
85
 
    <ul class="examples">
86
 
      <li>
87
 
        <p> Replace all occurrences of @NOW@ with the current date/time and replace tabs with spaces in all copied files. </p>
88
 
        <pre class="code">
89
 
&lt;property name="NOW" value="${datetime::now()}" /&gt;
90
 
&lt;copy todir="out"&gt;
91
 
    &lt;fileset basedir="in"&gt;
92
 
        &lt;include name="**/*" /&gt;
93
 
    &lt;/fileset&gt;
94
 
    &lt;filterchain&gt;
95
 
        &lt;replacetokens&gt;
96
 
            &lt;token key="NOW" value="${TODAY}" /&gt;
97
 
        &lt;/replacetokens&gt;
98
 
        &lt;tabstospaces /&gt;
99
 
    &lt;/filterchain&gt;
100
 
&lt;/copy&gt;
101
 
    </pre>
102
 
      </li>
103
 
    </ul>
104
 
    <h3>Requirements</h3>
105
 
    <div style="margin-left: 20px;">
106
 
      <b>Assembly:</b> NAnt.Core (0.90.3780.0)
107
 
            </div>
108
 
  </body>
109
 
</html>
 
 
b'\\ No newline at end of file'