Ncover Task for NAnt

Ncover Task for NAnt

I wrote a new NAnt script for a new project, and thought of using NCover task (from NCoverExplorer.Extras).
this is how I wrote it:
<ncover program="${path.ncover.console}"
             commandLineExe
="${path.nunit.console}"
             commandLineArgs
="${path::get-file-name(filename)} /xml=&quot;${test.output.dir}\${basename}-nunit.result.xml&quot;"
             coverageFile="${ncover.output.dir}\${basename}.ncover.result.xml"
             workingDirectory="${test.temp.dir}" >
</ncover>
The *ncover.result.xml files were created with no data inside it.
when I changed it to run thru exec:

<exec
program="${path.ncover.console}"
workingdir="${test.temp.dir}"
commandline="${path.nunit.console} ${path::get-file-name(filename)} /xml=&quot;${test.output.dir}\${basename}-nunit.result.xml&quot; /nologo //x ${ncover.output.dir}\${basename}.ncover.result.xml"/>
It works.
The input parameters to NCover, whether its in exec or with the task, is the same.
Any suggestions?