使用ant修改war包

来源:互联网 发布:红米note3手机壳淘宝 编辑:程序博客网 时间:2024/06/05 07:02
<project name="project" default="UpdateWARWithStubs" basedir="." >
    <description>
            description
    </description>

    <!-- =================================
          target: default              
         ================================= -->
    <target name = "UpdateWARWithStubs" description="Updates WAR file with files from Stub folder">
    
    

    <!-- Use touch to set modification time of all stubs to current time. This will force war task to update stub files inside the war -->
    
 
    <war destfile="PA_myfirsttest286.war" update="true">
            <zipfileset dir="c:\new" includes="portlet.xml" fullpath="WEB-INF\portlet.xml"/>
            <!--<zipfileset dir="c:\new" prefix="WEB-INF\"/>-->
    </war>
 
</target>

</project>
原创粉丝点击