From user-return-67664-apmail-ant-user-archive=ant.apache.org@ant.apache.org Mon May 04 15:49:23 2009 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 41284 invoked from network); 4 May 2009 15:49:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 15:49:23 -0000 Received: (qmail 88975 invoked by uid 500); 4 May 2009 15:49:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 88896 invoked by uid 500); 4 May 2009 15:49:21 -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 88886 invoked by uid 99); 4 May 2009 15:49:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 15:49:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ddevienne@gmail.com designates 209.85.217.213 as permitted sender) Received: from [209.85.217.213] (HELO mail-gx0-f213.google.com) (209.85.217.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 15:49:15 +0000 Received: by gxk9 with SMTP id 9so8626704gxk.4 for ; Mon, 04 May 2009 08:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SYjKpTKauvWOuqWHsECBVJ5+1O1o4/BoY4TGVdBwLG0=; b=mckBLgWLaIXSlX4bpBX3DebKzhuOQJ2esxOTtSdaXqCahA930fpyfteX4GyDfQEJBB f+n1fu03OI40e4127B9WIN9jRqeuX1EGg9wTFk5ir5EWBH1GsN8pmEF8KfgC2mM/wMJS YIQ6bYBLC42IU0O2i6RWu07pYkeGti4WMbb3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rupAq0ckUOUSH6V9uRos6hQn1W3FfjwSOgCLHu0FdRdFF/qgCoqOFdnnmzXW08Qh7I timDQDCbjGB39k3fbrw4DkwYuMuceYHQgiCbC9y0WtPSxsmAbm70jvsiYS27sY94M7u0 fKL6W6amsHcjSVWmqRRVImGRGgZz4AD5Vbq60= MIME-Version: 1.0 Received: by 10.151.125.13 with SMTP id c13mr12374666ybn.127.1241452134518; Mon, 04 May 2009 08:48:54 -0700 (PDT) In-Reply-To: <927B303FE145774289C9CC3312881CC501A8F6D2@IMS-EMAIL.ims.dom> References: <927B303FE145774289C9CC3312881CC501A8F6D2@IMS-EMAIL.ims.dom> Date: Mon, 4 May 2009 10:48:54 -0500 Message-ID: <255d8d690905040848y758f4f27gd2d33885913e4e4c@mail.gmail.com> Subject: Re: String manipulation (parsing / padding) From: Dominique Devienne To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, May 4, 2009 at 10:27 AM, Beth Hechanova w= rote: > I have been using NAnt lately and it has some built in functions for > doing this sort of string manipulation. =A0Now I need to implement the > same logic in Ant scripts. =A0I have been looking for something similar i= n > Ant, but I have yet to come across anything. =A0I am using Ant v1.7.1. Ant doesn't have a task for everything, in part because it's easy to add th= em in Java, but also because little formatting things like your need can also be implemented in a true scripting language (javascript, jython, beanshell, etc...) hosted inside Ant. Take a look at the