Hi Erin,
It's do-able, just a little painful, but I think Martin was on the right track.
For example, here's what I do to call the Subversion svnadmin program
to dump a repository, redirecting stdout. Works on Windows and Linux:
...
<target name="init-shell">
<if test="${platform::is-win32()}">
<property name="shell" value="CMD" />
<property name="shell-switch" value="/S /C " />
</if>
<if test="${platform::is-unix()}">
<property name="shell" value="sh" />
<property name="shell-switch" value="-c " />
</if>
</target>
...
<target name="svnadmin-dump">
...
<exec program="${shell}" failonerror="${failonerror}"
resultproperty="dump-result">
<arg line='${shell-switch}""${svnadmin}" dump
"${path::combine(svn-root,repo)}" > "${dump-file}" ${arg-revision}
${arg-incremental} ${arg-deltas}"'/>
</exec>
...
</target>
Hope that helps.
peace
si
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users