Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 69479 invoked by uid 500); 23 May 2001 21:40:47 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 69361 invoked from network); 23 May 2001 21:40:44 -0000 X-Authentication-Warning: cerium.eredyne.com: mail owned process doing -bs Message-ID: <008d01c0e3d0$f3d3f170$6400000a@krypton> From: "Aaron Haspel" To: Subject: wildcards in replace Date: Wed, 23 May 2001 17:40:14 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_008A_01C0E3AF.6CA55390" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_008A_01C0E3AF.6CA55390 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there any way to use wildcard characters in the replace task in = addition to some combination of properties and string literals? What I = want to do is convert an absolute directory path (say, "/home/aaron", = but it could be some path of which I have no advance knowledge) to the = last directory in that path ("aaron"), and I'm trying something like = this: which fails: "/home/aaron" becomes "home/aaron", nothing is replaced at = all. Is there any way in ant to get what I want? Thanks for an informative list, Aaron ------=_NextPart_000_008A_01C0E3AF.6CA55390 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there any way to use wildcard = characters in the=20 replace task in addition to some combination of properties and string=20 literals?  What I want to do is convert an absolute directory path = (say,=20 "/home/aaron", but it could be some path of which I have no advance = knowledge)=20 to the last directory in that path ("aaron"), and I'm trying something = like=20 this:
 
<replace "${user.home}" = token=3D"**/"=20 />
 
which fails: "/home/aaron" becomes = "home/aaron",=20 nothing is replaced at all.  Is there any way in ant to get what I=20 want?
 
Thanks for an informative = list,
Aaron
------=_NextPart_000_008A_01C0E3AF.6CA55390--