I don't think this is a Nant issue since the differentiating factor is
how ccnet is run, console vs. service, so I'm asking here.
I call a nant script from ccnet, and I have the following Nant
target.
<target name="deleteLockFiles">
<exec program="${cmdexe}" commandline="/C dir "$
{testFileDirectory}"" />
<delete>
<fileset>
<include name="${lockFiles}" />
</fileset>
</delete>
</target
When ccnet is running as a console, I'm able execute the <exec> call
that lists the directory contents. Of course simply executing the nant
script from command line works too.
But when I'm running ccnet as as service, I get
<task name="exec">
<message level="Warning"><![CDATA[The system cannot find the
path specified.]]></message>
<duration>218.7906</duration>
</task>
Any clues?