Re: replaceregex issues

2008-03-13 Thread Vihan Pandey
On 3/12/08, neo anderson <[EMAIL PROTECTED]> wrote: > > How do I use shell script in ant? I try the following code, but it does not > work. > > > > >(echo "hi!";) > > > > Though it return build successfully. But there is not

Re: replaceregex issues

2008-03-12 Thread neo anderson
tmp > $i; rm -rf $i.tmp;done) > > > > (for i in `find /path/to/my/files/ -name > \*.shtml -print`;do cat $i | sed s/[..\/]*http/http/g > $i.tmp; cat > $i.tmp > $i; rm -rf $i.tmp;done) > > > -- View this message in context

RE: replaceregex issues

2007-08-28 Thread Rebhan, Gilbert
Hi, -Original Message- From: Vihan Pandey [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 4:35 PM To: Ant Users List Subject: Re: replaceregex issues > > > /* Thanks a million Gilbert !!! I REALLY appreciate all the effort you have taken in thinking of this and t

Re: replaceregex issues

2007-08-27 Thread Vihan Pandey
> > > Thanks a million Gilbert !!! I REALLY appreciate all the effort you have taken in thinking of this and testing it out :-) However i've noticed something strange that the replaceregex task fails in cretain(but not all) cases(if there are a VERY large number of files ne

RE: replaceregex issues

2007-08-27 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 1:43 PM To: Ant Users List Subject: RE: replaceregex issues /* ok, tested now = works for me with ant 1.6.5 / jdk 1.4.2_08 */ typo, has to be = instead, the reference to the group

RE: replaceregex issues

2007-08-27 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 1:19 PM To: Ant Users List Subject: RE: replaceregex issues -Original Message- From: Vihan Pandey [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 12:00 PM To: Ant Users

RE: replaceregex issues

2007-08-27 Thread Rebhan, Gilbert
Hi, -Original Message- From: Vihan Pandey [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 12:00 PM To: Ant Users List Subject: replaceregex issues /* ../http://web1.foo.com with http://web1.foo.com ../../http://web1.foo.com with http://web1.foo.com ../../../http://web1

replaceregex issues

2007-08-27 Thread Vihan Pandey
Hello, I have a rather strange issue while replacing strings from a set of files. My objective is to replace occurences of : ../http://web1.foo.com with http://web1.foo.com ../../http://web1.foo.com with http://web1.foo.com ../../../http://web1.foo.com with http://web1.foo.com and so on.

RE: replaceregex

2007-06-16 Thread Erica A Ramsey
t;Readme.txt" file to explain how to setup resources instead. I allow comments because resource files can be documented. Well, i'm glad that tribulation is over! Thanks, -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 11:29 AM To: Ant

Re: replaceregex

2007-06-15 Thread Peter Reilly
sey [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 10:20 PM To: Ant Users List; [EMAIL PROTECTED] Subject: RE: replaceregex well, I give up hopefully someone out there can help me. this was my last try; I thought the pattern specified the following; lines that start with '#exampl

RE: replaceregex

2007-06-15 Thread Erica A Ramsey
Ant Users List; [EMAIL PROTECTED] Subject: RE: replaceregex well, I give up hopefully someone out there can help me. this was my last try; I thought the pattern specified the following; lines that start with '#example' followed one or more of {whitespace OR (lines that do not st

Re: replaceregex

2007-06-15 Thread Mark
t; [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 14, 2007 3:57 PM > > To: Ant Users List > > Subject: Re: replaceregex > > > > > > I don't mean to sound smart...but have you tried > it? Run a test? > > > > It might be time better sp

Re: replaceregex

2007-06-15 Thread Scot P. Floess
t is wrong? -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 3:57 PM To: Ant Users List Subject: Re: replaceregex I don't mean to sound smart...but have you tried it? Run a test? It might be time better spent if you run a test, it fails

RE: replaceregex

2007-06-14 Thread Erica A Ramsey
nts, and any examples, to be stripped out during copy so that the resulting field.rsc file doesn't have any unneeded stuff in it. This file will then be included in the jar archive. however, i'm stumped everything that I have tried has failed :( -Original Message- From: Scot P. F

RE: replaceregex

2007-06-14 Thread Erica A Ramsey
Of course I tested it but it is failing. can someone tell me what is wrong? -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 3:57 PM To: Ant Users List Subject: Re: replaceregex I don't mean to sound smart...but have you tried it?

Re: replaceregex

2007-06-14 Thread Scot P. Floess
I don't mean to sound smart...but have you tried it? Run a test? It might be time better spent if you run a test, it fails then email the list? Erica Ramsey wrote: hello, will the following example replace everything between '#example ' and '#end example.*' ? I am trying to strip the follow

replaceregex

2007-06-14 Thread Erica Ramsey
hello, will the following example replace everything between '#example ' and '#end example.*' ? I am trying to strip the following from a file; #example -- do not remove this line! test1 #comment test2 $ test3 #another comment . #end example -- do not remove this line! everything between '#examp

RE: replace section of file, loadFile, replaceregex, filterchain

2006-07-20 Thread Gaz Smith
gt; To: user@ant.apache.org > Subject: replace section of file, loadFile, > replaceregex, filterchain > > Hey, wonder if you guys can help me? I'm trying to > use > ant to copy a portion of one text file > in to another text file. I have specific markers > that > I can u

RE: replace section of file, loadFile, replaceregex, filterchain

2006-07-20 Thread Rebhan, Gilbert
10:43 AM To: user@ant.apache.org Subject: replace section of file, loadFile, replaceregex, filterchain Hey, wonder if you guys can help me? I'm trying to use ant to copy a portion of one text file in to another text file. I have specific markers that I can use for this. The source file ha

replace section of file, loadFile, replaceregex, filterchain

2006-07-20 Thread Gaz Smith
Hey, wonder if you guys can help me? I'm trying to use ant to copy a portion of one text file in to another text file. I have specific markers that I can use for this. The source file has the format shown below, // - src file start a few lines of text One or more lines of stuff

RE: replaceregex, only the first match

2006-01-12 Thread Rebhan, Gilbert
al Message- From: Andrew Goktepe [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 3:08 PM To: Ant Users List Subject: Re: replaceregex, only the first match Remove the tags, and then your script will only replace the first occurrence. -Andrew On 1/12/

Re: replaceregex, only the first match

2006-01-12 Thread Andrew Goktepe
Remove the tags, and then your script will only replace the first occurrence. -Andrew On 1/12/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > > Hi, > > i have problem with replaceregex. > > my script uses a xmlpropertyfile whic

replaceregex, only the first match

2006-01-12 Thread Rebhan, Gilbert
Hi, i have problem with replaceregex. my script uses a xmlpropertyfile which is generated by another process.Sometimes there are doubled propertynames in that file i have to = 1. load the xmlpropertyfile, check for doubled properties 2. if doubled properties are found, i have to delete the

RE: replaceregex TokenFilter

2003-08-14 Thread Jan . Materne
Have you tried ${line.separator} ? Jan > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 12, 2003 10:25 PM > To: Ant Users List > Subject: replaceregex TokenFilter > > > I am having trouble with the replaceregex TokenF