Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: AW: executing batch files in separate windows

AW: AW: executing batch files in separate windows

2007-06-21       - By Jan.Materne@(protected)
Reply:     1     2  

You could it more readable with

<project>

   <macrodef name="bat">
       <attribute name="file"/>
       <sequential>
           <exec executable="cmd" spawn="true">
               <arg line="/c start @{file}"/>
           </exec>
       </sequential>
   </macrodef>

   <bat file="first.bat"/>
   <bat file="second.bat"/>

</project>


Jan

>-----Urspr?ngliche Nachricht-----
>Von: arijit [mailto:ghosh.arijit@(protected)]
>Gesendet: Mittwoch, 20. Juni 2007 16:00
>An: user@(protected)
>Betreff: Re: AW: executing batch files in separate windows
>
>
>Thanks Steve. Got it working.
>
>Posting the solution for other's reference --
>
><target name="test">
>
> <exec executable="cmd" spawn="true">
>   <arg line="/c start first.bat"/>
> </exec>
>    
> <exec executable="cmd" spawn="true">
>   <arg line="/c start second.bat"/>
> </exec>
>
></target>
>
>
>Steve Loughran wrote:
>>
>> arijit wrote:
>>> Thanks Jan. Unfortunately I am not an expert in ANT. Can
>you provide some
>>> more code to show how I can run the batch files in separate
>dos prompts ?
>>>
>>>
>>
>> do you mean you actually want the windows to pop up? Thats no longer
>> ant, that's windows.
>>
>> you need to exec the program "start". Before you start
>rushing out lots
>> of support emails related to it
>>
>> 1. start /? will list the options
>> 2. those of us who moved to linux many years ago cannot provide help
>>
>> -steve
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>--
>View this message in context:
>http://www.nabble.com/executing-batch-files-in-separate-windows
>-tf3952030.html#a11214005
>Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@(protected)
>For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.