ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Kuhn <bnk...@gmail.com>
Subject Re: Spawning a java call in a new command shell
Date Thu, 19 May 2005 17:59:12 GMT
I think this is more of a windows than an ant question;

Does anyone know if it's possible to create a new window when spawning
a cmd command?  For instance, I'd like to have the following exec task
create a new cmd window so I can see the results.  This is an example:

<exec executable="cmd" spawn="true" dir="${windows.weblogicDir}">
      <arg line="/c pwd"/>
</exec>

Thanks,
     Brian



On 8/22/04, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> wrote:
> Usually you need a shell for viewing the output of another program.
> If a nested <redirector> wouldnt help (because it can only redirect to
> a file and not to a _new_ console) the only way I am aware of is <exec>.
> 
> But you dont have to have an external start script. Something like
>   <echo file="launch.bat">java ${mainclass}</echo>
>   <exec spawn="true" executable="cmd.exe"><arg value="launch.bat"/></exec>
>   <sleep seconds="1"/>
>   <delete file="launch.bat"/>
> should work.
> 
> 
> Jan
> 
> 
> 
> 
> 
> > -----Urspr√ľngliche Nachricht-----
> > Von: Alan Brown [mailto:abrown@symyx.com]
> > Gesendet am: Sonntag, 22. August 2004 18:40
> > An: Ant Users List
> > Betreff: Spawning a java call in a new command shell
> >
> >
> > I know that I can use spawn to set my java call going in a separate
> > process.  But is it possible to have that separate process be in a
> > visible shell?  It seems not.  I know I could do it if I
> > create a shell
> > script and call it with the exec task but I was hoping to do it more
> > gracefully.
> >
> >
> >
> > =======
> > Notice: This e-mail message, together with any attachments, contains
> >
> > information of Symyx Technologies, Inc. that may be confidential,
> >
> > proprietary, copyrighted, privileged and/or protected work product,
> >
> > and is meant solely for the intended recipient. If you are not the
> >
> > intended recipient, and have received this message in error, please
> >
> > contact the sender immediately, permanently delete the original and
> >
> > any copies of this email and any attachments thereto.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message