Guest User

Untitled

a guest
May 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/bin/sh
  2. # add the compiler to the classpath and then use the default java
  3. # implementation. If the user wants to change the version of java
  4. # they can define what 'java' resolves to.
  5.  
  6. out=~/ejc.debug
  7. echo "Original args $@" &> $out
  8.  
  9. JVM_ARGS=
  10. ARGS=
  11. while [ $# -gt 0 ] ; do
  12. case "$1" in
  13. -J*) jopt=${1#\-J} ; JVM_ARGS="$JVM_ARGS $jopt"; echo "... Stripped $1" >> $out ;;
  14. *) ARGS="$ARGS $1" ; echo "... Retaining $1" >> $out ;;
  15. esac
  16. shift
  17. done
  18.  
  19. echo "CLASSPATH=/opt/local/share/java/eclipse-ecj.jar${CLASSPATH:+:}$CLASSPATH java ${JVM_ARGS} org.eclipse.jdt.internal.compiler.batch.Main ${ARGS}" >> $out
  20.  
  21. CLASSPATH=/opt/local/share/java/eclipse-ecj.jar${CLASSPATH:+:}$CLASSPATH \
  22. java "${JVM_ARGS}" org.eclipse.jdt.internal.compiler.batch.Main "${ARGS}"
Add Comment
Please, Sign In to add comment