diff options
author | Siva Velusamy <vsiva@google.com> | 2014-02-27 10:44:08 -0800 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2014-02-27 10:44:21 -0800 |
commit | 0a313f3a938c335800486529500c9f65849e15a4 (patch) | |
tree | b46ffe71f0dc06205c8159e384623fa99ada5655 /eclipse | |
parent | 5281ea1ba94ed4ff8fb6996b89249428b6eb7014 (diff) | |
download | sdk-0a313f3a938c335800486529500c9f65849e15a4.zip sdk-0a313f3a938c335800486529500c9f65849e15a4.tar.gz sdk-0a313f3a938c335800486529500c9f65849e15a4.tar.bz2 |
Fix path to dexdump
Change-Id: I11bade1debfec42f790534cc7a699686b1e8db1d
Diffstat (limited to 'eclipse')
-rwxr-xr-x | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/actions/DexDumpAction.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/actions/DexDumpAction.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/actions/DexDumpAction.java index a483e9b..289cf24 100755 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/actions/DexDumpAction.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/actions/DexDumpAction.java @@ -21,6 +21,7 @@ import com.android.annotations.Nullable; import com.android.ide.eclipse.adt.AdtPlugin; import com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.BuildVerbosity; import com.android.ide.eclipse.adt.internal.sdk.Sdk; +import com.android.sdklib.BuildToolInfo; import com.android.sdklib.util.GrabProcessOutput; import com.android.sdklib.util.GrabProcessOutput.IProcessOutput; import com.android.sdklib.util.GrabProcessOutput.Wait; @@ -126,9 +127,15 @@ public class DexDumpAction implements IObjectActionDelegate { return Status.OK_STATUS; } - String sdkOsPath = current.getSdkLocation(); - File dexDumpFile = new File(new File(sdkOsPath, SdkConstants.FD_PLATFORM_TOOLS), - SdkConstants.FN_DEXDUMP); + BuildToolInfo buildToolInfo = current.getLatestBuildTool(); + if (buildToolInfo == null) { + AdtPlugin.printErrorToConsole(project, + "SDK missing build tools. Please install build tools using SDK Manager."); + return Status.OK_STATUS; + } + + File buildToolsFolder = buildToolInfo.getLocation(); + File dexDumpFile = new File(buildToolsFolder, SdkConstants.FN_DEXDUMP); IPath binPath = project.getFolder(SdkConstants.FD_OUTPUT).getLocation(); if (binPath == null) { |