You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bourzeix, Hervé <He...@Genesys.com> on 2008/04/02 09:16:57 UTC

launching cmd from ANt

Hello,

How I can from an ant script running an independant dos command? 

		<exec executable="cmd" dir="${wl.domain.path}" newenvironment="false">
			<arg line="/c start startWebLogic.cmd"/>
		</exec>


this antlet wait for the exit of cmd.exe to return back to ant processing


any help ? 

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


Re: launching cmd from ANt

Posted by Steve Loughran <st...@apache.org>.
Bourzeix wrote:
> Hello,
> 
> How I can from an ant script running an independant dos command? 
> 
> 		<exec executable="cmd" dir="${wl.domain.path}" newenvironment="false">
> 			<arg line="/c start startWebLogic.cmd"/>
> 		</exec>
> 
> 
> this antlet wait for the exit of cmd.exe to return back to ant processing
> 

spawn="true". but you lose all output from the command line


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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


Re: launching cmd from ANt

Posted by supareno <re...@free.fr>.
Hello,

why don't you use the Weblogic ant tasks?

you can check out this:
http://edocs.bea.com/wls/docs81/toolstable/ToolsTable.html#1009580
and this:
http://photos.sys-con.com/story/res/48932/source.html

> Hello,
>
> How I can from an ant script running an independant dos command? 
>
> 		<exec executable="cmd" dir="${wl.domain.path}" newenvironment="false">
> 			<arg line="/c start startWebLogic.cmd"/>
> 		</exec>
>
>
> this antlet wait for the exit of cmd.exe to return back to ant processing
>   
i think that the cmd.exe will exit when Weblogic will be shutdown (i'm 
not familiar with windows stuff)
>
> any help ? 
>
> ---------------------------------------------------------------------
> 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