I'm using
<exec> with a timeout setting (0.8.3 final) but it doesn't seem to
kill the program when the timeout expires. I've created a simple example
below that runs cmd.exe and waits for input (ie, it runs for an arbitrary
length of time) - and the process is never killed.
If I type a key (to
satisfy the prompt) or kill the spawned cmd.exe from task manager, the build
picks up from where the <exec> was invoked.
Thanks
-
Patrick
--
<?xml version="1.0"?>
<project name="test" default="buildall" basedir="."
xmlns:vs="urn:schemas-microsoft-com:HTML-Intellisense"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://nant.sf.net/schema/nant-0.8.3.50000.xsd
C:\nant-0.8.3-rc1\schema\nant-0.8.3.50000.xsd">
<project name="test" default="buildall" basedir="."
xmlns:vs="urn:schemas-microsoft-com:HTML-Intellisense"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://nant.sf.net/schema/nant-0.8.3.50000.xsd
C:\nant-0.8.3-rc1\schema\nant-0.8.3.50000.xsd">
<target
name="buildall">
<exec program="cmd"
workingdir="C:\"
verbose="true"
timeout="10"
commandline='/c pause' />
</target>
<exec program="cmd"
workingdir="C:\"
verbose="true"
timeout="10"
commandline='/c pause' />
</target>
</project>