You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Li, Jerry" <Je...@WorldChain.com> on 2001/12/14 02:16:12 UTC

how to start a DOS process in parallel to ant

Hi, there:

is there any way to let the last echo target get executed without stopping
weblogic?
The problem I am facing now is that the last echo target gets displayed only
after I stop weblogic in another DOS shell. My goal is to implement a
parallel process of weblogic while ant script continues.

	<target name="deploy2Weblogic" depends="init">
		<antcall target="createWlsJ2eeApps"/>
		<copy todir="${WC_HOME}">
			<fileset
dir="${DELIVERABLE_DIR}${FILE_SEP}Weblogic"/>
		</copy>
		<exec dir="${WC_HOME}" executable="cmd" os="Windows 2000">
 		 	<arg line="/c start startWeblogic.cmd"/>
		</exec>
		<echo message="Build Finished"/>		
	</target>

Appreciate your help.

Jerry

-------------------------------------------------------------------------- 
Note:  The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and deleting it from
your computer. Thank you. 
--------------------------------------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: how to start a DOS process in parallel to ant

Posted by "Frank E. Weiss" <fr...@well.com>.
Try using start instead of cmd, that might work.

<exec dir="${WC_HOME}" executable="start" os="Windows 2000">
                        <arg line="startWeblogic.cmd"/>
</exec>

"Li, Jerry" wrote:

> Hi, there:
>
> is there any way to let the last echo target get executed without stopping
> weblogic?
> The problem I am facing now is that the last echo target gets displayed only
> after I stop weblogic in another DOS shell. My goal is to implement a
> parallel process of weblogic while ant script continues.
>
>         <target name="deploy2Weblogic" depends="init">
>                 <antcall target="createWlsJ2eeApps"/>
>                 <copy todir="${WC_HOME}">
>                         <fileset
> dir="${DELIVERABLE_DIR}${FILE_SEP}Weblogic"/>
>                 </copy>
>                 <exec dir="${WC_HOME}" executable="cmd" os="Windows 2000">
>                         <arg line="/c start startWeblogic.cmd"/>
>                 </exec>
>                 <echo message="Build Finished"/>
>         </target>
>
> Appreciate your help.
>
> Jerry
>
> --------------------------------------------------------------------------
> Note:  The information contained in this message may be privileged and
> confidential and protected from disclosure. If the reader of this message is
> not the intended recipient, or an employee or agent responsible for
> delivering this message to the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this communication is
> strictly prohibited. If you have received this communication in error,
> please notify us immediately by replying to the message and deleting it from
> your computer. Thank you.
> --------------------------------------------------------------------------
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>