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-j...@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




Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to