chaitu chaitu
asked on
why size is coming difference through ant jdeveloper
through ant (in command prompt) if i build the war it is coming 6MB;in jdeveloper i created one build.xml and generated one build then it is coming 9MB size;ideally both should come same;i am not able to find the difference between the two wars.but the two scripts are different.
ASKER
how to diff the to wars if there is any difference in the contents??
ASKER
if i open up 2 wars i can't see difference contents wise;
do u think for compression will it make that much difference??
do u think for compression will it make that much difference??
first expand then (they are just zip files) then diff the expanded directories
> do u think for compression will it make that much difference??
yes, if one isn't compressed at all
yes, if one isn't compressed at all
ASKER
i want to update classes in WEB-INF/classes of A.war;but it is creating another folder outside WEB-INF;
<property name="blddir" value="../Web/classes"/>
<property name="temp" value="c:/temp"/>
<jar jarfile="${temp}/A.war" update="true" destdir="${blddir}">
<fileset dir="${temp}">
<include name="WEB-INF/*.class" />
</fileset>
</jar>
<property name="blddir" value="../Web/classes"/>
<property name="temp" value="c:/temp"/>
<jar jarfile="${temp}/A.war" update="true" destdir="${blddir}">
<fileset dir="${temp}">
<include name="WEB-INF/*.class" />
</fileset>
</jar>
ASKER
why is not compressing??
it should be.
why are you not using the war task?
http://ant.apache.org/manual/CoreTasks/war.html
that could be another reason for difference.
why are you not using the war task?
http://ant.apache.org/manual/CoreTasks/war.html
that could be another reason for difference.
ASKER
first i used war task only then it gives large size;then i go for jar task for creating war also;
i've posted numerous reasons why the size would be different, and what to check to determine the reason.
ASKER
i used war task only but still getting the large difference.i have verified both wars i didnt find any difference between the files.still why its coming difference;how to do compression???
they are both zip files, if the files are identical then the level of compression must be different.
you can check it with winzip or similiar.
you can check it with winzip or similiar.
ASKER
how can i check with winzip or winrar the level of compression ??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if the contents are the same then the difference is probably compression used.