ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <>
Subject Re: Jar and Class size?
Date Tue, 12 Feb 2002 15:47:44 GMT
From: <>

> The jar file produced by Ant 1.4.1 is roughly 
> 500KB smaller than the one produced by 1.3.  

> However, I'm now thinking that it must be something 
> else that is different because the actual build 
> directory that contained the class files before 
> the jar was created differed in size by about 
> an entire meg.  

In Ant 1.3, id the debug attribute was not
specified to <javac>, the -debug flag was not 
included in the javac command line.  In Ant 1.4,
if debug attribute is not speficied to <javac>
-g:none is added to the javac command line.
Good or bad, this is the cause for the change
in class file size.

For more details on a related issue:

> In any case, I don't see anything wrong with the Jar but my Boss doesn't
> want me to upgrade until I can explain why the difference exists :)
> If anyone knows, I'd love to hear why. :-)

Use ant -debug and notice the difference in
the javac command line that is being used.


*  Opportunist: A person who starts taking bath  *
*  if he accidentally falls into a river.        *

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message