You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/02/03 21:07:18 UTC
DO NOT REPLY [Bug 38499] New: - [logging][PATCH] Minor improvement to JARs within Build
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38499
Summary: [logging][PATCH] Minor improvement to JARs within Build
Product: Commons
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P4
Component: Logging
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: boris.unckel.mlg@gmx.net
Jars can contain an optional index of their packages.
The feature was introduced in Java 1.3.
See
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#JAR%20Index
for details.
I did not see an classloader optimizing for it yet, but it causes no pain to add
and use it within Ant.
ant dist did run succesfully
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38499] - [logging][PATCH] Minor improvement to JARs within Build
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38499
Sandy@McArthur.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From Sandy@McArthur.org 2006-02-07 17:03 -------
Hold on. That index feature doesn't gain anything and just increases the jar size.
The index feature is mainly for applets. For it to work the main jar file has an
index of all the classes in other jars on the classpath. For an applet this lets
the JVM not have to download a jar file just to search for a jar that may not be
in it.
Adding index="true" for the logging jars won't help the logging jars unless the
generated index references other jars containing logging dependencies.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38499] - [logging][PATCH] Minor improvement to JARs within Build
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38499
rdonkin@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From rdonkin@apache.org 2006-02-16 21:34 -------
I've had a good think about this and a chance to play around a little.
jarindex indexes the dependencies but I'm a little worried that classloaders may
get confused by optional depedencies. JCL would need to be re-jarred and signed
before it could be used in an applet so I've decided that it'd be best to remove
the indexes.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38499] - [logging][PATCH] Minor improvement to JARs within Build
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38499
------- Additional Comments From rdonkin@apache.org 2006-02-07 19:52 -------
Hmmm...
I've spent a little while looking into this...
Figures (bytes):
commons-logging-1.1-RC3.jar 49202 -> 49399 +~0.4%
commons-logging-adapters-1.1-RC3.jar 21151 -> 21356 +~1%
commons-logging-api-1.1-RC3.jar 39167 -> 39368 +~0.5%
I don't think that the difference in size is large enough to be an issue.
But it seems ATM to be of use (as sandy says) only for the main jar of an applet
(which JCL isn't).
Opinions?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38499] - [logging][PATCH] Minor improvement to JARs within Build
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38499
rdonkin@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From rdonkin@apache.org 2006-02-07 16:44 -------
Committed. Many thanks.
Robert
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38499] - [logging][PATCH] Minor improvement to JARs within Build
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38499
------- Additional Comments From Sandy@McArthur.org 2006-02-09 17:23 -------
It's not a big deal, in those cases it is only ~200 bytes but it is ~200 bytes
of dead weight and that eventually it adds up. Would you accept a patch that
adds dead code to a project?
Currently the jar command puts the META-INF/INDEX.LIST as the last file in the
jar. By the time the ClassLoader has loaded the jar, it already knows about all
the files in the current jar.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38499] - [logging][PATCH] Minor improvement to JARs within Build
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38499
------- Additional Comments From boris.unckel.mlg@gmx.net 2006-02-03 21:08 -------
Created an attachment (id=17581)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17581&action=view)
Patch for build.xml to add index="true" for jar tasks
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org