ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Starting processes in parallel
Date Mon, 28 Nov 2005 10:17:51 GMT
<antcall>

or 

define that start process in <macrodef> and refer to that in individual and the parallel
targets.


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: D. Bollmann [mailto:dbollmann001@web.de] 
>Gesendet: Montag, 28. November 2005 10:57
>An: user@ant.apache.org
>Betreff: Starting processes in parallel
>
>Hi,
>
>I am using the same build file to start (JMS) publishers and 
>subscribers:
>
>  <target name="publisher"  ...> ... </target>
>  <target name="subscriber" ...> ... </target>
>
>I would like to use these targets to define a new target for 
>starting i publishers and j subscribers in parallel (They 
>should be able to send messages to each other).
>
>I am thinking about something like:
>
>  <property name="num-of-publishers"  value="6"></property>
>  <property name="num-of-subscribers" value="3"></property>
>
>  <target name="publisher"  ...> ... </target>
>  <target name="subscriber" ...> ... </target>
>
>  <target name="publishers-and-subscribers">
>    <parallel>
>
>      <echo message="Starting ${num-of-publishers} Publishers."></echo>
>      <??? ...>
>
>      <echo message="Starting ${num-of-subscribers} 
>Subscribers."></echo>
>      <??? ...>
>
>    </parallel>
>  </target>
>
>How could I express this in "ant"?
> 
>Thanks for any help,
>
>Dietrich
>
>
>
>---------------------------------------------------------------------
>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


Mime
View raw message