Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 62063 invoked from network); 5 Dec 2006 06:45:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 06:45:52 -0000 Received: (qmail 2233 invoked by uid 500); 5 Dec 2006 06:45:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 1963 invoked by uid 500); 5 Dec 2006 06:45:56 -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 1952 invoked by uid 99); 5 Dec 2006 06:45:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 22:45:56 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 22:45:44 -0800 Received: from z011100.bk.fin.local (z011104.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.13.8/8.13.8) with ESMTP id kB56jKML020322 for ; Tue, 5 Dec 2006 07:45:21 +0100 Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Tue, 5 Dec 2006 07:45:21 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: uptodate Date: Tue, 5 Dec 2006 07:45:21 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: uptodate Thread-Index: AccYAPO49xYlhyFpQW+UkouYHmayfAAN+4bQ From: To: X-OriginalArrivalTime: 05 Dec 2006 06:45:21.0910 (UTC) FILETIME=[EF85B160:01C71838] X-Virus-Checked: Checked by ClamAV on apache.org Try the selector instead of a mapper. Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: Bailey, David [mailto:David.Bailey@pearson.com]=20 >Gesendet: Dienstag, 5. Dezember 2006 01:05 >An: Ant Users List >Betreff: uptodate > >This seems like a problem which must have a very simple=20 >solution, but I can't find it. > >=20 > >A single XML file is used to generate a large number of HTML=20 >files. And I actually have nearly 100 such XML files. These=20 >XML files rarely change, so I'd like to save time by using=20 > to only regenerate the HTML when necessary. =20 >However, I can't figure out the correct way to define a mapper. > >=20 > >I'm trying to use the following construct: > >=20 > > > > . . . > > > >=20 > > > > > = srcfile=3D"${xmldir}/SubDir/${xml_filename}.xml"> > > > > > > > >=20 > >Looking at my choices of available mappers, none seem to do=20 >what I want. >I have attempted variants of the globmapper such as > >=20 > > > >=20 > > . . . but it seems that globmappers don't work unless you=20 >include a * in the 'from' attribute. I thought I would get it=20 >with the following regexp mapper: > >=20 > > > >=20 > > . . . but frustratingly, the regexpmapper interprets '*.html' >literally, rather than interpolating the * as a wild card. In=20 >fact, my experimentation indicates that the only regexp=20 >interpolation which occurs in the 'to' attribute is \1, \2,=20 >etc. Similarly, if I abandon the altogether and=20 >instead use the targetfile attribute, such as=20 >'targetfile=3D"${htmldir}/*.html"', the * is interpreted literally. > >=20 > >Obviously I can write my own mapper, but I can't believe there=20 >isn't a solution out there with the tasks already available. =20 >Am I overlooking something? > >=20 > >Thanks, > >--dave > > >*************************************************************** >************* >This email may contain confidential material.=20 >If you were not an intended recipient, >Please notify the sender and delete all copies.=20 >We may monitor email to and from our network.=20 >*************************************************************** >************* > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org