简体   繁体   English

不同大小(Ant x Eclipse)

[英]Different sizes ( Ant x Eclipse )

i'm generating a war with an Ant script but i noticed that the Ant's war size is almost double the size of the war created by Eclipse. 我正在使用Ant脚本进行战争,但是我注意到Ant的战争规模几乎是Eclipse产生的战争规模的两倍。 And now i'm want to know if it's possible to reduce this size. 现在我想知道是否有可能减小此尺寸。

This is the war script: 这是战争脚本:

<war destfile="${docflow4-web-home}/deploy/docflow.war" webxml="${docflow4-web-home}/web/WEB-INF/web.xml">
        <classes dir="${docflow4-web-home}/web/WEB-INF/classes" />
        <lib dir="${docflow4-web-home}/web/WEB-INF/lib"/> 
        <fileset dir="${docflow4-web-home}/web">
            <include name="**/*.*"/>                                
        </fileset>          
    </war>

My answer to my problem was to remove the "class" and the "lib" tag from the script, they were duplicating the files 我对我的问题的回答是从脚本中删除“ class”和“ lib”标记,因为它们正在复制文件

<war destfile="${docflow4-web-home}/deploy/docflow.war" webxml="${docflow4-web-home}/web/WEB-INF/web.xml">        
    <fileset dir="${docflow4-web-home}/web">
        <include name="**/*.*"/>                                
    </fileset>          
</war>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM