Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 22698 invoked from network); 9 Nov 2005 15:13:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Nov 2005 15:13:56 -0000 Received: (qmail 3665 invoked by uid 500); 9 Nov 2005 15:13:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 3625 invoked by uid 500); 9 Nov 2005 15:13:45 -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 3614 invoked by uid 99); 9 Nov 2005 15:13:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 07:13:45 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.200.155] (HELO web30902.mail.mud.yahoo.com) (68.142.200.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 09 Nov 2005 07:13:38 -0800 Received: (qmail 92938 invoked by uid 60001); 9 Nov 2005 15:13:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RGCQpyUe8TcYIjAgILFsfFKxn55WSTTvY68JbFc34XOVI7z6o8ifEKn6yXjnwhHVgNSxSW8ki9QILrzqmQvuS8qZ/G2qUJwuqZGSvk1J9eCVI98cSmXcptulz9aManWSlDZmMn6uEET788+uscGl3JsjLQ2RbYlQOIw5Hu3Os+c= ; Message-ID: <20051109151323.92936.qmail@web30902.mail.mud.yahoo.com> Received: from [66.10.233.130] by web30902.mail.mud.yahoo.com via HTTP; Wed, 09 Nov 2005 07:13:23 PST Date: Wed, 9 Nov 2005 07:13:23 -0800 (PST) From: Matt Benson Subject: Re: Bulk token substitution To: Ant Users List In-Reply-To: <8CA1EE8AD467DA44AD0A4EE122E42B0BE1F8C1@01AL10015010133> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hmm... read http://ant.apache.org/manual/CoreTypes/filterset.html specifically the element of . -Matt --- "Brown, Carlton" wrote: > Hello, > > > > I'm looking to do bulk replacement of tokens in a > file. This is to > replace a perl-based build solution. I have > created the > single-replacement solution in ant, but I am > somewhat stumped as to how > to do a bulk substitution. > > > > The following code copies all files named *.src to a > new file without > the *.src suffix, replacing APP_HOME with > /usr/local/app, as expected: > > > > > > unless="macro.uptodate"> > > > > > > includes="**/*.src" /> > > to="*" /> > > > > value="/usr/local/app" > /> > > > > > > > > > > The problem is that we have something like 50 other > tokens to replace in > addition to APP_HOME. I do not want to clutter > this build file with > the filter definitions, and I'd like to share these > filter definitions > with other build tasks. I'd like to define the > filterset in an > external file, if possible. > > > > Can someone get me going in the right direction? I > read the FAQ and > this does not seem to be covered. > > > ***** > The information transmitted is intended only for the > person or entity to which it is addressed and may > contain confidential, proprietary, and/or privileged > material. Any review, retransmission, dissemination > or other use of, or taking of any action in reliance > upon this information by persons or entities other > than the intended recipient is prohibited. If you > received this in error, please contact the sender > and delete the material from all computers. 162 > > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org