ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Stranathan" <w...@thestranathans.com>
Subject Additional control over <replace> and <filter>?
Date Fri, 27 Apr 2001 01:21:08 GMT
I'm sure I'm not the only one who would like to see this feature, but it
doesn't SEEM as though it's yet available...

Do the <replace> and <filter> tasks allow patterns that might look like
this:

<replace token="@Version:*@" value="Version: ${project.version}"
dir="${srcdir}" />

So it would replace strings like:
/* @Version: 1.0@ */

with:
/* @Version: 2.0@ */

Similar to the way CVS replaces $Id$ tags and such?  I've taken a gander
over the documentation, but it doesn't seem to do that.  Does anybody have
any recommended workaround?  Or did I just get myself on the hook for it by
asking?

Thanks for a REALLY good product!
Will Stranathan


Mime
View raw message