Look at filtersets and filters in the manual - everything you need is there.
http://jakarta.apache.org/ant/manual/index.html 

Also, could you keep you mails to the ant-user list. I don't mind answering
questions directly but then only you benefit, not the rest of the user
community.

Thanks.

Les

-----Original Message-----
From: Sugandha Shah
To: Les Hughes
Sent: 19/10/01 10:09
Subject: Re: Editing file

Hi,
 
I  really did not get what u said. I'm newbie to ANT. Can u kindly send
in example for same.
Also if i read from property file and those read values if i need to add
in config .xml how do i do it?
B'cos if try using replace  task it just replace the key part. I mean
among the key value pair i want replacement for the value .
eg :
name =sugandha
<replacefilter 
    token="@name@" 
   />
 
Now if i don't specify value "" is replaced. But i want Sugandha as
value to be seen which is value i get at runtime and hence can't specify
it earlier.
 
Sorry for the inconvienence. Any help will be really appreciated.
 
Thanx
-Sugandha
 
 

----- Original Message ----- 
From: Les  <mailto:[EMAIL PROTECTED]> Hughes 
To: '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'>

Sent: Thursday, October 18, 2001 6:42 PM
Subject: RE: Editing file

Hi,
 
Mark up the things that change in your build with filter tags and then
copy the file into your build location using filtering and a filters
file. I do exactly that with WLS 6.1 config.xml and others.
 
Bye,
 
Les
 
 

-----Original Message-----
From: Sugandha Shah [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: 17 October 2001 14:28
To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Subject: Editing file


Hi,
 
Is it possible to edit the existing file through. Is there any ant built
in task.
 
i.e For eg my weblogic 6.0 has config.xml. So through ANT i want to edit
this file and add something and not overwrite.
 
Is it possible?
 
Thanx
-Sugandha

Reply via email to