ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: how to start jboss in the ant
Date Fri, 01 Aug 2003 13:53:17 GMT
I have got in now - spawn will work if you redirect the output to NUL.
exec executable="cmd" spawn="true">
        <arg value="/C"/>
        <arg value="${path_to_jboss}/bin/start_jboss.bat"/>
         <arg value=">NUL"/>
 </exec>

----- Original Message -----
From: "yinhua" <cnyinhua@hotmail.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Saturday, August 02, 2003 6:46 AM
Subject: Re: how to start jboss in the ant


> <exec executable="cmd" spawn="true">
>        <arg value="/C"/>
>        <arg value="${path_to_jboss}/bin/start_jboss.bat"/>
> </exec>
> Does this mean that I use spawn="true", that I can start the jboss without
> blocking the build process?
> But the response on my PC is with spawn="false", it can start the jboss
but
> block.
> And with thie spawn="true", there is no blocking of build.xml and it
return
> but jboss not started.
> Is this right? I'm a little confused.
> Any help will be welcome
> Thx
> frank
> ----- Original Message -----
> From: "Antoine Levy-Lambert" <antoine@antbuild.com>
> To: "Ant Users List" <user@ant.apache.org>
> Sent: Friday, August 01, 2003 12:04 AM
> Subject: Re: how to start jboss in the ant
>
>
> > something like this on UNIX
> > (assuming the start script of JBoss is in Bourne-Shell, otherwishe
> exchange
> > sh for ksh or bash ...)
> >
> > <exec executable="sh" spawn="true">
> >        <arg value="${path_to_jboss}/bin/start_jboss.sh"/>
> > </exe>
> >
> >
> > on Windows
> >
> > <exec executable="cmd" spawn="true">
> >        <arg value="/C"/>
> >        <arg value="${path_to_jboss}/bin/start_jboss.bat"/>
> > </exec>
> >
> > (I am not absolutely sure about cmd /C, but I know you have to give a
> > special flag for cmd for this kind of stuff to work; please have a look
at
> > cmd /? and study it yourself).
> >
> > Cheers,
> >
> > Antoine
> >



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


Mime
View raw message