Re: Ant task to replace special characters

2006-03-28 Thread Thod Nguyen
Thanks Ivan. it seems that both or requires a file as an input. In my case, i just want to format the string with some replaceable token(s). --- "Ivan \"Rambius\" Ivanov" <[EMAIL PROTECTED]> wrote: > Hello, > > Perhaps you need or tasks. >

Ant task to replace special characters

2006-03-28 Thread Thod Nguyen
is there a simple way in build.xml to replace for instance, a filename foo.bar(1).memory with foo.bar_1.memory using one of the existing Ant task ? Thanks T.N. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http:/

Re: how to return a String object in custom Ant

2006-03-27 Thread Thod Nguyen
Got it... Thanks everyone ... --- "Ivan \"Rambius\" Ivanov" <[EMAIL PROTECTED]> wrote: > Hello, > > --- Thod Nguyen <[EMAIL PROTECTED]> wrote: > > > I'm writing a custom Ant and i would like to > return > > a > > String

how to return a String object in custom Ant

2006-03-27 Thread Thod Nguyen
I'm writing a custom Ant and i would like to return a String object in the void execute() method, what is the best way to do this? Thanks much T.N. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.

Ant task to handle HTTPResponse status code (HELP!!!)

2006-03-23 Thread Thod Nguyen
I'm looking for an existing Ant task that will allow me to look at the HTTPResponse status code so that i know what to do next I've tried nested conditions but this task only handles 2 conditions (if status code <=400, its successful otherwise, it's a failure). This is not what i want. Any