Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 588 invoked from network); 1 Jul 2008 19:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 19:04:20 -0000 Received: (qmail 14948 invoked by uid 500); 1 Jul 2008 19:04:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14920 invoked by uid 500); 1 Jul 2008 19:04:18 -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 14903 invoked by uid 99); 1 Jul 2008 19:04:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 12:04:18 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [146.197.27.90] (HELO barrierL241.nike.com) (146.197.27.90) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 19:03:27 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Multiple Date: Tue, 1 Jul 2008 12:01:35 -0700 Message-ID: <200807011902.m61J2WHX002548@barrierL241.nike.com> In-Reply-To: <62BC2AAA2507BE4A9112E57C7540450D0E69010B@exrecc01.mnpower.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Multiple Thread-Index: AcjbqV1LRK/H6qPYQIKYbwxSGrOvVAAAHj7gAACzcFA= References: <439314.42606.qm@web55108.mail.re4.yahoo.com> <62BC2AAA2507BE4A9112E57C7540450D0E69010B@exrecc01.mnpower.com> From: "Anderson, Rob (Global Trade)" To: "Ant Users List" X-OriginalArrivalTime: 01 Jul 2008 19:02:32.0530 (UTC) FILETIME=[04233320:01C8DBAD] X-Virus-Checked: Checked by ClamAV on apache.org Why not use the existing replace task with the replacefilterfile attribute? I'm not sure what you mean by 'dynamic replace count'. -Rob Anderson -----Original Message----- From: Raymond Berg (ALLETE) [mailto:rberg@mnpower.com]=20 Sent: Tuesday, July 01, 2008 11:45 AM To: Ant Users List Subject: Multiple=20 I've got a situation where I need to search deployment files for various server names of a variable count when moving from staging to production automatically. However, I can't seem to figure out how to handle a dynamic replace count. I was looking at the script task but found no syntax that seemed to help. (Also investigated path tools and the few string operations available) I'm debating whether to create a new Ant task, but I'm not comfortable enough with my skills yet to attempt this. If it helps, my script is currently passing in a single delimited string as follows: find1~replace#find2~replace2#...#findn~replacen Any ideas? Raymond --------------------------------------------------------------------- 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