Solved

why size is coming difference through ant jdeveloper

Posted on 2006-06-27
16
238 Views
Last Modified: 2010-03-31
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.
0
Comment
Question by:chaitu chaitu
  • 7
  • 7
16 Comments
 
LVL 92

Expert Comment

by:objects
ID: 16991318
expand the two wars and do a diff to determine if there is any difference in the contents
if the contents are the same then the difference is probably compression used.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 16991344
how to diff the to wars if there is any difference in the contents??
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 16991364
if i open up 2 wars i can't see difference contents wise;

do u think for compression will it make that much difference??
0
 
LVL 92

Expert Comment

by:objects
ID: 16991365
first expand then (they are just zip files) then diff the expanded directories
0
 
LVL 92

Expert Comment

by:objects
ID: 16991367
> do u think for compression will it make that much difference??

yes, if one isn't compressed at all
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 16991584
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>
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 16991831
why is not compressing??
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 92

Expert Comment

by:objects
ID: 16996947
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.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 16998483
first i used war task only then it gives large size;then i go for jar task for creating war also;
0
 
LVL 92

Expert Comment

by:objects
ID: 17021745
i've posted numerous reasons why the size would be different, and what to check to determine the reason.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17023293
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???

0
 
LVL 92

Expert Comment

by:objects
ID: 17023602
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.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17035000
how can i check with winzip or winrar the level of compression ??
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 17035009
iiiiin zinzip, look at file properties
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
powerN  challenge 3 49
Unable to open debugger port in Intellij idea 6 88
firstChar challenge 13 86
solarwind tftp server 2 32
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now