I had this problem with Wise when I was using it in a makefile. I don't 
precisely remember the solution but it was one of:
1) Start wise using cmd /c wise.exe instead of just wise.exe.

2) We had a simple program waitfor.exe <file> which would block until a 
particular file name existed. I think we used waitfor setup.msi after 
the wise invocation...

Pretty sure it was #1 now...

HTH, jamie

> -----Original Message-----
> From: steve.l [mailto:[EMAIL PROTECTED]]
> Sent: 22 November 2001 19:25
> To: ant-user
> Cc: steve.l
> Subject: Re: waiting for program to finish with <exec> task
> 
> 
> 
> ----- Original Message -----
> From: "Russ Freeman" <[EMAIL PROTECTED]>
> To: "'Ant Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, November 22, 2001 10:45 AM
> Subject: waiting for program to finish with <exec> task
> 
> 
> > Although I'm aware <exec> does wait, it seems that when I 
> call, say, the
> > Wise install builder from the command-line, it appears to 
> spawn no-wait
> > process which means the ant script carries on even though 
> the install isnt
> > built yet. Grrr.
> >
> > Does anyone know of a workaround for such a scenario?
> >
> > Thanks,
> > Russ
> >
> 
> What is the command line for Wise Install? I'd like to know 
> that one myself
> 
> The problem here is may be that the wise app is a win32 gui app, not a
> console one, and might start differently. But I am confused 
> about that one
> now. I have spawned VB winapps and waited for them to finish 
> successfully.
> So the sub process may be the issue. And the win32 subsystem 
> has no real
> notion of a process tree, though the posix subsys does(*).
> 
> You could just sneak by by adding a <sleep> for a while which 
> is brittle,
> maybe poll for the output file changing. Otherwise, you are 
> going to have to
> change the behaviour of exec or add a new win32 launcher that 
> waits for sub
> processes to die. But that, as I hinted before, will be 
> tricky, unless the
> 'Job' object in win2K makes it tractable.
> 
> steve
> 
> 
> (*) Hey, that fairly weak MS/DOJ settlement means that we 
> should be able to
> finally find out how to write subsystems for WinNT: fancy a gnu posix
> subsys?
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to