Ant 修改项目pom.xml文件应用

 

 

<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="update_pom" basedir=".">
    <description>
            description
    </description>

    <!-- ================================= 
          target: update_pom              
         ================================= -->
    
    <target name="update_pom" depends="depends" description="description">
        <replace dir="${basedir}/amarosa_6-3_IVR">
            <include name="**/pom.xml"/>
            <replacefilter>
                <replacetoken>6.3.0-IVR-SM</replacetoken>
                <replacevalue>6.3.0-IVR-SM-SNAPSHOT</replacevalue>
            </replacefilter>
        </replace>
      <!--
        <replace dir="${basedir}/amarosa_6-5_XMN_FT1">
            <include name="**/pom.xml"/>
            <replacefilter>
                <replacetoken>6.4.0-SNAPSHOT</replacetoken>
                <replacevalue>6.5.0-XMN-FT3-SNAPSHOT</replacevalue>
            </replacefilter>
        </replace> -->
    </target>

    <!-- - - - - - - - - - - - - - - - - - 
          target: depends                      
         - - - - - - - - - - - - - - - - - -->
    <target name="depends">
    </target>

</project>
posted @ 2014-08-20 19:10  jenniferhuang  阅读(1208)  评论(0编辑  收藏  举报