summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2018-03-12 13:50:28 -0700
committerFelipe Leme <felipeal@google.com>2018-03-12 14:00:02 -0700
commit64d9576a66c9e703f3d046e5bb3a939a6731d4c4 (patch)
tree866a2cb9523d8af9821af4e3fff805a440206fdd
parentf14f064012f6c77afab10e1f4b37d86a205ebc29 (diff)
downloaddevtools-64d9576a66c9e703f3d046e5bb3a939a6731d4c4.tar.gz
Test: uiautomatorviewer Bug: 74542448 Change-Id: I11358cfee7a99c0c410f350038acec305514e26f
-rwxr-xr-xtools/uiautomatorviewer4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/uiautomatorviewer b/tools/uiautomatorviewer
index 79faf5a..d9108cb 100755
--- a/tools/uiautomatorviewer
+++ b/tools/uiautomatorviewer
@@ -94,11 +94,11 @@ fi
# Combine the swtpath and the framework dir path.
if [ -d "$swtpath" ]; then
- frameworkdir="${swtpath}:${frameworkdir}"
+ frameworkdir="${swtpath}/*:${frameworkdir}/*"
else
echo "SWT folder '${swtpath}' does not exist."
echo "Please export ANDROID_SWT to point to the folder containing swt.jar for your platform."
exit 1
fi
-exec "${javaCmd}" $javaOpts -Djava.ext.dirs="$frameworkdir" -Dcom.android.uiautomator.bindir="$progdir" -jar "$jarpath" "$@"
+exec "${javaCmd}" $javaOpts -classpath "$frameworkdir:$jarpath" -Dcom.android.uiautomator.bindir="$progdir" com.android.uiautomator.UiAutomatorViewer "$@"