termux-packages/packages/ecj/ecj
2015-12-02 06:32:11 -05:00

11 lines
422 B
Bash
Executable File

#!/bin/sh
# There needs to be a folder at $ANDROID_DATA/dalvik-cache
export ANDROID_DATA=@TERMUX_PREFIX@/var/android/
mkdir -p $ANDROID_DATA/dalvik-cache
jarpath=@TERMUX_PREFIX@/share/dex/ecj.jar
# -proc:none to disable annotation processing/compiling
# -7 for java 1.7 compatibility
dalvikvm -Xmx256m -cp $jarpath org.eclipse.jdt.internal.compiler.batch.Main -proc:none -7 -cp @TERMUX_PREFIX@/share/java/android.jar $@