Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14176 invoked from network); 13 Apr 2005 12:00:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 12:00:46 -0000 Received: (qmail 86456 invoked by uid 500); 13 Apr 2005 12:00:32 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 86421 invoked by uid 500); 13 Apr 2005 12:00:32 -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 86406 invoked by uid 99); 13 Apr 2005 12:00:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.lexisnexis.at (HELO mail.lexisnexis.at) (212.27.108.99) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Apr 2005 05:00:30 -0700 Received: from mail.lexisnexis.at (lngviecl11.orac.local) by mail.lexisnexis.at (Clearswift SMTPRS 5.0.4) with ESMTP id for ; Wed, 13 Apr 2005 14:03:42 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Copiing newer files to a directory [was: using file names] X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Wed, 13 Apr 2005 14:01:58 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Copiing newer files to a directory [was: using file names] Thread-Index: AcVAH74lnNt0nnHjSXGUl+RfCdklhgAADbQw From: "Huditsch Roman" To: "Ant Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Thanks for the snippet! I found out that you can = reset a property.=20 What I want to do is quite simple (although unachievable for me): I would like to copy all files from a directory "source", which are = newer to those in "result", to an own directory "input". So, source/a.xml needs to be compared to result/a.xml source/b.xml to result/b.xml and so on.... At the end, the "input" directory should just hold the new files... I don't know how to do this.... Thanks very much for any help.... kind regards, Roman > -----Urspr=FCngliche Nachricht----- > Von: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com]=20 > Gesendet: Mittwoch, 13. April 2005 13:54 > An: Ant Users List > Betreff: Re: AW: [Maybe spam] Re: using file names >=20 > Hello, I am not sure if this will do your job, but here is a=20 > working snippet. > > > > > > > > property=3D"@{file}.basename"/> > basename is ${@{file}.basename} > > > >=20 > Here we bump in the following issue: ant properties are=20 > immutable so if we use basename in the following way=20 > the first=20 > iteration of will set a property named "basename" and=20 > all other resets of this property in the next iteration will=20 > have no effect. That is why we append the absolute name of=20 > the file to the name of the property to ensure uniqueness of=20 > the proeprties' > names. >=20 > However, I do not like this solution, because is not=20 > "the Ant way of doing things" so think twice before using it.=20 > Could you provide more information what are you trying to=20 > achieve with and ; a better idea might come up. >=20 > HTH Ivan >=20 > --- Huditsch Roman > wrote: > > Ah, I see. > > But how can I incorporate it into an statement? > >=20 > > > srcfile=3D"@{file}"> > > > > =20 > > I would like to test @{file} againt the same basename within the=20 > > "result" directory.... > >=20 > > I tried it first with "result/@{file}" which gave me=20 > > "result/c:\Programme\test.xml". > >=20 > > I also tried > > > srcfile=3D"@{file}"> > > > > > > > > > > > > but with no success either.... > >=20 > > Thanks for the help! > >=20 > > wbr, > > Roman >=20 >=20 >=20 > =09 > __________________________________ > Do you Yahoo!?=20 > Yahoo! Small Business - Try our new resources site! > http://smallbusiness.yahoo.com/resources/ >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 > additional commands, e-mail: user-help@ant.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org