ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SimonRichards...@hbosts.com
Subject RE: Copy to Multiple Targets from a Single Source
Date Mon, 27 Jan 2003 13:12:09 GMT
That works a treat, many thanks to Roland and Jan.

BTW

Does anyone know there isn't an up-to-date dist of the ant-contribs on sourceforge ?  I'm
not trying to pick a fight - just wondered if there was an explanation ;-).

Simon

> -----Original Message-----
> From: EXT / FOCAL MALAPRADE Roland 
> [mailto:ext.focal.malaprade@sncf.fr]
> Sent: 27 January 2003 12:16
> To: 'Ant Users List'
> Subject: RE: Copy to Multiple Targets from a Single Source
> 
> 
> You can get the Java tasks from
> http://gump.covalent.com/jars/latest/ant-contrib/
> 
> > -----Message d'origine-----
> > De : SimonRichardson2@hbosts.com 
> [mailto:SimonRichardson2@hbosts.com]
> > Envoyé : lundi 27 janvier 2003 13:09
> > À : ant-user@jakarta.apache.org
> > Objet : RE: Copy to Multiple Targets from a Single Source
> > 
> > 
> > Jan
> > 
> > Unfamiliar as I am with the ant-contribs I followed the link 
> > to sourceforge, but could only find the following for download 
> > 
> > cpptasks-1.0b1
> > 
> > and there doesn't appear to be a foreach task.  
> > 
> > Can you offer an alternative location / solution?
> > 
> > Simon
> > 
> > > -----Original Message-----
> > > From: Jan.Materne@rzf.fin-nrw.de 
> [mailto:Jan.Materne@rzf.fin-nrw.de]
> > > Sent: 27 January 2003 11:18
> > > To: ant-user@jakarta.apache.org
> > > Subject: AW: Copy to Multiple Targets from a Single Source
> > > 
> > > 
> > > The only way I know is with AntContrib´s foreach:
> > > 
> > > <foreach target="copy" param="targetbasedir">
> > > 	<fileset dir="targetbasedir">
> > > 		<include refid="subdirlist"/>
> > > 	</fileset>
> > > </foreach>
> > > 
> > > <target name="copy">
> > >     <copy todir="${targetbasedir}">
> > >         <fileset dir="mybasedir">
> > >         </fileset>
> > >     </copy>
> > > </target>
> > > 
> > > 
> > > 
> > > Jan Matèrne
> > > 
> > > 
> > > -----Ursprüngliche Nachricht-----
> > > Von: SimonRichardson2@hbosts.com 
> > [mailto:SimonRichardson2@hbosts.com]
> > > Gesendet am: Montag, 27. Januar 2003 12:10
> > > An: ant-user@jakarta.apache.org
> > > Betreff: Copy to Multiple Targets from a Single Source
> > > 
> > > Is there a way of copying a fileset to many destination 
> directories?
> > > 
> > > Something along the lines:
> > > 
> > > <copy fromdir="mybasedir">
> > > 	<fileset dir="targetbasedir">
> > > 		<include refid="subdirlist"/>
> > > 	</fileset>
> > > </copy>
> > > 
> > > If base dir = c:\work\base
> > > and targetdir = c:\target
> > > 
> > > and the pattern set for subdirlist contains foo bar foobar
> > > 
> > > then the contents of c:\work\base would be copied to 
> > > c:\target\foo
> > > c:\target\bar
> > > c:\target\foobar
> > > 
> > > Simon
> > > 
> > > 
> > > 
> > > > Simon Richardson
> > > > Technology
> > > > Tel: 020 7574 8838
> > > > E Mail: simonrichardson2@hbosts.com
> > > > 
> > > > HBOS Treasury Services plc
> > > > 33 Old Broad Street
> > > > London
> > > > EC2N 1HZ
> > > > 
> > > 
> > > -- 
> > > 
> > > --------------------------------------------------------------
> > > --------------
> > > --
> > > For more information on HBOS Treasury Services, please visit
> > > http://www.HBOSTS.com
> > > 
> > > Or for details of our online FX & Deposit services, please go to
> > > http://www.HBOSdeal.com
> > > 
> > > HBOS Treasury Services plc is part of the HBOS Group, which 
> > > also includes
> > > Halifax plc and Bank of Scotland.
> > > Registered Office: 33 Old Broad Street, London EC2N 1HZ. 
> > > Registered No.
> > > 2692890. Registered in England.
> > > Regulated by the Financial Services Authority.
> > > 
> > > The information contained in this message is confidential and 
> > > is intended
> > > for the addressee only. If you have received this message in 
> > > error or there
> > > are any problems please notify the originator immediately. 
> > > The unauthorised
> > > use, disclosure, copying or alteration of this message is strictly
> > > forbidden. This mail and any attachments have been scanned 
> > > for viruses prior
> > > to leaving the HBOS Treasury Services plc network. HBOS 
> > > Treasury Services
> > > plc will not be liable for direct, special, indirect or 
> > consequential
> > > damages arising from alteration of the contents of this 
> > > message by a third
> > > party or as a result of any virus being passed on.
> > > 
> > > HBOS Treasury Services plc reserves the right to monitor and 
> > > record e-mail
> > > messages sent to and from this address for the purposes of 
> > > investigating or
> > > detecting any unauthorised use of its system and ensuring its 
> > > effective
> > > operation.
> > > 
> > > ==============================================================
> > > ==============
> > > ==
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> -- 
> 
> --------------------------------------------------------------
> --------------
> --
> For more information on HBOS Treasury Services, please visit
> http://www.HBOSTS.com
> 
> Or for details of our online FX & Deposit services, please go to
> http://www.HBOSdeal.com
> 
> HBOS Treasury Services plc is part of the HBOS Group, which 
> also includes
> Halifax plc and Bank of Scotland.
> Registered Office: 33 Old Broad Street, London EC2N 1HZ. 
> Registered No.
> 2692890. Registered in England.
> Regulated by the Financial Services Authority.
> 
> The information contained in this message is confidential and 
> is intended
> for the addressee only. If you have received this message in 
> error or there
> are any problems please notify the originator immediately. 
> The unauthorised
> use, disclosure, copying or alteration of this message is strictly
> forbidden. This mail and any attachments have been scanned 
> for viruses prior
> to leaving the HBOS Treasury Services plc network. HBOS 
> Treasury Services
> plc will not be liable for direct, special, indirect or consequential
> damages arising from alteration of the contents of this 
> message by a third
> party or as a result of any virus being passed on.
> 
> HBOS Treasury Services plc reserves the right to monitor and 
> record e-mail
> messages sent to and from this address for the purposes of 
> investigating or
> detecting any unauthorised use of its system and ensuring its 
> effective
> operation.
> 
> ==============================================================
> ==============
> ==
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 

-- 

------------------------------------------------------------------------------
For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com

Or for details of our online FX & Deposit services, please go to http://www.HBOSdeal.com

HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and
Bank of Scotland.
Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered
in England.
Regulated by the Financial Services Authority.

The information contained in this message is confidential and is intended for the addressee
only. If you have received this message in error or there are any problems please notify the
originator immediately. The unauthorised use, disclosure, copying or alteration of this message
is strictly forbidden. This mail and any attachments have been scanned for viruses prior to
leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable
for direct, special, indirect or consequential damages arising from alteration of the contents
of this message by a third party or as a result of any virus being passed on.

HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to
and from this address for the purposes of investigating or detecting any unauthorised use
of its system and ensuring its effective operation.

==============================================================================


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


Mime
View raw message