Menu

#46 Some more differences for Ant-Users-Section

open
nobody
5
2009-05-11
2009-05-11
No

As I am also coming from the Ant-Section i found the following points useful to find in this section:

========================== snip ============================
<ul>
<li>Property has no file attribute. To load external Properties put them into a Nant-Script (&lt;name&gt;.build) and use the <i>import</i>-Task</li>
<li>Property-Usage! This is really a difference to Ant foremost if you have to use Nant-Functions. If you want to use more than one Property passed to the function, keep in Mind that you
just have to use the Property-Braces <b>once</b>! Example:
<pre lang="xml" escaped="true">
...
&lt;property name="nant.home"
value="${environment::get-variable('NANT_CONTRIB_HOME')}"/&gt;
&lt;property name="nant.contrib.dll"
value="bin/NAnt.Contrib.Tasks.dll"/&gt;
&lt;echo message="${path::combine(nant.home, nant.contrib.dll)}"/&gt;
...
</pre>
</li>
<li>In Nant you often have to use functions instead of properties</li>
</ul>
========================== snap ============================
Just a few points, that have made my entry to Nant easier.

Cheers,
Michael

Discussion


Log in to post a comment.