Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # add the compiler to the classpath and then use the default java
- # implementation. If the user wants to change the version of java
- # they can define what 'java' resolves to.
- out=~/ejc.debug
- echo "Original args $@" &> $out
- JVM_ARGS=
- ARGS=
- while [ $# -gt 0 ] ; do
- case "$1" in
- -J*) jopt=${1#\-J} ; JVM_ARGS="$JVM_ARGS $jopt"; echo "... Stripped $1" >> $out ;;
- *) ARGS="$ARGS $1" ; echo "... Retaining $1" >> $out ;;
- esac
- shift
- done
- echo "CLASSPATH=/opt/local/share/java/eclipse-ecj.jar${CLASSPATH:+:}$CLASSPATH java ${JVM_ARGS} org.eclipse.jdt.internal.compiler.batch.Main ${ARGS}" >> $out
- CLASSPATH=/opt/local/share/java/eclipse-ecj.jar${CLASSPATH:+:}$CLASSPATH \
- java "${JVM_ARGS}" org.eclipse.jdt.internal.compiler.batch.Main "${ARGS}"
Add Comment
Please, Sign In to add comment