diff options
author | Raphael Moll <ralf@android.com> | 2010-04-28 14:23:50 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2010-04-28 14:23:50 -0700 |
commit | 886a4f368cf3e793403b1b637e8f54f7a3ffb8e4 (patch) | |
tree | 1aa27cc579b500b96f170de0608510fc1522a23e /sdkmanager/app | |
parent | 2f3041c9707ca3a196083318d299ba71ab9d5cce (diff) | |
download | sdk-886a4f368cf3e793403b1b637e8f54f7a3ffb8e4.zip sdk-886a4f368cf3e793403b1b637e8f54f7a3ffb8e4.tar.gz sdk-886a4f368cf3e793403b1b637e8f54f7a3ffb8e4.tar.bz2 |
SDK Setup fixes.
- SDK Setup: cd to the SDK dir, to cope with the case
where the setup is executed from a shortcut with a
different base directory.
- SDK Manager: properly detect "update sdk" and "update avds"
commands.
Change-Id: I1f0d32fffd71d3fa0856e753a80505f3dcd076d1
Diffstat (limited to 'sdkmanager/app')
-rw-r--r-- | sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java | 2 | ||||
-rw-r--r-- | sdkmanager/app/src/com/android/sdkmanager/Main.java | 12 |
2 files changed, 5 insertions, 9 deletions
diff --git a/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java b/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java index d24bed4..6536baa 100644 --- a/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java +++ b/sdkmanager/app/src/com/android/sdkmanager/CommandLineProcessor.java @@ -115,7 +115,7 @@ class CommandLineProcessor { "Silent mode: only errors are printed out.", false); define(Mode.BOOLEAN, false, GLOBAL_FLAG_VERB, NO_VERB_OBJECT, "h", KEY_HELP, - "This help.", + "Help on a specific command.", false); } diff --git a/sdkmanager/app/src/com/android/sdkmanager/Main.java b/sdkmanager/app/src/com/android/sdkmanager/Main.java index 58a9a98..49eee7e 100644 --- a/sdkmanager/app/src/com/android/sdkmanager/Main.java +++ b/sdkmanager/app/src/com/android/sdkmanager/Main.java @@ -232,6 +232,10 @@ public class Main { updateTestProject(); } else if (SdkCommandLine.OBJECT_LIB_PROJECT.equals(directObject)) { updateProject(true /*library*/); + } else if (SdkCommandLine.OBJECT_SDK.equals(directObject)) { + showMainWindow(true /*autoUpdate*/); + } else if (SdkCommandLine.OBJECT_ADB.equals(directObject)) { + updateAdb(); } } else if (SdkCommandLine.VERB_DELETE.equals(verb) && SdkCommandLine.OBJECT_AVD.equals(directObject)) { @@ -244,14 +248,6 @@ public class Main { } else if (verb == null && directObject == null) { showMainWindow(false /*autoUpdate*/); - } else if (SdkCommandLine.VERB_UPDATE.equals(verb) && - SdkCommandLine.OBJECT_SDK.equals(directObject)) { - showMainWindow(true /*autoUpdate*/); - - } else if (SdkCommandLine.VERB_UPDATE.equals(verb) && - SdkCommandLine.OBJECT_ADB.equals(directObject)) { - updateAdb(); - } else { mSdkCommandLine.printHelpAndExit(null); } |