Modify archquery to be able to print any system property.

(this is change 4207 that was abandoned due to a merge conflict.)
This commit is contained in:
Raphael
2009-06-15 13:36:11 -07:00
parent 31d55c618e
commit cf0131406d

View File

@@ -45,6 +45,12 @@ package com.android.archquery;
*/ */
public final class Main { public final class Main {
public static void main(String[] args) { public static void main(String[] args) {
for (String arg : args) {
System.out.println(String.format("%1$s: %2$s", arg, System.getProperty(arg)));
}
if (args.length == 0) {
// Values listed from http://lopica.sourceforge.net/os.html // Values listed from http://lopica.sourceforge.net/os.html
String arch = System.getProperty("os.arch"); String arch = System.getProperty("os.arch");
@@ -62,4 +68,5 @@ public final class Main {
System.out.print(arch); System.out.print(arch);
} }
} }
}
} }