source: release-kits/wirk3/ant-scripts/tasks/antelope/docs/manual/bk03ch14.html@ 15023

Last change on this file since 15023 was 15023, checked in by oranfry, 16 years ago

did the bulk of the work on wirk3

File size: 2.7 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 14. UID</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="Antelope Users Guide"><link rel="up" href="bk03.html" title="Additional Ant Tasks"><link rel="prev" href="bk03ch13.html" title="Chapter 13. StringUtils"><link rel="next" href="bk03ch15.html" title="Chapter 15. Math"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 14. UID</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bk03ch13.html">Prev</a> </td><th width="60%" align="center">Additional Ant Tasks</th><td width="20%" align="right"> <a accesskey="n" href="bk03ch15.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="UID"></a>Chapter 14. UID</h2></div></div></div>
2<STYLE TYPE="text/css"> <!-- @import url(./style.css); --> </STYLE>
3 <p>
4The UID task generates a unique ID. This ID may be either a unique string or integer.
5</p><p>
6To use this task in your build files, include a task definition like this:
7</p><p>
8</p><pre class="programlisting">
9
10 &lt;taskdef name="uid" classname="ise.antelope.tasks.UIDTask"/&gt;
11
12</pre><p>
13</p><p>
14</p><div class="table"><a name="id2522993"></a><p class="title"><b>Table 14.1. UID Task Attributes</b></p><table summary="UID Task Attributes" border="1"><colgroup><col><col><col><col></colgroup><thead><tr><th>Attribute</th><th>Description</th><th>Default</th><th>Required</th></tr></thead><tbody><tr><td>name</td><td>Name of a property to store the unique ID.</td><td>None</td><td>Yes</td></tr><tr><td>int</td><td>If true, generate a unique integer.</td><td>false</td><td>No</td></tr></tbody></table></div><p>
15</p><p>
16Examples:
17</p><p>
18</p><pre class="programlisting">
19
20&lt;uid name="uid_1"/&gt;
21&lt;echo&gt;uid_1 = ${uid_1}&lt;/echo&gt;
22&lt;uid name="uid_2" int="yes"/&gt;
23&lt;echo&gt;uid_2 = ${uid_2}&lt;/echo&gt;
24
25
26 [echo] uid_1 = -4a1a8b86:10728498757:-7fff
27 [echo] uid_2 = 2
28
29</pre><p>
30</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bk03ch13.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="bk03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bk03ch15.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 13. StringUtils </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 15. Math</td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.