~mandel/ubuntuone-windows-installer/fix_null_pointer_start

« back to all changes in this revision

Viewing changes to tools/Nant/doc/help/tasks/tstamp.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.TStampTask-->
 
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;tstamp&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;tstamp&gt;</td>
 
22
        <td class="NavBar-Cell" align="right">
 
23
                        v0.90</td>
 
24
      </tr>
 
25
    </table>
 
26
    <h1>&lt;tstamp&gt;</h1>
 
27
    <p> Sets properties with the current date and time. </p>
 
28
    <p> By default the <a href="../tasks/tstamp.html">&lt;tstamp&gt;</a> task displays the current date and time and sets the following properties: </p>
 
29
    <ul style="list-style-type: disc;">
 
30
      <li>tstamp.date to yyyyMMdd</li>
 
31
      <li>tstamp.time to HHmm</li>
 
32
      <li>tstamp.now using the default DateTime.ToString() method</li>
 
33
    </ul>
 
34
    <p> To set an additional property with a custom date/time use the <code>property</code> and <code>pattern</code> attributes. To set a number of additional properties with the exact same date and time use the <code>formatter</code> nested element (see example). </p>
 
35
    <p> The date and time string displayed by the <a href="../tasks/tstamp.html">&lt;tstamp&gt;</a> task uses the computer's default long date and time string format. You might consider setting these to the <a href="http://www.cl.cam.ac.uk/~mgk25/iso-time.html">ISO 8601 standard for date and time notation</a>. </p>
 
36
    <h3>Parameters</h3>
 
37
    <div class="table">
 
38
      <table>
 
39
        <tr>
 
40
          <th>Attribute</th>
 
41
          <th style="text-align: center;">Type</th>
 
42
          <th>Description</th>
 
43
          <th style="text-align: center;">Required</th>
 
44
        </tr>
 
45
        <tr>
 
46
          <td valign="top">pattern</td>
 
47
          <td style="text-align: center;">string</td>
 
48
          <td>The date/time pattern to be used.</td>
 
49
          <td style="text-align: center;">False</td>
 
50
        </tr>
 
51
        <tr>
 
52
          <td valign="top">property</td>
 
53
          <td style="text-align: center;">string</td>
 
54
          <td> The property to receive the date/time string in the given pattern. </td>
 
55
          <td style="text-align: center;">False</td>
 
56
        </tr>
 
57
        <tr>
 
58
          <td valign="top">failonerror</td>
 
59
          <td style="text-align: center;">bool</td>
 
60
          <td> Determines if task failure stops the build, or is just reported. The default is <b>true</b>. </td>
 
61
          <td style="text-align: center;">False</td>
 
62
        </tr>
 
63
        <tr>
 
64
          <td valign="top">if</td>
 
65
          <td style="text-align: center;">bool</td>
 
66
          <td> If <b>true</b> then the task will be executed; otherwise, skipped. The default is <b>true</b>. </td>
 
67
          <td style="text-align: center;">False</td>
 
68
        </tr>
 
69
        <tr>
 
70
          <td valign="top">unless</td>
 
71
          <td style="text-align: center;">bool</td>
 
72
          <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>
 
73
          <td style="text-align: center;">False</td>
 
74
        </tr>
 
75
        <tr>
 
76
          <td valign="top">verbose</td>
 
77
          <td style="text-align: center;">bool</td>
 
78
          <td> Determines whether the task should report detailed build log messages. The default is <b>false</b>. </td>
 
79
          <td style="text-align: center;">False</td>
 
80
        </tr>
 
81
      </table>
 
82
    </div>
 
83
    <h3>Nested Elements:</h3>
 
84
    <!--Array-->
 
85
    <!--NestedElementArray=T:NAnt.Core.Types.Formatter-->
 
86
    <h4>
 
87
      <a id="formatter">
 
88
      </a>
 
89
                    &lt;formatter&gt;
 
90
                </h4>
 
91
    <div class="nested-element">
 
92
      <p>
 
93
      </p>
 
94
      <h3>Parameters</h3>
 
95
      <div class="table">
 
96
        <table>
 
97
          <tr>
 
98
            <th>Attribute</th>
 
99
            <th style="text-align: center;">Type</th>
 
100
            <th>Description</th>
 
101
            <th style="text-align: center;">Required</th>
 
102
          </tr>
 
103
          <tr>
 
104
            <td valign="top" class="required">pattern</td>
 
105
            <td style="text-align: center;">string</td>
 
106
            <td> The string pattern to use to format the property. </td>
 
107
            <td style="text-align: center;">True</td>
 
108
          </tr>
 
109
          <tr>
 
110
            <td valign="top" class="required">property</td>
 
111
            <td style="text-align: center;">string</td>
 
112
            <td> The name of the NAnt property to set. </td>
 
113
            <td style="text-align: center;">True</td>
 
114
          </tr>
 
115
          <tr>
 
116
            <td valign="top">if</td>
 
117
            <td style="text-align: center;">bool</td>
 
118
            <td> Indicates if the formatter should be used to format the timestamp. If <b>true</b> then the formatter will be used; otherwise, skipped. The default is <b>true</b>. </td>
 
119
            <td style="text-align: center;">False</td>
 
120
          </tr>
 
121
          <tr>
 
122
            <td valign="top">unless</td>
 
123
            <td style="text-align: center;">bool</td>
 
124
            <td> Indicates if the formatter should be not used to format the timestamp. If <b>false</b> then the formatter will be used; otherwise, skipped. The default is <b>false</b>. </td>
 
125
            <td style="text-align: center;">False</td>
 
126
          </tr>
 
127
        </table>
 
128
      </div>
 
129
    </div>
 
130
    <h4>
 
131
      <a id="formatter">
 
132
      </a>
 
133
                    &lt;/formatter&gt;
 
134
                </h4>
 
135
    <h3>Examples</h3>
 
136
    <ul class="examples">
 
137
      <li>
 
138
        <p>Set the <code>build.date</code> property.</p>
 
139
        <pre class="code">
 
140
&lt;tstamp property="build.date" pattern="yyyyMMdd" verbose="true" /&gt;
 
141
    </pre>
 
142
      </li>
 
143
      <li>
 
144
        <p>Set a number of properties for Ant like compatibility.</p>
 
145
        <pre class="code">
 
146
&lt;tstamp verbose="true"&gt;
 
147
    &lt;formatter property="TODAY" pattern="dd MMM yyyy"/&gt;
 
148
    &lt;formatter property="DSTAMP" pattern="yyyyMMdd" unless="${date.not.needed}" /&gt;
 
149
    &lt;formatter property="TSTAMP" pattern="HHmm" if="${need.hours}" /&gt;
 
150
&lt;/tstamp&gt;
 
151
    </pre>
 
152
      </li>
 
153
    </ul>
 
154
    <h3>Requirements</h3>
 
155
    <div style="margin-left: 20px;">
 
156
      <b>Assembly:</b> NAnt.Core (0.90.3780.0)
 
157
            </div>
 
158
  </body>
 
159
</html>
 
 
b'\\ No newline at end of file'