|
Sreeni,
Here's
the link to the property task: http://nant.sourceforge.net/nightly/help/tasks/property.html
You would basically add overwrite="false" to any command-line
parameters you plan to pass in.
So,
you could have something like this:
<property name="somename" value="Staging" overwrite="false"
/>
.....
<if
test="${somename=='Staging'}">
<!-- place staging code here
-->
</if>
<if
test="${somename=='Production'}">
<!-- place production code here
-->
</if>
HTH,
Felice
|
- RE: [Nant-users] passing command-line argument while compi... Felice Vittoria
- Re: [Nant-users] passing command-line argument while ... Alex Hildyard
