Ant Contrib has a PropertyRedgex task you can use...

Or you could definitely do something with scripting...like beanshell...

On Mon, 22 Jun 2009, Scott Stark wrote:


Hi all, I see Ant tasks that can do string substitution in a file. Is there
any way to do that in a simple string? I want to remove trailing spaces
from property values.

The reason I ask is that we use properties files to specify property values
such as file names. Occasionally someone will put an extra space at the end
of a file name, which is impossible to see in a text editor, but the extra
space can cause the build to fail.

Thanks,

Scott Stark

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to