Dear all,
First of all, thanks for the great tool. Nant really simplified build
process for me. I have 2 questions.

1. Is  it possible to declare a temp variables? I have seen no example so
far. Because of using properties as temp variables, the progs become badly
readable. Do I miss a point of using programming in nant or do I do
something wrong? 
I know that I could use scripts or create custom tasks, but for very simple
things I would like to avoid it.

Example:
Following 6 lines are for conversion of c:\distrib\nant-version to
c:\distrib\nantcontrib-version 
 
property name="NantContribBaseDir"
value="${directory::get-parent-directory(nant::get-base-directory())}" />
 <property name="li" value=
"${string::last-index-of(property::get-value('NantContribBaseDir'),'nant')}"
/>
  <property name="prefix" value= "${
string::substring(property::get-value('NantContribBaseDir'),0,
int::parse(li)+string::get-length('nant'))}"/>
 <property name="suffix" value= "${
string::substring(property::get-value('NantContribBaseDir'),
int::parse(li)+string::get-length('nant'),string::get-length(property::get-v
alue('NantContribBaseDir'))-string::get-length('nant')-int::parse(li))}"/>
 <property name="NantContribBaseDir"
value="${property::get-value('prefix')}contrib${property::get-value('suffix'
)}\bin" />
 <loadtasks assembly="${NantContribBaseDir}\NAnt.Contrib.Tasks.dll" />
 2. Is it possible to Exit a target execution

Pseudo code,
<target A>
<task1...>
If propertyX then EXIT
<task2...>
</target A>

Thanks a lot,
Boni


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to