Hello there!
I'm porting my scripts from ant and have a question how to port
<available> task. What it does is execute "svn up" if sources already
exist and execute "svn co" if not.
What I have:
<available file="${sln.dir}" type="dir" property="haveSources"/>
...
<target if="haveSources" name="scc_up">
<exec executable="utils\svn.exe" failonerror="true"
dir="${sln.dir}">
<arg line="up" />
</exec>
</target>
<target unless="${bool::parse('${haveSources}')}" name="scc_co">
<mkdir dir="${sources.folder}"/>
<exec executable="utils\svn.exe" failonerror="true"
dir="${sources.folder}">
<arg line="co ${src.url} ." />
</exec>
</target>
What I'm trying to do is:
<property name="haveSources" if="${directory::exists('${sln.dir}')}"
value="true"/>
But then it fails saying:
Expression: ${bool::parse('${haveSources}')}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
String was not recognized as a valid Boolean.
I can implement it by inlining if="${directory::exists('${sln.dir}')}"
in all tasks, but it becomes less easy to read. I'd prefer to preserve
"haveSources" variable.
Any advises?
Thanks,
Vadim Chekan.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users