ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Help on file read
Date Tue, 14 Sep 2004 05:39:06 GMT
Use AntContribs <for> with delimiter="${line.separator}", but thats more a
question for the USER list, not the DEVELOPER list.

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Mohan Gunupati [mailto:Mohan.Gunupati@wicourts.gov]
> Gesendet am: Montag, 13. September 2004 22:58
> An: dev@ant.apache.org
> Betreff: Help on file read
> 
> 
> Hi Guys,
>  
> I need some help, before getting to you I tried myself and the web,
> even some books. 
>  
> Here is what I have been trying to do and achieve.
>  
> I want read a file containing strings ( a word in each line)  and I
> want to iterate a new target for each line existing.
>  
> ex: lets say file1.txt contains
>  row1
>  row2
>  row3.
>  
> I want to iterate, through the file and read each string and pass that
> string to a new target.
> I want or read a file (step-1, done) in a target( target-1) and for
> each row in the file (step-2, ?) (iterate for each row in the 
> file) run
> target-2.
> 
>  
> I am able to read the file using <loadfile>, the limitation is it
> returns everything as one property ( which is one string 
> containing all
> rows). I need more like an array or some object which is iterates.
>  
> I also figured, this is something todo for ant2. Don't know 
> if there is
> an alternative.
>  
>  
> Your time and help is much appreciated.
> thanks.
>  
>  
> Mohan Gunupati.
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message