File: jabref-wrapper

package info (click to toggle)
jabref 3.8.2%2Bds-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,456 kB
  • sloc: java: 114,177; xml: 3,985; sh: 291; python: 283; perl: 200; ruby: 22; makefile: 6
file content (63 lines) | stat: -rwxr-xr-x 1,398 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh

# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh

# We need a java8 runtime (at least)
find_java_runtime java8

MAJOR_JAVA_VERSION=$(run_java -version 2>&1 | grep ' version ' | awk '{print $3}' | cut -f1 -d'.' | cut -c2-)
if ( test $MAJOR_JAVA_VERSION -ge 9 ) ; then
    # We need some options to start this version on openjdk9 and later
    # See http://discourse.jabref.org/t/cannot-start-jabref-3-7-3-6-using-java-9-on-ubuntu-16-04/361/8
    JABREF_JAVA_OPTS=${JABREF_JAVA_OPTS-"--add-opens=java.desktop/java.awt=ALL-UNNAMED"}

    # But java.se.ee only works for Java 9 and Java 10
    if ( test $MAJOR_JAVA_VERSION -lt 11 ) ; then
        JABREF_JAVA_OPTS="${JABREF_JAVA_OPTS} --add-modules=java.se.ee"
    fi
fi

find_jars \
	jabref \
	bcprov \
	antlr3-runtime \
	antlr4-runtime \
	com.android.json \
	commons-cli \
	commons-codec \
	commons-lang3 \
	commons-logging \
	fontbox \
	glazedlists \
	guava \
	httpasyncclient \
	httpclient \
	httpcore \
	httpcore-nio \
	httpmime \
	java-string-similarity \
	jaxb-runtime \
	jempbox \
	jgoodies-common \
	jgoodies-forms \
	jgoodies-looks \
	jhlabs-filters \
	jsoup \
	juh \
	jurt \
	log4j-api \
	log4j-core \
	log4j-jcl \
	microba \
	mariadb-java-client \
	pdfbox \
	postgresql \
	ridl \
	spin \
	swingx \
	swing-layout \
	unirest-java \
	unoil

run_java ${JABREF_JAVA_OPTS} net.sf.jabref.JabRefMain "$@"