Articles :: Software Projects :: Works in Progress
This page has moved and you will be redirected.

Description
This is an assmebly of tasks, types, and functions that I found I could not live without.
Tasks:
Functions:
Type:
Quick Example
<strings id="Numbers">
<string value="1"/>
<string value="2"/>
<string value="3"/>
<string value="4"/>
</strings>
<function execute="${stringlist::add('Numbers', '5')}"/>
<ifthenelse test="${stringlist::contains('Numbers', '5')}">
<then>
<echo message="Added number 5 to StringList, count = ${stringlist::count('Numbers')}."/>
</then>
<elseif if="false" >
<echo message="This won't happen."/>
</elseif>
<else>
<echo message="Did not add number 5 to StringList, count = ${stringlist::count('Numbers')}."/>
</else>
</ifthenelse>
<function execute="${stringlist::remove('Numbers', '2')}"/>
<loopthrough property="Number">
<items>
<strings refid="Numbers" />
</items>
<do>
<echo message="Number ${Number}!"/>
</do>
</loopthrough>
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/Projects/CI Factory/Current/Product/nAnt Scratch/Scratch.build.xml
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: test
[loadtasks] Scanning assembly "Common.Functions" for extensions.
test:
[echo] Added number 5 to StringList, count = 5.
[echo] Number 3!
[echo] Number 1!
[echo] Number 4!
[echo] Number 5!
BUILD SUCCEEDED
Total time: 0.1 seconds.
Download
common_nant_tasks.txt · Last modified: 2006/05/04 14:54 by jflowers