ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Deitte <bdei...@allaire.com>
Subject RE: Exec and starting a separate process
Date Mon, 22 Jan 2001 21:08:48 GMT
I don't know of any way to currently start separate processes in Ant.  I
need the same functionality, and was (sometime soon) just planning to add a
"wait" parameter to Exec which defaults to true, although I'm not sure how
the input, output, and watchdog handlers will be handled.  -Brian


> -----Original Message-----
> From: William Settle [mailto:William.Settle@alltel.com]
> Sent: Monday, January 22, 2001 2:23 PM
> To: ant-user@jakarta.apache.org
> Subject: Exec and starting a separate process
> 
> 
> I'm wanting to start a separate process under Windows NT/2000 
> and I've tried to
> use the <exec/> task to run a .cmd or .bat file that "starts" 
> a separate
> process.  Of course <exec/> waits for any new processes to 
> finish before it
> moves to the next task.
> 
> My batch file, let's call it mybatch.cmd, is nothing but a 
> one liner and looks
> like:
>   start c:\doit.cmd
> 
> I've also tried
>   start /separate c:\doit.cmd
> 
> and my <exec/> task looks like:
>   <exec executable="c:/mybatch.cmd" />
> 
> Mybatch.cmd runs, which starts doit.cmd but the <exec/> task 
> will not continue
> until doit.cmd and mybatch.cmd is complete (exec.java was 
> written this way).
> 
> Before I create my own task I thought I would see if anyone 
> has any ideas how
> start a separate, independent process using ant.
> 
> Thanks,
> Bill
> 

Mime
View raw message