From bb3e273c91c1ec9929fe15cc7cfb7d25d7fd1bf5 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Thu, 13 May 2010 14:57:12 +0000 Subject: Synced Java FAQ. --- debian-java-faq/debian-java-faq.sgml | 48 +++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 17 deletions(-) (limited to 'debian-java-faq/debian-java-faq.sgml') diff --git a/debian-java-faq/debian-java-faq.sgml b/debian-java-faq/debian-java-faq.sgml index ba407c9..2f7035f 100644 --- a/debian-java-faq/debian-java-faq.sgml +++ b/debian-java-faq/debian-java-faq.sgml @@ -16,7 +16,7 @@ Javier Fernández-Sanguino Peña jfs@debian.org -$Revision: 7333 $, $Date: 2010-05-13 15:22:31 +0200 (Thu, 13 May 2010) $ +$Revision: 7336 $, $Date: 2010-05-13 16:55:09 +0200 (Thu, 13 May 2010) $ Answers to Frequently Asked Questions on Debian and Java @@ -366,18 +366,6 @@ in main, and if it has a Debian compliant open source license. If it needs programs from contrib or non-free, then is must go into contrib or non-free, depending on the license of the program itself. -What virtual packages could I use? -

- -java-common. It is the Mother Of All Java -Packages, in the proposed policy. It contains the text of the Policy -(Docbook), as well as utilities -scripts (for instance to build a CLASSPATH from a list of jars -(submissions welcome). -java-virtual-machine -java-compiler - - Is there a good example Debian package?

There are many Debian packages of both Java applications and libraries. @@ -396,10 +384,36 @@ But, some tips for good practice are given on the pkg-java page: What tools are available to make maintaining a Java packages easier? -

At this moment, there is dh_javadoc, which is a tool -in the gjdoc package in Debian unstable. And, there -are tools in cdbs which can help build packages with -ant. +

Both cdbs and debhelper (dh7) have support for ant scripts. There +are also a number of specialized tools or build helpers. Have a look +at javahelper +or maven-debian-helper. gcj-jdk +also has a dh_javadoc tool.

+ +Linking package Javadoc to system javadoc. + +

The java-policy mandates that documentation must be linked with +with the javadoc installed on the system. This can be done by passing +javadoc the "-link" argument or by using the <link> tag in ant. +An example: + + +# command line example of linking against system doc. +javadoc -link /usr/share/doc/default-jdk-doc/api [other arguments] + +<!-- Ant example of linking against system doc --> +<javadoc [attributes]> + <link href="/usr/share/doc/default-jdk-doc/api/" /> + [other tags] +</javadoc> + +

+ +

The documentation must be installed at the time the linking is +done; so in the example cases above the package would need a +Build-Depends or a Build-Depends-Indep on +default-jdk-doc. +

Java Compilers

-- cgit v1.2.3