CTS Eclipse Classpath File Generator
Add a script that combine the classpath under development/ide/eclipse
with a .classpath file under cts/development/ide/eclipse that has
the CTS packages. Run the following in your ANDROID_BUILD_TOP to
generate a classpath for Eclipse that has the CTS packages:
./cts/development/ide/eclipse/genclasspath.sh > .classpath
Change-Id: I0cd0cecdf594d99e52b1b78d8c50f80bbf855d0f
diff --git a/development/ide/eclipse/.classpath b/development/ide/eclipse/.classpath
new file mode 100644
index 0000000..841158a
--- /dev/null
+++ b/development/ide/eclipse/.classpath
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="cts/tests/ApiDemosReferenceTest/src"/>
+ <classpathentry kind="src" path="cts/tests/ProcessTest/src"/>
+ <classpathentry kind="src" path="cts/tests/ProcessTest/NoShareUidApp/src"/>
+ <classpathentry kind="src" path="cts/tests/ProcessTest/ShareUidApp/src"/>
+ <classpathentry kind="src" path="cts/tests/SignatureTest/src"/>
+ <classpathentry kind="src" path="cts/tests/SignatureTest/tests/src"/>
+ <classpathentry kind="src" path="cts/tests/accessibilityservice/src"/>
+ <classpathentry kind="src" path="cts/tests/appsecurity-tests/src"/>
+ <classpathentry kind="src" path="cts/tests/core/runner/src"/>
+ <classpathentry kind="src" path="cts/tests/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/accessibilityservice/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/accounts/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/app/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/bluetooth/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/content/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/database/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/dpi/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/dpi2/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/example/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/gesture/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/graphics/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/hardware/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/jni/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/location/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/media/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/net/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/os/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/performance/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/performance2/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/performance3/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/performance4/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/performance5/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/permission/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/permission2/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/provider/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/speech/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/telephony/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/text/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/util/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/view/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/webkit/src"/>
+ <classpathentry kind="src" path="cts/tests/tests/widget/src"/>
+ <classpathentry kind="src" path="cts/tools/annotation-helper/src"/>
+ <classpathentry kind="src" path="cts/tools/cts-reference-app-lib/src"/>
+ <classpathentry kind="src" path="cts/tools/dasm/src"/>
+ <classpathentry kind="src" path="cts/tools/device-setup/TestDeviceSetup/src"/>
+ <classpathentry kind="src" path="cts/tools/dex-tools/src"/>
+ <classpathentry kind="src" path="cts/tools/dx-tests/src"/>
+ <classpathentry kind="src" path="cts/tools/host/src"/>
+ <classpathentry kind="src" path="cts/tools/host/test"/>
+ <classpathentry kind="src" path="cts/tools/signature-tools/src"/>
+ <classpathentry kind="src" path="cts/tools/signature-tools/test"/>
+ <classpathentry kind="src" path="cts/tools/spec-progress/src"/>
+ <classpathentry kind="src" path="cts/tools/test-progress-new/src"/>
+ <classpathentry kind="src" path="cts/tools/utils"/>
+ <classpathentry kind="src" path="cts/tools/vm-tests/src"/>
+ <classpathentry kind="src" path="out/target/common/obj/APPS/CtsTestStubs_intermediates/src/src"/>
+ <classpathentry kind="src" path="out/target/common/obj/APPS/CtsAccessibilityServiceTestCases_intermediates/src/src"/>
+</classpath>
diff --git a/development/ide/eclipse/genclasspath.sh b/development/ide/eclipse/genclasspath.sh
new file mode 100755
index 0000000..00ee9b3
--- /dev/null
+++ b/development/ide/eclipse/genclasspath.sh
@@ -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>'