http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html
It is in the "Main Attributes" section. The feature is also present in JDK 1.4.1 (and I think in 1.3.1 too, but I have not tested this) :-)
Regards, Rodrigo Ruiz
Derek Mahar wrote:
Is the Class-Path keyword actually available in META-INF/minfest.mf or is this a feature that you like the JVM to support?
Derek
-----Original Message-----
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Sent: December 15, 2003 3:50 AM
To: Tomcat Users List
Subject: Re: new JVM feature, just an idea
Just an idea, a jar archive can contain a list of jar dependencies in its META-INF/manifest.mf file. You could create such a jar
in a fixed location in your system, and set your CLASSPATH point to it.
An example of such a manifest could be:
Manifest-Version: 1.0 Created-By: myself Class-Path: d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmltask.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\xercesImpl.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\optional.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar d:\arquiv~1\j2sdk1.4.1_01\commapi\comm.jar d:\usr\local\skinlf-1.2.4\lib\skinregion.jar; ...
This way, including this jar in your classpath will be equivalent to include all its dependencies :-)
Another think that could help would be to create a d:\jars directory, and place a copy of all your jars into it. This way, the CLASSPATH variable will be shorter (and BTW, your ant scripts too ;-)
Hope this helps, Rodrigo Ruiz
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
