, August 22, 2007 9:35 PM
To: Ant Users List
Subject: Re: String replace.
Try escaping the & character xml-style with & instead of \&
pattern="<"
-Andrew
On 8/22/07, Chun Ji <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Does someone know how to replace a
Try escaping the & character xml-style with & instead of \&
pattern="<"
-Andrew
On 8/22/07, Chun Ji <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Does someone know how to replace a string such as "<" to be "<" in a
> html file by ANT.
> The target that I have created in my build.xml is :
> "
> ...
Hi,
Does someone know how to replace a string such as "<" to be "<" in a html
file by ANT.
The target that I have created in my build.xml is :
"
...
..
",
but I see such errors:
"
The value of attribute "replace" associated with an element type "replaceregex"
must not
If does not work for you, I dont see any other way without external
libs ...
Oh - yes:
ailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 10. Januar 2007 03:56
>An: user@ant.apache.org
>Betreff: Ant String replace
>
>Probably very basic question, but cant file the answer.
>
>I need to replace strings, not in file, just simple string.
>
>String x = "This is
Jan
>-Ursprüngliche Nachricht-
>Von: Joe Eugene [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 10. Januar 2007 03:56
>An: user@ant.apache.org
>Betreff: Ant String replace
>
>Probably very basic question, but cant file the answer.
>
>I need to replace string
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 La