Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40074 invoked from network); 17 Nov 2003 12:16:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Nov 2003 12:16:51 -0000 Received: (qmail 89079 invoked by uid 500); 17 Nov 2003 12:16:41 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 88939 invoked by uid 500); 17 Nov 2003 12:16:40 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 88919 invoked from network); 17 Nov 2003 12:16:39 -0000 Received: from unknown (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by daedalus.apache.org with SMTP; 17 Nov 2003 12:16:39 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id hAHCGW9k018340 for ; Mon, 17 Nov 2003 13:16:32 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id ; Mon, 17 Nov 2003 13:16:35 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF72B1@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: copy Date: Mon, 17 Nov 2003 13:16:32 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3AD04.A358DC10" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3AD04.A358DC10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ok, big examples for all three. But I have NOT tested these ideas :-) a) using AntContrib=B4s AntContrib is available at [1]. If you have a list (like your String) you can use You can define the target directories using s. b) using AntContrib=B4s Simply the same as with but without the need of a new target. The problem is that this task is not described in the manual (of AntContrib). So you have to look into the source (and understand the most of = that)... or the way using But requires the newest Ant version (not released yet), so sais = the javadoc comment at the beginning of the For.java [2]: * Task definition for the for task. This is based on * the foreach task but takes a sequential element * instead of a target and only works for ant >=3D 1.6Beta3 You can download the latest binary from [3]. c) using If you uses you can iterate over that Because you=B4re using Ant=B4s API, a look into their description [5] = would be good. And the manual for