Line
Link Here
|
0 |
-- processing |
0 |
++ processing |
Lines 30-36
Link Here
|
30 |
fi |
30 |
fi |
31 |
} |
31 |
} |
32 |
|
32 |
|
33 |
|
|
|
34 |
# Locates JDKLIBS in a directory and its subdirectories and saves their |
33 |
# Locates JDKLIBS in a directory and its subdirectories and saves their |
35 |
# absolute paths as list to JDKCP. Expects the directory as parameter $1. |
34 |
# absolute paths as list to JDKCP. Expects the directory as parameter $1. |
36 |
# Sets SUCCESS to 1 if all libraries were found, to 0 otherwise. |
35 |
# Sets SUCCESS to 1 if all libraries were found, to 0 otherwise. |
Lines 64-100
Link Here
|
64 |
log JDKCP |
63 |
log JDKCP |
65 |
} |
64 |
} |
66 |
|
65 |
|
67 |
|
|
|
68 |
# Get absolute path of directory where this script is located |
66 |
# Get absolute path of directory where this script is located |
69 |
APPDIR=`readlink -f "$0"` |
67 |
APPDIR=`readlink -f "$0"` |
70 |
APPDIR=`dirname "$APPDIR"` |
68 |
APPDIR=`dirname "$APPDIR"` |
71 |
log APPDIR |
69 |
log APPDIR |
72 |
|
70 |
|
73 |
# Try using a local JDK from the same directory as this script |
71 |
make_jdkcp $(java-config -O) |
74 |
JDKDIR=`readlink -f "$APPDIR/java"` |
|
|
75 |
make_jdkcp "$JDKDIR" |
76 |
log SUCCESS |
72 |
log SUCCESS |
77 |
|
73 |
|
78 |
# Local JDK found? |
|
|
79 |
if [ $SUCCESS -ne 1 ]; then |
80 |
# No, try using the preferred system JRE/JDK (if any) |
81 |
JDKDIR=`which java` && JDKDIR=`readlink -e "$JDKDIR"` && JDKDIR=`dirname "$JDKDIR"`/.. |
82 |
make_jdkcp "$JDKDIR" |
83 |
log SUCCESS |
84 |
fi |
85 |
|
86 |
# Add all required JARs to CLASSPATH |
74 |
# Add all required JARs to CLASSPATH |
87 |
CLASSPATH="$CLASSPATH"${CLASSPATH:+:}"$JDKCP" |
75 |
CLASSPATH="${CLASSPATH+$CLASSPATH:}$JDKCP" |
88 |
for LIB in "$APPDIR"/lib/*.jar; do |
76 |
for LIB in "$APPDIR"/lib/*.jar; do |
89 |
CLASSPATH="$CLASSPATH"${CLASSPATH:+:}"$LIB" |
77 |
CLASSPATH="${CLASSPATH+$CLASSPATH:}$LIB" |
90 |
done |
78 |
done |
|
|
79 |
CLASSPATH="${CLASSPATH+$CLASSPATH:}$(java-config -dp ant-core):$(java-config -dp antlr):$(java-config -dp eclipse-ecj-3.7):$(java-config -dp jna)" |
91 |
export CLASSPATH |
80 |
export CLASSPATH |
92 |
log CLASSPATH |
81 |
log CLASSPATH |
93 |
|
82 |
|
94 |
# Make all JDK binaries available in PATH |
|
|
95 |
export PATH="$JDKDIR/bin":"$PATH" |
96 |
log PATH |
97 |
|
98 |
# Start Processing in the same directory as this script |
83 |
# Start Processing in the same directory as this script |
99 |
cd "$APPDIR" |
84 |
cd "$APPDIR" |
100 |
if [ "$1" ]; then |
85 |
if [ "$1" ]; then |