Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 36941 invoked from network); 14 Mar 2003 07:39:26 -0000 Received: from dnsinet.rzf-nrw.de (193.109.238.66) by daedalus.apache.org with SMTP; 14 Mar 2003 07:39:26 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.8/8.12.8) with ESMTP id h2E7dZxk023435 for ; Fri, 14 Mar 2003 08:39:35 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id ; Fri, 14 Mar 2003 08:39:36 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B5603CCC341@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: foreach directory copy question Date: Fri, 14 Mar 2003 08:39:34 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2E9FC.DBC38710" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2E9FC.DBC38710 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Java - and therefore Ant - stores the newline in java.line.separator. You can access it with ${java.line.separator}. (Because that=B4s so long I usually define a short cut for this - like =
in HTML: ) I think you should try a kind of this Jan Mat=E8rne -----Urspr=FCngliche Nachricht----- Von: Kiarna Boyd [mailto:kiarna@hotmail.com] Gesendet am: Donnerstag, 13. M=E4rz 2003 22:23 An: user@ant.apache.org Betreff: foreach directory copy question Good afternoon, I'm trying to copy the contents of a master directory to several client = directories as part of my build. The requirements include not to overwrite some of the existing client = build=20 sub dirs. I read the archieves and saw a section on the topic and Simon was kind=20 enough to send me some examples using foreach. However I am having a hard time understanding some of it and would = greatly=20 appreciate your assistance. So to begin the masterdir I also need to know how to change the delimiter in the foreach to new = line=20 rather than coma. So I may use the out put form unix 'ls' delimiter=3D? what is the ant symbol for newline? I'd like to do the list from a Unix ls cmd to get a current listing of = the=20 new client directories each time the build is run. I believe I have to add a filset exclude for the sub directories I do = not=20 want copied. I tried to use wildcards but ant actually made directories named '**'. ;) Thank you for your time. Kiarna _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. =20 http://join.msn.com/?page=3Dfeatures/featuredemail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------_=_NextPart_001_01C2E9FC.DBC38710--