ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Haspel" <>
Subject wildcards in replace
Date Wed, 23 May 2001 21:40:14 GMT
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:

<replace "${user.home}" token="**/" />

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,

View raw message