ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arijit <ghosh.ari...@wipro.com>
Subject Re: AW: AW: executing batch files in separate windows
Date Thu, 21 Jun 2007 09:48:57 GMT

Thanks Jan. That is a cleaner approach..


Jan.Materne wrote:
> 
> 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@wipro.com] 
>>Gesendet: Mittwoch, 20. Juni 2007 16:00
>>An: user@ant.apache.org
>>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@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>> 
>>> 
>>> 
>>
>>-- 
>>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@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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/executing-batch-files-in-separate-windows-tf3952030.html#a11229852
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message