Skip to content
Snippets Groups Projects
Commit 4b7c6d6b authored by brinn's avatar brinn
Browse files

add method getCPUArchitecture() and add information in getBuildInformation()

SVN: 1489
parent edc3829e
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,14 @@ public final class BuildAndEnvironmentInfo ...@@ -78,6 +78,14 @@ public final class BuildAndEnvironmentInfo
this.cleanSources = extractedCleanFlag; this.cleanSources = extractedCleanFlag;
} }
/**
* @return Name of the CPU architecture.
*/
public String getCPUArchitecture()
{
return System.getProperty("os.arch");
}
/** /**
* @return Name and version of the operating system. * @return Name and version of the operating system.
*/ */
...@@ -143,6 +151,7 @@ public final class BuildAndEnvironmentInfo ...@@ -143,6 +151,7 @@ public final class BuildAndEnvironmentInfo
environmentInfo.add("Version:\t" + getVersion()); environmentInfo.add("Version:\t" + getVersion());
environmentInfo.add("Build number:\t" + getBuildNumber()); environmentInfo.add("Build number:\t" + getBuildNumber());
environmentInfo.add("Java VM:\t" + getJavaVM()); environmentInfo.add("Java VM:\t" + getJavaVM());
environmentInfo.add("CPU architecture:\t" + getCPUArchitecture());
environmentInfo.add("OS:\t\t" + getOS()); environmentInfo.add("OS:\t\t" + getOS());
return environmentInfo; return environmentInfo;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment