Looks like a filtered <concat> to me.

-Matt

--- Radha Sangal <[EMAIL PROTECTED]> wrote:
> Is there any task in ant to simulate this simple
> code of java , reading
> one file and extracting content to write into
> another... in integrate
> this small java code , I will have to do lot of
> work.. was wondering if
> its possible through ant itself 
> 
>  
> 
> BufferedReader in = new BufferedReader(new
> FileReader("C:\\WrapperCabInstaller.log"));
> 
>                     BufferedWriter out = new
> BufferedWriter(new
> FileWriter("C:\\Cab_version_information.log"));
> 
>                     String str;
> 
>                     while ((str = in.readLine()) !=
> null) {
> 
>                         if(str.indexOf("[java] Cab")
> != -1){
> 
>                                    
> System.out.println(str);
> 
>                                     out.write(str);
> 
>                                      out.newLine();
> 
>                        }
> 
>                         else
> if(str.indexOf("version") != -1)
> 
>                          {
> 
>                                    
> System.out.println(str);
> 
>                                     out.write(str);
> 
>                                      out.newLine();
> 
>                        }
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to