I have the same/similar problems when executing an external program.

Try if this helps.

Assign the location of pskill to a task *<property name="pskill"
value="${TOOLS_DIR}\pskill.exe" />*

Inside the target you are calling:

*<exec program="disallow_errors.bat" commandline="${pskill} -t
yourprogram.exe" failonerror="false" />*

disallow_errors.bat contents

*cmd /C "%* 2>&1 & exit 0"*


Best Regards,
Sanjeev


On Wed, Jul 28, 2010 at 2:02 AM, Edwin <[email protected]> wrote:

> I have a problem using both psexec and taskkill application.I use nant
> <exec> to run psexec and taskkill.
> it always return "taskkill exited with error code 0." ccnet will show
> errors with those output.
> is there any workaround I can use or avoid ccnet show the errors?
>

Reply via email to