upload android base code part3
This commit is contained in:
parent
71b83c22f1
commit
b9e30e05b1
15122 changed files with 2089659 additions and 0 deletions
20
android/build/make/core/find-jdk-tools-jar.sh
Executable file
20
android/build/make/core/find-jdk-tools-jar.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
if [ "x$ANDROID_JAVA_HOME" != x ] && [ -e "$ANDROID_JAVA_HOME/lib/tools.jar" ] ; then
|
||||
echo $ANDROID_JAVA_HOME/lib/tools.jar
|
||||
else
|
||||
JAVAC=$(realpath $(which javac) 2>/dev/null)
|
||||
if [ -z "$JAVAC" ]; then
|
||||
JAVAC=$(readlink -f $(which javac) 2>/dev/null)
|
||||
fi
|
||||
if [ -z "$JAVAC" ]; then
|
||||
JAVAC=$(which javac)
|
||||
fi
|
||||
if [ -z "$JAVAC" ] ; then
|
||||
exit 1
|
||||
fi
|
||||
while [ -L "$JAVAC" ] ; do
|
||||
LSLINE=$(ls -l "$JAVAC")
|
||||
JAVAC=$(echo -n "$LSLINE" | sed -e "s/.* -> //")
|
||||
done
|
||||
echo $JAVAC | sed -e 's:\(.*\)/javac$:\1/../lib/tools.jar:'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue