Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Creating property using regular expression on string/property
value

Creating property using regular expression on string/property
value

2003-02-16       - By Tony Obermeit

I have a property value that I want to use for part of a file name but the
property value sometimes includes spaces that I don't want to include in
the filename.  I am looking to create a new property value but apply a
regular expression to an existing property value when I create it.  The
examples I've seen seem to do this with replacing tokens within an existing
file, I want to do it effectively within a string in my build script.

Thanks

Tony




©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.