ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Sean Hennessy" <shenne...@goldenhourdata.com>
Subject RE: append line to a list of file
Date Wed, 04 Jun 2003 17:30:47 GMT
please see the thread "RE: Getting the name of the current file in a
fileset"
and the thread "RE: Problem with FixCRLF"
not sure if you want..
1. to append a string in each file
2. terminate an <echo message="with \n" />.

-----Original Message-----
From: Philippe Bonnardel [mailto:philippe.bonnardel@winsoft.fr]
Sent: Wednesday, June 04, 2003 10:10 AM
To: 'Ant Users List'
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