: 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
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
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
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
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
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
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
--
> Von: Nir Geier [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 28. April 2005 15:17
> An: Ant Users List
> Betreff: RE: Looking for task to add text to file.
>
> Ty again,
>
> i must change the DTD since customer gets it.
> i dont have any decistion if to cahnge
of the DTD would be needed any more.
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 c
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 corresponding DTD.
> I nee
: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
with while 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
> Betref
> -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.
>
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 =
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 G
15 matches
Mail list logo