We have a need to exec tasks during our build asynchronously, because they
interact with subsequent tasks to automate them.  For example:

<exec command="poke_input"  />
<exec command="thing_to_poke" />

Using "start poke_input" doesn't appear to work without it, but perhaps
"poke_input &" would work in Unix.

So I've implemented a modification to Exec.java (attached) that takes an
optional async="yes|on|true" attribute.  The proc.waitFor() and thread joins
will happen asynchronously if async="yes" is set.  Otherwise, the behavior
is synchronous as before.

<exec command="poke_input" async="yes" />
<exec command="thing_to_poke" />

For your evaluation.

Thanks,

John

BEGIN:VCARD
VERSION:2.1
N:Cocula;John;W.
FN:John W. Cocula
ORG:Managed Objects;Development
TITLE:Founder and CTO
TEL;WORK;VOICE:+1 703-208-3330
TEL;CELL;VOICE:703-930-7843
TEL;WORK;FAX:+1 703-208-3331
TEL;HOME;FAX:703-208-3331
ADR;WORK:;;7925 Westpark Drive;McLean;VA;22102
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:7925 Westpark Drive=0D=0AMcLean, VA 22102
X-WAB-GENDER:2
URL:http://www.cocula.com
URL:http://www.ManagedObjects.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20000506T190319Z
END:VCARD

Reply via email to