aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2009-10-06 10:45:18 -0700
committerXavier Ducrohet <xav@android.com>2009-10-06 10:45:18 -0700
commit4be32e033d5b3ebe403fe3b87904f0bba600f110 (patch)
treea23781d09df195de42a4a9e7187965c00dfb05d9 /eclipse/scripts
parent8c6d9a4216bcb0eb2405ec6f0e878380ed80fd74 (diff)
downloadsdk-4be32e033d5b3ebe403fe3b87904f0bba600f110.zip
sdk-4be32e033d5b3ebe403fe3b87904f0bba600f110.tar.gz
sdk-4be32e033d5b3ebe403fe3b87904f0bba600f110.tar.bz2
Put kxml back in adt-test
Since adt doesn't export the package, it's just easier that way. Change-Id: Iddb7f4660ccc0bc51374128a544975596cb051aa
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-xeclipse/scripts/create_test_symlinks.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/eclipse/scripts/create_test_symlinks.sh b/eclipse/scripts/create_test_symlinks.sh
index 913f24f..8996258 100755
--- a/eclipse/scripts/create_test_symlinks.sh
+++ b/eclipse/scripts/create_test_symlinks.sh
@@ -31,16 +31,20 @@ BACK=`back $DEST`
HOST=`uname`
if [ "$HOST" == "Linux" ]; then
+ ln -svf $BACK/out/host/linux-x86/framework/kxml2-2.3.0.jar "$DEST/"
ln -svf $BACK/out/host/linux-x86/framework/layoutlib.jar "$DEST/"
-
elif [ "$HOST" == "Darwin" ]; then
+ ln -svf $BACK/out/host/darwin-x86/framework/kxml2-2.3.0.jar "$DEST/"
ln -svf $BACK/out/host/darwin-x86/framework/layoutlib.jar "$DEST/"
elif [ "${HOST:0:6}" == "CYGWIN" ]; then
+ if [ ! -f "$DEST/kxml2-2.3.0.jar" ]; then
+ cp -v "prebuilt/common/kxml2/kxml2-2.3.0.jar" "$DEST/"
+ fi
+
cp -v "$BACK/out/host/windows/framework/layoutlib.jar" "$DEST/"
chmod -v a+rx "$DEST"/*.jar
-
else
echo "Unsupported platform ($HOST). Nothing done."
fi
@@ -51,8 +55,6 @@ cpdir $DEST development/tools/ddms/libs/ddmlib/tests/src/com/android/ddmlib
cpdir $DEST development/tools/sdkmanager/libs/sdklib/tests/com/android/sdklib
DEST=$BASE/unittests/com/android/layoutlib
-if [ ! -d "$DEST" ]; then
- mkdir $DEST
-fi
+mkdir -p $DEST
cpdir $DEST frameworks/base/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge