Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # Find eclipse binary
  3. if [ "$ECLIPSE" = "" ]
  4. then
  5. ECLIPSE=`which eclipse`
  6. fi
  7. if [ "$ECLIPSE" = "" ]
  8. then
  9. echo "Could not find 'eclipse' in PATH"
  10. echo "Either add it to the PATH or set the ECLIPSE variable to point to the Eclipse binary"
  11. echo "e.g. ECLIPSE=\"/some/where/eclipse\" $0"
  12. exit 1
  13. fi
  14. # Resolve project root directory
  15. basedir=`dirname $0`/..
  16. pushd "$basedir" > /dev/null
  17. basedir=`pwd`
  18. popd > /dev/null
  19. SRC=`ls -d $basedir/*/src $basedir/*/tests/src`
  20. # Use project formatting settings
  21. config="$basedir/.settings/org.eclipse.jdt.core.prefs"
  22. "$ECLIPSE" -nosplash -application org.eclipse.jdt.core.JavaCodeFormatter -config "$config" $SRC