Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 62497 invoked from network); 10 Sep 2007 10:33:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 10:33:46 -0000 Received: (qmail 34994 invoked by uid 500); 10 Sep 2007 10:33:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34955 invoked by uid 500); 10 Sep 2007 10:33:36 -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 34944 invoked by uid 99); 10 Sep 2007 10:33:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 03:33:35 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of info@mitjab.com designates 194.165.104.80 as permitted sender) Received: from [194.165.104.80] (HELO server1.slomarketing.net) (194.165.104.80) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 10:33:32 +0000 Received: from localhost ([127.0.0.1] helo=89.212.7.225) by server1.slomarketing.net with esmtpa (Exim 4.54) id 1IUgZo-0002tR-Au for user@ant.apache.org; Mon, 10 Sep 2007 12:33:08 +0200 Received: from phpmailer ([89.212.7.225]) by 89.212.7.225 with HTTP (UebiMiau); Mon, 10 Sep 2007 12:33:08 +0200 Date: Mon, 10 Sep 2007 12:33:08 +0200 To: Ant Users List From: "Mitja B." Reply-to: "Mitja B." Subject: Re: AW: Open and read file with ant and then copy Message-ID: <0d75d807ffee20d6b9ffd77ef6bd6513@89.212.7.225> X-Priority: 3 X-Mailer: UebiMiau [PHPMailer version 1.70] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked by ClamAV on apache.org Thx you for your help, i will work on your solution. It is verry good idea. Thx again regards -- L.P. Mitja B. --------- Original Message -------- From: Ant Users List To: user@ant.apache.org Subject: AW: Open and read file with ant and then copy Date: 10/09/07 11:53 > Just an idea and not tested. Use '=' for separating source from target name. Used AntContrib. > > copy.txt > -------- > /a/b/c.xml=/d/e/f.xml > .... > > > > <loadfile property="allfiles" file="copy.txt"/> > <ac:for list="${allfiles}" param="line"> > <sequential> > <ac:propertyregex property="from" input="@{file}" regexp="(.*)=(.*)" select="1" override="true"/> > <ac:propertyregex property="to" input="@{file}" regexp="(.*)=(.*)" select="2" override="true"/> > <copy file="${from}" tofile="${to}"/> > </> > </> > > > > Jan > > > >-----Urspr�ngliche Nachricht----- > >Von: Mitja B. [mailto:info@mitjab.com] > >Gesendet: Montag, 10. September 2007 10:32 > >An: Materne, Jan (RZF) > >Betreff: Re: AW: Open and read file with ant and then copy > > > >We have few different customers which all have uniq files to > >copy. We want > >that if is possible ant read project.txt file and in it are > >all relative > >paths for files to copy, then ant will copy all this files. > > > >Is this possible? > > > > > >--------- Original Message -------- > >From: Jan.Materne@rzf.fin-nrw.de > >To: user@ant.apache.org <user@ant.apache.org>, info@mitjab.com > ><info@mitjab.com> > >Subject: AW: Open and read file with ant and then copy > >Date: 10/09/07 09:49 > > > >> What is the use case for using this project.txt? > >> > >> Usually you copy a bunch of files with &lt;copy todir&gt;&lt;fileset > >dir=&quot;from&quot;&gt; > >> > >> > >> Jan > >> > >> &gt;-----Urspr�ngliche Nachricht----- > >> &gt;Von: Mitja B. [mailto:info@mitjab.com] > >> &gt;Gesendet: Montag, 10. September 2007 09:29 > >> &gt;An: user@ant.apache.org > >> &gt;Betreff: Open and read file with ant and then copy > >> &gt; > >> &gt;I have big problem. I search but can not find and solution. > >> &gt; > >> &gt;We want to open some file, for example project.txt > >> &gt; > >> &gt;in it we will have content like this > >> &gt; > >> &gt;instmmconnection.xml projrtuconnection.xml > >> &gt; > >> &gt;we want now that ant read this file and copy connectiion.xml > >> &gt;from instmm > >> &gt;directory to projrtu directory > >> &gt; > >> &gt;How can we do this with ant, or even better is this possible? > >> &gt; > >> &gt;Thx > >> &gt; > >> &gt;________________________________________________ > >> &gt;Message sent using UebiMiau 2.7.10 > >> &gt; > >> &gt; > >> &gt; > >> > >&gt;----------------------------------------------------------- > >---------- > >> &gt;To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > >> &gt;For additional commands, e-mail: user-help@ant.apache.org > >> &gt; > >> &gt; > >> > >> > > > >________________________________________________ > >Message sent using UebiMiau 2.7.10 > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > ________________________________________________ Message sent using UebiMiau 2.7.10 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org