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
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
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
>
>
>
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
-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
-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
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
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.
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
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
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
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
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
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
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?
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
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
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
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
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
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/
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
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
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
24 matches
Mail list logo