ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Eugene" <>
Subject Ant String replace
Date Wed, 10 Jan 2007 02:56:13 GMT
Probably very basic question, but cant file the answer.

I need to replace strings, not in file, just simple string.

String x = "This is a new String";

String y = x.replace("String", "Text");

How do you replace the strings in properties?

An alternate solution to my problem would be find the Last folder Name
in the Current Path.

i..e Path = "c:\dir1\dir2\dir3"

If basedir is dir3, how can find the name of the folder before it? i.e. dir2?

Appreciate your help.


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

View raw message