ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Re: append line to a list of file
Date Wed, 04 Jun 2003 17:26:35 GMT
Write a filterreader to do your custom file-by-file
manipulation and use it inside the fileset compatible 
<copy> or <move> tasks.

----- Original Message ----- 
From: "Philippe Bonnardel" <philippe.bonnardel@winsoft.fr>
To: "'Ant Users List'" <user@ant.apache.org>
Sent: Wednesday, June 04, 2003 1:10 PM
Subject: RE: append line to a list of file


> Meaning how can we access to each element of a fileset or a filelist?
> 
> Philippe
> 
> -----Original Message-----
> From: Philippe Bonnardel [mailto:philippe.bonnardel@winsoft.fr] 
> Sent: Wednesday, June 04, 2003 7:05 PM
> To: 'Ant Users List'
> Subject: RE: append line to a list of file
> 
> 
> Hi Peter
> 
> Ok I got this, but how to you access to each file in this case in order
> to append to each file something?
> 
> Philippe
> 
> 
> -----Original Message-----
> From: peter reilly [mailto:peter.reilly@corvil.com] 
> Sent: Wednesday, June 04, 2003 6:54 PM
> To: Ant Users List
> Subject: Re: append line to a list of file
> 
> 
> Use Pathconvert:
>   <filelist dir="." files="build.xml,k.xml" id="filelist"/>
>   <pathconvert property="converted" pathsep="${line.separator}"
>                refid="filelist"/>
>   <echo message="converted is ${line.separator}${converted}"/>
> 
> Peter
> On Wednesday 04 June 2003 16:11, Philippe Bonnardel wrote:
> > Hi all
> >
> > I'm guetting an head-ach on this.
> > I'd like to add new lines to a list of file.
> > I was thinking about using fileset and echo but how to get the file
> > one by one in order to echo my carriage returns in each file of the 
> > fileset. Should I use antcall? If so, how?
> >
> > Hope somebody was facing a kind of same issue.
> >
> > Thanks for any answer
> >
> > Regards
> >
> > Philippe Bonnardel.
> > ---------------------------------------------------------------------
> > E-Paper Software Engineer
> > Winsoft S.A. ( <http://www.winsoft.fr/> http://www.winsoft.fr)
> > <mailto:philippe.bonnardel@winsoft.fr> philippe.bonnardel@winsoft.fr
> > Tel: +33 438 022 231  Fax: +33 438 022 211
> > --------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 



Mime
View raw message