[snip] -> Yes, do tell. I'm having the opposite problem: when I -> redirect the output to a file, it *still* shows up in the -> NANT log even though I don't want it to...
Here is a convoluted example of how I call <exec> to dump Subversion repositories using file redirection: <project name="redirection-test" default="execute" basedir="."> <target name="execute" depends="init-windows,init-linux"> <exec program="${shell}"> <arg line='${start}"${program}" > "${output}"${end}'/> </exec> </target> <target name="init-windows" if="${platform::is-win32()}"> <property name="shell" value="CMD"/> <property name="start" value='/S /C " '/> <property name="end" value=' "'/> </target> <target name="init-linux" if="${platform::is-unix()}"> <property name="shell" value="sh"/> <property name="start" value=""/> <property name="end" value=""/> </target> </project> Also use it to load repositories (input), works fine, and none of the redirection ends up in the NAnt log. To test this example, try: nant -l:test.log -D:program=dir -D:output=test.txt peace si ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users