OSDN Git Service

original
[gb-231r1-is01/GB_2.3_IS01.git] / cts / development / ide / eclipse / genclasspath.sh
diff --git a/cts/development/ide/eclipse/genclasspath.sh b/cts/development/ide/eclipse/genclasspath.sh
new file mode 100644 (file)
index 0000000..00ee9b3
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Outputs a classpath file containing classpaths from development/ide/eclipse
+# and additional classpaths from cts/development/ide/eclipse.
+#
+# From your $ANDROID_BUILD_TOP directory:
+# ./cts/development/ide/eclipse/genclasspath.sh > .classpath
+
+if [[ -z $ANDROID_BUILD_TOP ]]; then
+  echo "Run 'lunch' to set \$ANDROID_BUILD_TOP" >&2
+  exit 1
+fi
+
+echo '<?xml version="1.0" encoding="UTF-8"?>'
+echo '<classpath>'
+cat $ANDROID_BUILD_TOP/cts/development/ide/eclipse/.classpath | grep classpathentry
+cat $ANDROID_BUILD_TOP/development/ide/eclipse/.classpath | grep classpathentry
+echo '</classpath>'