Re: How to escape characters in regexp strings?

2007-08-17 Thread David Weintraub
Use " to replace double quotation marks in Ant strings. On 8/17/07, Krzysztof Kucybała <[EMAIL PROTECTED]> wrote: > Hi, > > I have a problem. I'm trying to have ant substitute something in a few > files. Here's the sample: > > < > replaceregexp > file="${artifactsdir}/${label}/${env}/src/include/c

Re: returns true thought there is no listener

2007-08-17 Thread Wayne Cannon
I haven't been monitoring this thread very closely, but if I'm not off base, the following points may explain some of what you are seeing. I'm not a TCP expert, but have been burned in the past and had to learn the following the hard way. -- When you "close" a socket, it actually remains in a

Re: How to escape characters in regexp strings?

2007-08-17 Thread Krzysztof Kucybała
This doesn't work either :o( To show the bigger picture, I have a line in a php file, that looks like this: // Choose your wassup host define("WS_WASSUPHOST", "somehost.somedomain.net"); during build I need to be able to substitute this somehost.somedomain.net with another one that comes fro

RE: mail task failure

2007-08-17 Thread Erica A Ramsey
yes, that is where I placed those files. Still get that error, but the email does actually get sent just dumps error message and I can't make it go away! -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Friday, August 17, 2007 3:55 AM To: Ant Users List Subject: Re:

Re: creating a build file via another build file

2007-08-17 Thread Vihan Pandey
> > You could leave that or you have to use and encode the > xml-charachter (<>&...). Now that I look again the declaration is not really necessary :P I have a little perl script for masking - for my own need: > > ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-<-

Padmaja Kunapareddy/Lexington/IBM is out of the office.

2007-08-17 Thread Padmaja Kunapareddy
I will be out of the office starting 08/17/2007 and will not return until 08/18/2007. You can contact via my mobile ph# 603 930 0390 for any critical information other wise please contact Ed Hayes I won't be available in SameTime Thank You --Padma -

RE: How to escape characters in regexp strings?

2007-08-17 Thread Amarjit Jutla
You must also escape the \ character < replaceregexp file="${artifactsdir}/${label}/${env}/src/include/configuration_wassup.php" match='define(\\"WS_WASSUPHOST\\" *, *\\".*\\");' replace='define(\\"WS_WASSUPHOST\\", \\"${dev.bck.mmc.ws_wassuphost}\\");' /> -O

How to escape characters in regexp strings?

2007-08-17 Thread Krzysztof Kucybała
Hi, I have a problem. I'm trying to have ant substitute something in a few files. Here's the sample: < replaceregexp file="${artifactsdir}/${label}/${env}/src/include/configuration_wassup.php" match='define("WS_WASSUPHOST" *, *".*");' replace='define("WS_WASSUPHOST", "${dev.bck.mmc.ws_wa

AW: creating a build file via another build file

2007-08-17 Thread Jan.Materne
You are embedding xml statements in and this is not allowed, you could use instead. But you have also a xml declaration in your echo You could leave that or you have to use and encode the xml-charachter (<>&...). I have a little perl script for masking - for my own need: ---8-<---8-<

Want to include application folder while creating war file

2007-08-17 Thread Anil Kumar pippalapalli
Hi all, Iam using ant war task to generate application war file.Iam able to include all the directories and files needed from application folder, but iam not able to include application folder itself. I found that out when i inflated the war file i created i.e all the files in the war file are inf

creating a build file via another build file

2007-08-17 Thread Vihan Pandey
Hello, I have an a build file which generates another build file and then executes it. I am creating the 2nd build file via an echo task to the file. Something like this : this is deploy.xml :

Re: how do I pass properties containing & chars

2007-08-17 Thread Steve Loughran
teknokrat wrote: I am using ant 1.7. I need to pass urls as properties. Unfortunately these have parameters in them i.e. -Dtest.url=http://x.y.z?a=b&c=d ant barfs on these - is there any way this can be done Not ant; your shell. escape them according to the specific rules of your shell --

Re: returns true thought there is no listener

2007-08-17 Thread Steve Loughran
Wei Feng Niu wrote: Hi, I have a target to detect whether a port is listening, like the following: =

Re: mail task failure

2007-08-17 Thread Steve Loughran
Erica A Ramsey wrote: hi, i am trying to mail file via ant. I wrote a simple test and it hangs. here it is. Latest binaries for ${application.name} version ${version} always loo

AW: how do I pass properties containing & char

2007-08-17 Thread Jan.Materne
One step further ... You could use for reading the url. Jan -Ursprüngliche Nachricht- Von: Peter Reilly [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 17. August 2007 10:59 An: Ant Users List Betreff: Re: how do I pass properties containing & char If you are using unix/linux, just quo

Re: how do I pass properties containing & char

2007-08-17 Thread Peter Reilly
If you are using unix/linux, just quote the parameter: >ant "-Dtest.url=http://x.y.z?a=b&c=d"; Buildfile: build.xml y: [echo] http://x.y.z?a=b&c=d If you are using dos, it is probably impossible to get the stuff though the quagmire that is cmd. Use a property file: build.properties test.u

AW: how do I pass properties containing & chars

2007-08-17 Thread Jan.Materne
I dont think that Ant changes some characters. I think the shell does. E.g. shells usually changte '*' to a list of files. What you could do is writing these urls into a properties file and load that file. I dont know any possibility of masking the characters ... Jan -Ursprüngliche Nachri

how do I pass properties containing & chars

2007-08-17 Thread teknokrat
I am using ant 1.7. I need to pass urls as properties. Unfortunately these have parameters in them i.e. -Dtest.url=http://x.y.z?a=b&c=d ant barfs on these - is there any way this can be done - To unsubscribe, e-mail: [EMAIL PR

RE: returns true though there is no listener

2007-08-17 Thread Wei Feng Niu
If you reduce checkevery="5" to checkevery="1", the issue will come out more frequently Best regards Weifeng Niu Tel: +86 10 8528 1188 ext. 1724 [EMAIL PROTECTED] -Original Message- From: Wei Feng Niu [mailto:[EMAIL PROTECTED] Sent: Friday, August 17, 2007 3:30 PM To: user@ant.apache.o

returns true thought there is no listener

2007-08-17 Thread Wei Feng Niu
Hi, I have a target to detect whether a port is listening, like the following: ===