-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry-point.sh
executable file
·62 lines (48 loc) · 1.38 KB
/
entry-point.sh
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
ENABLE_DEBUG=false
if [ "$PLUGIN_DEBUG" = "true" ] || [ "$PARAMETER_DEBUG" = "true" ]; then
ENABLE_DEBUG=true
fi
if [ ! -z "$PLUGIN_MAIN_CLASS" ]; then
MAIN_CLASS=$PLUGIN_MAIN_CLASS
elif [ ! -z "$PARAMETER_MAIN_CLASS" ]; then
MAIN_CLASS=$PARAMETER_MAIN_CLASS
fi
if [ ! -z "$PLUGIN_JAR_NAME" ]; then
JAR_NAME=$PLUGIN_JAR_NAME
elif [ ! -z "$PARAMETER_JAR_NAME" ]; then
JAR_NAME=$PARAMETER_JAR_NAME
fi
if [ ! -z "$PLUGIN_CONFIG_FILE" ]; then
CONFIG_FILE=$PLUGIN_CONFIG_FILE
elif [ ! -z "$PARAMETER_CONFIG_FILE" ]; then
CONFIG_FILE=$PARAMETER_CONFIG_FILE
fi
if [ ! -z "$PLUGIN_CLASSPATH" ]; then
CLASSPATH=$PLUGIN_CLASSPATH
elif [ ! -z "$PARAMETER_CLASSPATH" ]; then
CLASSPATH=$PARAMETER_CLASSPATH
fi
if [ ! -z "$PLUGIN_REFLECTION_PATH" ]; then
REFLECTION_PATH=$PLUGIN_REFLECTION_PATH
elif [ ! -z "$PARAMETER_REFLECTION_PATH" ]; then
REFLECTION_PATH=$PARAMETER_REFLECTION_PATH
fi
if [ ! -z "$MAIN_CLASS" ]; then
ALL_OPTS="$ALL_OPTS -m $MAIN_CLASS"
fi
if [ ! -z "$JAR_NAME" ]; then
ALL_OPTS="$ALL_OPTS -j $JAR_NAME"
fi
if [ ! -z "$CONFIG_FILE" ]; then
ALL_OPTS="$ALL_OPTS -c $CONFIG_FILE"
fi
if [ ! -z "$CLASSPATH" ]; then
ALL_OPTS="$ALL_OPTS -cp $CLASSPATH"
fi
if [ ! -z "$REFLECTION_PATH" ]; then
ALL_OPTS="$ALL_OPTS -rp $REFLECTION_PATH"
fi
if [ "$ENABLE_DEBUG" = "true" ]; then
ALL_OPTS="$ALL_OPTS -d"
fi
java -jar /scripts/CreateNativeImage.jar $ALL_OPTS