Nant error: [exec] svn: Error resolving case of '>'.

Receiving this following error when doing an exec statement in nant, had me scratching my head for a while and took an age to track down.

1
[exec] svn: Error resolving case of '>'

Resolved it by using the output parameter within the exec element, you can’t use the > character for output from within Nant annoyingly.

So changed this:

1
<exec basedir="." program="c:myprogram.exe" commandline=" -L -x > c:xmloutput.xml" />

To this:

1
<exec basedir="." program="c:myprogram.exe" commandline=" -L -x" output="c:xmloutput.xml" />