简体   繁体   中英

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. 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

<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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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