Read the documentation...this is discussed in one of the questions in
the first section of the Getting Started Guide:
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%2
0filter%20resource%20files?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 12:05 PM
To: [email protected]
Subject: modifiying xml files??

Hi All

Is that possible to filter and modify the xml file using any plugin???


Like i have the following code snippet in my ant build.xml, which i will
run from command line as "ant -Denv=sit <target_name>"
        1. copy my.xml as data.xml into /tmp dir
        2. then using filter token, i will replace the value of
"retryConnectionFactory" with the properties i defined in build.xml

    <copy file="my.xml" 
      tofile="tmp/data.xml"
      overwrite="true">
      <filterset>
        <filter token="retryConnectionFactory" 
value="${${env}_retryConnectionFactory}"/>
        <filter token="retryQueueDestination" 
value="${{${env}_retryQueueDestination}"/>
      </filterset>
    </copy>

is there a way to do it in maven using any plugin?? 
[EMAIL PROTECTED] dont want to use the same ant code in maven2

Please advise

Thanks,
Raghu 
 
-- 
 
This message and any attachments are confidential, proprietary, and may be 
privileged.  If this message was misdirected, Barclays Global Investors (BGI) 
does not waive any confidentiality or privilege.  If you are not the intended 
recipient, please notify us immediately and destroy the message without 
disclosing its contents to anyone.  Any distribution, use or copying of this 
e-mail or the information it contains by other than an intended recipient is 
unauthorized.  The views and opinions expressed in this e-mail message are the 
author's own and may not reflect the views and opinions of BGI, unless the 
author is authorized by BGI to express such views or opinions on its behalf.  
All email sent to or from this address is subject to electronic storage and 
review by BGI.  Although BGI operates anti-virus programs, it does not accept 
responsibility for any damage whatsoever caused by viruses being passed.



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

Reply via email to