Thanks alot.
i will try it all now.

Ty 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 11:49 AM
To: user@ant.apache.org
Subject: AW: Looking for task to add text to file.


Some possibilities which come into my mind:
1) using <replaceregexp>
2) using <tail> and <head> filters while <move>ing
   - extract part before
   - extract part after
   using <concat> to combine before, new and after parts
3) using your own task, start with
   http://marc.theaimsgroup.com/?l=ant-user&m=110691291123439&w=2
4) the original file is a "template" and you could use a <filterchain>
   with <expandproperties/> while <move>ing and having a ${propname} 
   inside your "template".

Not any particular order ...


Jan
   

> -----Ursprüngliche Nachricht-----
> Von: Nir Geier [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 28. April 2005 12:42
> An: Ant Users List
> Betreff: RE: Looking for task to add text to file.
> 
> Ty 
> 
> i need to add it to certain location insid ethe file.
> not to write log messages.
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 28, 2005 11:39 AM
> To: user@ant.apache.org
> Subject: AW: Looking for task to add text to file.
> 
> 
> <echo append="true"> message </echo>
> 
> 
> Jan
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Nir Geier [mailto:[EMAIL PROTECTED]
> > Gesendet am: Donnerstag, 28. April 2005 12:16
> > An: Ant Users List
> > Betreff: RE: Looking for task to add text to file.
> > 
> > 
> > Ty Gilbert.
> > I will look into it in details.
> > 
> > 
> > 
> > -----Original Message-----
> > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 28, 2005 10:34 AM
> > To: Ant Users List
> > Subject: RE: Looking for task to add text to file.
> > 
> > 
> > 
> > Hi,
> > 
> > i've had a similar problem
> > 
> > see =
> > 
> > http://marc.theaimsgroup.com/?l=ant-user&m=110691291123439&w=2
> > 
> > for a solution, if you don't want to use concat/replace ...
> > 
> > Since i needed to put in a property i changed the example of Jan
> > to take a property.
> > 
> > Gilbert
> > 
> > -----Original Message-----
> > From: Nir Geier [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, April 28, 2005 11:18 AM
> > To: Ant Users List
> > Subject: Looking for task to add text to file.
> > 
> > Hi all,
> > 
> > Im trying to append text to file and I could't find any 
> suitable task
> > for doing so.
> > As a workaround im using the 'Replace' task.
> > (http://ant.apache.org/manual/CoreTasks/replace.html)
> > 
> > Another option is the 'Concat' (
> > http://ant.apache.org/manual/CoreTasks/concat.html ) but it 
> is limited
> > to the start/end
> > of file while i need to place the text in a certain place 
> in the file.
> > 
> > As far as i know there isnt any made task to this problem.
> > I wonder maybe someone have any other solution.
> > 
> > in the worst case i will write my own task but I'm short on time.
> > 
> > TY all inadvance.
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to