~mandel/ubuntuone-windows-installer/fix_null_pointer_start

« back to all changes in this revision

Viewing changes to tools/Nant/doc/help/tasks/loadfile.html

  • Committer: Manuel de la Pena
  • Date: 2010-07-08 13:22:59 UTC
  • Revision ID: mandel@themacaque.com-20100708132259-y1jgyuyqfe9stt8u
Updated build script to run tests and added all the required tools so far.

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.Tasks.LoadFileTask-->
 
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;loadfile&gt; Task</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="../tasks/index.html">Task Reference</a>
 
21
          <img alt="-&gt;" src="../images/arrow.gif" /> &lt;loadfile&gt;</td>
 
22
        <td class="NavBar-Cell" align="right">
 
23
                        v0.90</td>
 
24
      </tr>
 
25
    </table>
 
26
    <h1>&lt;loadfile&gt;</h1>
 
27
    <p> Load a text file into a single property. </p>
 
28
    <p> Unless an encoding is specified, the encoding associated with the system's current ANSI code page is used. </p>
 
29
    <p> An UTF-8, little-endian Unicode, and big-endian Unicode encoded text file is automatically recognized, if the file starts with the appropriate byte order marks. </p>
 
30
    <h3>Parameters</h3>
 
31
    <div class="table">
 
32
      <table>
 
33
        <tr>
 
34
          <th>Attribute</th>
 
35
          <th style="text-align: center;">Type</th>
 
36
          <th>Description</th>
 
37
          <th style="text-align: center;">Required</th>
 
38
        </tr>
 
39
        <tr>
 
40
          <td valign="top" class="required">file</td>
 
41
          <td style="text-align: center;">file</td>
 
42
          <td> The file to load. </td>
 
43
          <td style="text-align: center;">True</td>
 
44
        </tr>
 
45
        <tr>
 
46
          <td valign="top" class="required">property</td>
 
47
          <td style="text-align: center;">string</td>
 
48
          <td> The name of the property to save the content to. </td>
 
49
          <td style="text-align: center;">True</td>
 
50
        </tr>
 
51
        <tr>
 
52
          <td valign="top">encoding</td>
 
53
          <td style="text-align: center;">
 
54
            <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemTextEncodingClassTopic.asp">Encoding</a>
 
55
          </td>
 
56
          <td> The encoding to use when loading the file. The default is the encoding associated with the system's current ANSI code page. </td>
 
57
          <td style="text-align: center;">False</td>
 
58
        </tr>
 
59
        <tr>
 
60
          <td valign="top">failonerror</td>
 
61
          <td style="text-align: center;">bool</td>
 
62
          <td> Determines if task failure stops the build, or is just reported. The default is <b>true</b>. </td>
 
63
          <td style="text-align: center;">False</td>
 
64
        </tr>
 
65
        <tr>
 
66
          <td valign="top">if</td>
 
67
          <td style="text-align: center;">bool</td>
 
68
          <td> If <b>true</b> then the task will be executed; otherwise, skipped. The default is <b>true</b>. </td>
 
69
          <td style="text-align: center;">False</td>
 
70
        </tr>
 
71
        <tr>
 
72
          <td valign="top">unless</td>
 
73
          <td style="text-align: center;">bool</td>
 
74
          <td> Opposite of <code>if</code>. If <b>false</b> then the task will be executed; otherwise, skipped. The default is <b>false</b>. </td>
 
75
          <td style="text-align: center;">False</td>
 
76
        </tr>
 
77
        <tr>
 
78
          <td valign="top">verbose</td>
 
79
          <td style="text-align: center;">bool</td>
 
80
          <td> Determines whether the task should report detailed build log messages. The default is <b>false</b>. </td>
 
81
          <td style="text-align: center;">False</td>
 
82
        </tr>
 
83
      </table>
 
84
    </div>
 
85
    <h3>Nested Elements:</h3>
 
86
    <!--Element-->
 
87
    <h4>
 
88
      <a id="filterchain">
 
89
      </a>
 
90
                    &lt;<a href="../types/filterchain.html">filterchain</a>&gt;
 
91
                </h4>
 
92
    <div class="nested-element"> The filterchain definition to use. <p /></div>
 
93
    <h4>
 
94
      <a id="filterchain">
 
95
      </a>
 
96
                    &lt;/<a href="../types/filterchain.html">filterchain</a>&gt;
 
97
                </h4>
 
98
    <h3>Examples</h3>
 
99
    <ul class="examples">
 
100
      <li>
 
101
        <p> Load file <code>message.txt</code> into property "message". </p>
 
102
        <pre class="code">
 
103
            &lt;loadfile
 
104
                file="message.txt"
 
105
                property="message" /&gt;
 
106
                </pre>
 
107
      </li>
 
108
      <li>
 
109
        <p> Load a file using the "latin-1" encoding. </p>
 
110
        <pre class="code">
 
111
            &lt;loadfile
 
112
                file="loadfile.xml"
 
113
                property="encoded-file"
 
114
                encoding="iso-8859-1" /&gt;
 
115
                </pre>
 
116
      </li>
 
117
      <li>
 
118
        <p> Load a file, replacing all <code>@NOW@</code> tokens with the current date/time. </p>
 
119
        <pre class="code">
 
120
            &lt;loadfile file="token.txt" property="token-file"&gt;
 
121
                &lt;filterchain&gt;
 
122
                    &lt;replacetokens&gt;
 
123
                        &lt;token key="NOW" value="${datetime::now()}" /&gt;
 
124
                    &lt;/replacetokens&gt;
 
125
                &lt;/filterchain&gt;
 
126
            &lt;/loadfile&gt;
 
127
                </pre>
 
128
      </li>
 
129
    </ul>
 
130
    <h3>Requirements</h3>
 
131
    <div style="margin-left: 20px;">
 
132
      <b>Assembly:</b> NAnt.Core (0.90.3780.0)
 
133
            </div>
 
134
  </body>
 
135
</html>
 
 
b'\\ No newline at end of file'