Brian Muramatsu | f176eaf | 2010-07-27 14:27:01 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Outputs a classpath file containing classpaths from development/ide/eclipse |
| 4 | # and additional classpaths from cts/development/ide/eclipse. |
| 5 | # |
| 6 | # From your $ANDROID_BUILD_TOP directory: |
| 7 | # ./cts/development/ide/eclipse/genclasspath.sh > .classpath |
| 8 | |
| 9 | if [[ -z $ANDROID_BUILD_TOP ]]; then |
| 10 | echo "Run 'lunch' to set \$ANDROID_BUILD_TOP" >&2 |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
| 14 | echo '<?xml version="1.0" encoding="UTF-8"?>' |
| 15 | echo '<classpath>' |
| 16 | cat $ANDROID_BUILD_TOP/cts/development/ide/eclipse/.classpath | grep classpathentry |
| 17 | cat $ANDROID_BUILD_TOP/development/ide/eclipse/.classpath | grep classpathentry |
| 18 | echo '</classpath>' |