On Tue, Sep 18, 2001 at 02:07:09PM -0500, Adam Heath wrote: > On Mon, 17 Sep 2001, Per Bothner wrote: > > > Stefan Gybas wrote: > > > > > Basically yes, but IMHO this should be the decision of the local admin > > > and not of the package maintainer. How could he know ig his package > > > contains "standard" jars? This means that no package should automatically > > > put jars or symlinks there. This would be /etc/java/default-classpath/ in > > > my proposal. > > update-jars --install /usr/share/java/<foo>.jar <foo>.jar \ > /usr/share/java/<foo>-<ver>.jar <priority> > > This looks very much like update-alternatives, and in fact, it really is. > However, update-jars does one additional item. It maintains reference counts. > When the reference count is >= 1, then the jar gets added to the default > classpath. For speed, this default classpath is created in the file > /var/lib/java/def_classpath. > > Additionally, /etc/java/classpath is conffile(and gets all the normal dpkg > treatment), which contains a reference to '@def_classpath@', which is replaced > at runtime, by the appropriate wrappers. > > java-common should include the program update-jars, and, optionally, > get_sysclasspath, which combines /etc/java/classpath and > /var/lib/java/def_classpath.
This shounds quite interesting. Is it implemented, and if so where can I find it. I have to take a look at it. :) But why this reference counting? Regards, // Ola > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Björnkärrsgatan 5 A.11 \ | [EMAIL PROTECTED] 584 36 LINKÖPING | | +46 (0)13-17 69 83 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / ---------------------------------------------------------------