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

Scriptpackage for new java policy available



Hallo,

I've uploaded a apt-get'able 'new-java-policy' package, which contains
all the related scripts and also some additional java-config files for
all 'lib.*-java' packages, which I had installed and for kaffe, gcj,
sablevm and sun-java-vm-1.4 (mpkg-j2sdk version I think). 

This are basicly the scripts, which are also attached to 
|Bug#212863: [PROPSAL] New java policy including tools to manage the changes
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=212863)
which some additional debug Messages (enable via 'export DEBUG="yes"')
in java-config.

The thing can be found at 
deb[-src] http://www.katzien.de/debian/java ./

To play around, try 
|findjava [--server|--client] kaffe gcj sun-java-vm-1.4 sablevm
|java-config [--all|--contrib|--classpath] <package-name> ...

I've taken the ant package and to show how 'CONTRIB' works and how
apps can use the java-config system. tomcat4 isn't done as properly.

There is also a dh_java script, which will allow for such things:

debian/package.jars:
|JARS="/usr/share/subdir/private.jar:#DEBHELPER#"
|CONTRIB="ant"

debian/package.java:
|libregex-java >=2.5
|libother-java >=4.5

This information will be included in debian/control as {java:Depends} and
the whole will be muched into a usr/share/java-config/package file:
|JARS="/usr/share/subdir/private.jar:/usr/share/java/package.jar"
|CONTRIB="ant"
|DEPENDS="libregex-java libother-java"

Also, if CONTRIB is present, a postinst and postrm debhelper part will
be included.

See man dh_java for more info. Or read the script itself, it's my
first perl script...

Every script has a manpage and there are also manpages for the
configuration files: 
java-config-update(1), dh_java(1), findjava(1), java-config(1),
findjavarc(5), java-config-file(5)

Any comments *greatly* apreciated!

Jan

Attachment: signature.asc
Description: Digital signature


Reply to: