[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Packager friendly classloader attempt 3



Hi again,
after more suggestions from the list the classloader works as follows:

Typical invocation:
deb-java package class

- Reads a file with the name of the package (which is to provided by the
package) under /usr/share/debian-classloader/

- Loads classpath and dependency information from the file.

- Reads the files for the (direct and indirect) dependencies.

- Missing files for required packages give an error, and missing files
for recommended packages a warning.

- Builds the minimum possible classpath based on that information.
Requires are listed first, then recommends and then suggests

- Calls the main method of the class given.

The structure of the package information file is:

classpath = /usr/share/java/package.jar: ...
depends = necessary-package1 ...
recommends = important-package1 ...
suggests = good-to-have-package1 ...

Any line may be ommited.
To hardcode something in the classpath use the DEB_CLASSPATH environment
variable (to avoid conflicts with user supplied classpaths).

Please try it out and let me know what you think (see the examples in
the doc directory to get an idea).

package/sources at: http://anarxia.dyndns.org:2180/debian/pool

Nicos



Reply to: