Bug#935842: jh_buld: Make java source version configurable

Markus Koschany apo at debian.org
Mon Aug 26 22:35:49 BST 2019


Am 26.08.19 um 22:51 schrieb darkdragon:
> If you would also tell me HOW or even better add this to the tutorial
> (https://people.debian.org/~apo/java/tutorial.html), I would be really
> happy!

Compiling Java source files to a specific release is not Debian
specific. Take a look at man javac for example to learn more about the
-source and -target parameters. You would just pass them to jh_build.
The tutorial can't answer every question. In my opinion it would be
better when you asked concrete questions about Debian Java packaging on
debian-java at lists.debian.org or in #debian-java on irc.debian.org or if
you help to improve the wiki page about Java packaging.

The relevant option in jh_build is javacopts, see also man jh_build

override_dh_auto_build:
    jh_build --javacopts="-source 1.8 -target 1.8" test.jar src




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20190826/8d6bcebc/attachment-0001.sig>


More information about the pkg-java-maintainers mailing list