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
nested in a deep director
-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.