ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Bugel <>
Subject Re: path/to/dir to path_to_dir
Date Mon, 22 Nov 2004 10:44:36 GMT
Robert Mark Bram wrote:
> Hi All!
> I am receiving a path through the command line as a property in my Ant 
> script.
> I am using the property as a path, but I also want to use it as a name, 
> meaning that I want path/to/dir to appear as path_to_di..
> Is there a way to do this?

Look at propertyregex from ant-contrib.
It can create a new property for you from the old one,
doing some regular expression replacements
(such as convert all slashes to underscores)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message