File: plm.sh

package info (click to toggle)
plm 2.6%2Brepack-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 15,000 kB
  • ctags: 6,149
  • sloc: java: 34,456; ansic: 4,070; python: 2,576; xml: 191; perl: 150; makefile: 42; sh: 16
file content (39 lines) | stat: -rwxr-xr-x 1,443 bytes parent folder | download
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
#!/bin/sh
#
#
. /usr/lib/java-wrappers/java-wrappers.sh

# Jython compiles java bytecode into python bytecode in advance; it needs a user-writable directory to cache it
export JYTHON_OPTS="${JYTHON_OPTS} -Dpython.cachedir=${HOME}/.jython_cachedir"

# Detect and warn about a possible misconfiguration
if [ -n "$JAVA_HOME" ] && [ "x$JAVA_HOME" != x. ] ; then
	echo "Your JAVA_HOME is set to $JAVA_HOME. Please make sure that this points to a Java7 runtime"
fi	
if [ -n "$JAVA_CMD" ] && [ "x$JAVA_CMD" != x. ] ; then
	echo "Your JAVA_CMD is set to $JAVA_CMD. Please make sure that this points to a Java7 runtime"
fi	

# We depend on the openjdk runtime 
find_java_runtime openjdk7

# Request jython and friends.
# (I'd like to have it used only if found, but this does not work yet: as we build-dep on jython, jh_build adds it to the depends)
find_jars jython jruby antlr3-runtime-3.2 asm3
# jython fails with antlr3-runtime-3.5 (see #796933)

# For some reason, some people need these jar to be manually loaded. That's annoying, they should be picked automatically instead.
find_jars commons-logging guava

# http stuff
find_jars httpmime httpcore httpclient

# scala stuff
# find_jars scala-compiler (not in the right directory)
JAVA_CLASSPATH=$JAVA_CLASSPATH:/usr/share/scala/lib/scala-compiler.jar
find_jars scala-library scala-reflect

# We obviously need our own library
find_jars plm

run_java plm.core.ui.ProgrammersLearningMachine "$@"