Hi to all,

I´ m trying to filter/replace a maven2 pom with ant.
So long not the biggest problem. One is my need to replace the <version>
</version> property.
So far just a small problem. I only have to replace the version which is
inside the <parent> </parent> declaration.  

<loadfile srcFile="pom.xml" property="test.pom">        
<filterchain>
        <tokenfilter>
                 <replaceregex pattern="*-SNAPSHOT" replace="versionIwant" 
flags="gi"/>
        </tokenfilter>
</filterchain>

Seems not to fit 100%. I would replace all found regex. 

Looking ahead for your replys

Saberex
-- 
View this message in context: 
http://www.nabble.com/replace-version-info-in-maven2-pom-with-ant-tp24035984p24035984.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to