aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/app
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2009-06-05 13:01:03 -0700
committerXavier Ducrohet <xav@android.com>2009-06-05 16:59:53 -0700
commit0741fc405e9e03b6849a27466607b62bc757c289 (patch)
treea389e65c12b31959ec0ddf16f2d0b0e7e9b74a68 /sdkmanager/app
parent61ad636fa37ae1d47f6db15ec34342d3e8616fb2 (diff)
downloadsdk-0741fc405e9e03b6849a27466607b62bc757c289.zip
sdk-0741fc405e9e03b6849a27466607b62bc757c289.tar.gz
sdk-0741fc405e9e03b6849a27466607b62bc757c289.tar.bz2
Add revision to Android targets.
The add-on use the "revision" property of the manifest (if it does not exists, it looks for the old deprecated "version" property). The platform uses the ro.build.version.incremental which is only an integer for builds from the build servers. Local builds contain <buildtype>.<username>.<date>.<time>. For those will use the date.
Diffstat (limited to 'sdkmanager/app')
-rw-r--r--sdkmanager/app/src/com/android/sdkmanager/Main.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdkmanager/app/src/com/android/sdkmanager/Main.java b/sdkmanager/app/src/com/android/sdkmanager/Main.java
index 26af498..1836d33 100644
--- a/sdkmanager/app/src/com/android/sdkmanager/Main.java
+++ b/sdkmanager/app/src/com/android/sdkmanager/Main.java
@@ -386,9 +386,11 @@ class Main {
if (target.isPlatform()) {
mSdkLog.printf(" Type: Platform\n");
mSdkLog.printf(" API level: %d\n", target.getApiVersionNumber());
+ mSdkLog.printf(" Revision: %d\n", target.getRevision());
} else {
mSdkLog.printf(" Type: Add-On\n");
mSdkLog.printf(" Vendor: %s\n", target.getVendor());
+ mSdkLog.printf(" Revision: %d\n", target.getRevision());
if (target.getDescription() != null) {
mSdkLog.printf(" Description: %s\n", target.getDescription());
}