Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 46192 invoked from network); 25 Jun 2010 08:58:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 08:58:17 -0000 Received: (qmail 51046 invoked by uid 500); 25 Jun 2010 08:58:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 50809 invoked by uid 500); 25 Jun 2010 08:58:14 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 50801 invoked by uid 99); 25 Jun 2010 08:58:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 08:58:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antuser@gmail.com designates 72.14.220.157 as permitted sender) Received: from [72.14.220.157] (HELO fg-out-1718.google.com) (72.14.220.157) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 08:58:07 +0000 Received: by fg-out-1718.google.com with SMTP id d23so2100446fga.16 for ; Fri, 25 Jun 2010 01:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=avx+BszQiCdk00G4eXzdpHJn6bilLot7GiNHYx+V0JA=; b=lRJCeHJBZ+mONifXraVlH2jbB29mMDSuuNurqWN3gt5Man6uvHwR9FIcczTxazd5ZN 4t9pfXf8+zfltKVMvTPAsR6hRO91IYtp62Z+JkdTIIfFdilOaCeEKPuuT6NAsdcK/pv5 V7Uk7yrH2pGKykr6Hb3gNHH15ZvuC7niqO33c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=lQ0tIZaAqnKIiqfcSfgkG5qITuPST3qoeX7kM5gE4j7PTZLjkRxbzC2Am2on3e0kvO 7SVHQmSZpjDI88iqrtKyHq+gQznTuHDmaFljVXbaZ0frXVfAikmZpyE9UskNn5u94vMZ +uSSa4ikLowB0o/JYW1EA1z0WYP09qFfFBzyk= MIME-Version: 1.0 Received: by 10.223.144.79 with SMTP id y15mr145675fau.22.1277449584697; Fri, 25 Jun 2010 00:06:24 -0700 (PDT) Received: by 10.223.106.212 with HTTP; Fri, 25 Jun 2010 00:06:24 -0700 (PDT) In-Reply-To: <20100624211749.GB2420@wladimir> References: <20100624211749.GB2420@wladimir> Date: Fri, 25 Jun 2010 09:06:24 +0200 Message-ID: Subject: Re: Copying a static list of files From: Patrick Martin To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, Thank you for your suggestions. Using embedded would work if i had the list of files upfront. But I only have it at runtime. I'll check if short filenames can help me. This can be tricky as I need to strip out the base directory with short file names from my file list... Thanks, On Thu, Jun 24, 2010 at 11:17 PM, Michael Ludwig wrote: > Patrick Martin schrieb am 24.06.2010 um 21:21 (+0200): >> Sorry, I meant to say that "spaces in filenames are unfriendly with >> filelist", not filesets.... > > Not sure I understand the problem you're facing, but > definitely works with filenames containing spaces, you just have > to put them in a nested element. > > G:\dev\Ant :: more /t2 spacelist.txt > G:\dev\Ant\dir with spaces\d r e i.txt > G:\dev\Ant\dir with spaces\eins.txt > G:\dev\Ant\dir with spaces\zwei.txt > > G:\dev\Ant :: more /t2 spacelist.xml > > > > =A0Do <loadfile> and <filelist> > =A0work with spacy filenames? > > =A0 > =A0 > =A0 =A0So it works using <loadfile>. > > =A0 =A0 =A0files=3D"eins.txt zwei.txt"> > =A0 =A0 > =A0 > =A0 =A0 =A0pathsep=3D"${line.separator}" property=3D"space.prop"/> > =A0 > =A0 =A0And it also works using <filelist>. > > > > G:\dev\Ant :: ant -f spacelist.xml > Buildfile: G:\dev\Ant\spacelist.xml > =A0 =A0 [echo] Do and > =A0 =A0 [echo] =A0 work with spacy filenames? > =A0 =A0 [echo] G:\dev\Ant\dir with spaces\d r e i.txt > =A0 =A0 [echo] G:\dev\Ant\dir with spaces\eins.txt > =A0 =A0 [echo] G:\dev\Ant\dir with spaces\zwei.txt > =A0 =A0 [echo] =A0 So it works using . > =A0 =A0 [echo] G:\dev\Ant\dir with spaces\eins.txt > =A0 =A0 [echo] G:\dev\Ant\dir with spaces\zwei.txt > =A0 =A0 [echo] G:\dev\Ant\dir with spaces\d r e i.txt > =A0 =A0 [echo] =A0 And it also works using . > > BUILD SUCCESSFUL > > -- > Michael Ludwig > > --------------------------------------------------------------------- > 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