RE: Looking for task to add text to file.

2005-05-04 Thread Nir Geier
: Re: Looking for task to add text to file. Would it make more sense to break up the file into other smaller ones if regexp doesn't work? Then you could use loadfile for the header content, have a property to store the items you want to add and another loadfile for the rest of the doc

Re: Looking for task to add text to file.

2005-05-03 Thread EJ Ciramella
o teh list, all i want to to is to place anothe item in DTD list its pure text and only entry name. -Original Message- From: Brian Agnew [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 4:31 PM To: Ant Users List Subject: Re: Looking for task to add text to file. Ok. Sounds like

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
Users List Subject: Re: Looking for task to add text to file. Ok. Sounds like you're covering that (and you may want to worry about other XML entities - & etc.). Your problem domain may be small enough to require such a solution, but once you have to worry about character encodings and

Re: Looking for task to add text to file.

2005-04-28 Thread Brian Agnew
say, it's all dependent on what you're trying to achieve (tactical vs.strategic and so on) Nir Geier wrote: im using x; to inser < > -Original Message- From: Brian Agnew [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 4:13 PM To: Ant Users List Subject: Re: Lookin

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
im using x; to inser < > -Original Message- From: Brian Agnew [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 4:13 PM To: Ant Users List Subject: Re: Looking for task to add text to file. If you're modifying XML then I'd strongly suggest using xmltask (I

Re: Looking for task to add text to file.

2005-04-28 Thread Brian Agnew
If you're modifying XML then I'd strongly suggest using xmltask (I'm biased here!) or equivalent. Why ? A simple text search/replace doesn't respect the character encoding conventions within your XML, and doesn't respect entity encoding. e.g. you want to insert the text "x < y". If you do that

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
i didnt fin teh : 2) using and filters while ing - extract part before - extract part after using to combine before, new and after parts you mentioned before. where are the tail and head? (which task?) Nir. - To un

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 2:19 PM To: user@ant.apache.org Subject: AW: Looking for task to add text to file. Ok - four steps back ... What is your current DTD and where you want to add the "node"? Jan > -Ursprüngliche Nachricht---

AW: Looking for task to add text to file.

2005-04-28 Thread Jan . Materne
Ok - four steps back ... What is your current DTD and where you want to add the "node"? Jan > -Ursprüngliche Nachricht- > Von: Nir Geier [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 28. April 2005 15:17 > An: Ant Users List > Betreff: RE: Looking for

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
: Looking for task to add text to file. I think you have misunderstood me (or vice versa :-) With a DTD like book : (chapter | comment)+ you could have a comment, but you dont have to. So you could add your "node" to the DTD and the XML would be valid - with or without the . So no change

AW: Looking for task to add text to file.

2005-04-28 Thread Jan . Materne
ore. Jan > -Ursprüngliche Nachricht- > Von: Nir Geier [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 28. April 2005 14:24 > An: Ant Users List > Betreff: RE: Looking for task to add text to file. > > Hi again. > i MUST change the DTD. > The xml nodes are

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
ending teh text to the head of the list instead of doing it in the end. Nir. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 12:36 PM To: user@ant.apache.org Subject: AW: Looking for task to add text to file. For manipulating the xml fi

AW: Looking for task to add text to file.

2005-04-28 Thread Jan . Materne
/xmltask.html > -Ursprüngliche Nachricht- > Von: Nir Geier [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 28. April 2005 13:10 > An: Ant Users List > Betreff: RE: Looking for task to add text to file. > > My task is the following: > > I have XML file and the

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
:52 PM To: Ant Users List Subject: RE: Looking for task to add text to file. 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

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
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 2) using

AW: Looking for task to add text to file.

2005-04-28 Thread Jan . Materne
rstag, 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:

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
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. message Jan

AW: Looking for task to add text to file.

2005-04-28 Thread Jan . Materne
Sorry forgotten: message Jan > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 28. April 2005 11:39 > An: user@ant.apache.org > Betreff: AW: Looking for task to add text to file. > >

AW: Looking for task to add text to file.

2005-04-28 Thread Jan . Materne
message 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 detail

RE: Looking for task to add text to file.

2005-04-28 Thread Nir Geier
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 =

RE: Looking for task to add text to file.

2005-04-28 Thread Rebhan, Gilbert
age- 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&#

Looking for task to add text to file.

2005-04-28 Thread Nir Geier
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