public static final String PROP_KEY_VERSION = "version"; //$NON-NLS-1$
public static final String PROP_KEY_BUILD_TIME = "build_time"; //$NON-NLS-1$
public static final String PROP_KEY_GIT_VERSION = "build_git_commit"; //$NON-NLS-1$
+ public static final String PKG_VERSION="package_version";
public static final String IMAGE_INFO_FILENAME = "info.ini"; //$NON-NLS-1$
public static final String IMAGE_OLD_PLATFORM = "platform"; //$NON-NLS-1$
private String about_version = ""; //$NON-NLS-1$
private String time = ""; //$NON-NLS-1$
private String gitVersion = ""; //$NON-NLS-1$
+ private String packageVersion = "";
private String workspace = ""; //$NON-NLS-1$
private String contents = ""; //$NON-NLS-1$
//ver = properties.getProperty(StringResources.PROP_KEY_VERSION);
time = properties.getProperty(StringResources.PROP_KEY_BUILD_TIME);
gitVersion = properties.getProperty(StringResources.PROP_KEY_GIT_VERSION);
+ packageVersion = properties.getProperty(StringResources.PKG_VERSION);
} catch (IOException e1) {
EMLogger.getLogger().log(Level.SEVERE, e1.getMessage());
} finally {
Properties props = new Properties();
props.load(fis);
ver = props.getProperty(StringResources.TIZEN_SDK_VERSION);
-
+
} catch (FileNotFoundException e){
EMLogger.getLogger().log(Level.SEVERE, e.getMessage());
} catch (Exception e) {
workspace = StringResources.UNDEFINED;
}
+ if (packageVersion == null || packageVersion.isEmpty()) {
+ packageVersion = StringResources.UNDEFINED;
+ }
+
contents = String.format("%-12s : %s\n%-12s : %s\n%-12s : %s\n%-12s : %s", //$NON-NLS-1$
"Version", about_version, "Build time" ,(time + " (GMT)"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
"Git version", gitVersion, "Workspace path", workspace); //$NON-NLS-1$ //$NON-NLS-2$
public String getAboutVersion() {
return about_version;
}
+
+ public String getPackageVersion() {
+ return packageVersion;
+ }
+
+ public void setPackageVersion(String packageVersion) {
+ this.packageVersion = packageVersion;
+ }
}