Hello,
After some difficulties, I think I'm almost done with my deb packaging of my java application [1].
Now, the last thing I did not mannage to do is to install all my resource folder in the JAR file.
My project tree looks like that:
test
resources
sources
I would like to include the directory resources inside my JAR file, like I created the JAR with eclipse.
To do that, I tried several ways in the d/rules file.
Currently, the file is like that (not in the repo, on my laptop):
#!/usr/bin/make -f
# debian/rules for spview
%:
dh $@ --with javahelper
override_jh_build:
jh_build --javacopts="-source 1.8 -target 1.8" --no-javadoc spview.jar sources
I tried to add
export JH_JAR_EXTRA=resources
at the beginning of the file
I also tried to write:
override_jh_build:
jh_build --javacopts="-source 1.8 -target 1.8" --no-javadoc spview.jar sources resources
or
dh $@ --with javahelper --sourcedirectory=resources
with also no succes.
Please, could you help me to find out the stone I have in my shoes ?
[1] : https://salsa.debian.org/science-team/spview
Cyril RICHARD - Ingénieur de Recherche CNRS
Equipe Spectroscopie Moléculaire, Processus Collisionnels et Applications
Département Interactions et Contrôle quantiques (ICQ)
Laboratoire Interdisciplinaire Carnot de Bourgogne, UMR 6303 CNRS-Univ. Bourgogne Franche-Comté
9 Avenue Alain Savary, BP 47 870, F-21078 DIJON Cedex FRANCE
Tel. : +33 (0)3 80 39 59 96 / Fax : +33 (0)3 80 39 59 71
E-mail : Cyril.Richard@u-bourgogne.fr
Web : http://icb.u-bourgogne.fr