Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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