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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user