Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Revert " [BZ 1081564] Update rhq ui to support patch update increment…
Browse files Browse the repository at this point in the history
…s when available."

This reverts commit e84817f.
  • Loading branch information
Simeon Pinder committed Mar 28, 2014
1 parent 256b347 commit a89ec3e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 53 deletions.
Expand Up @@ -39,7 +39,6 @@ public class ProductInfo implements Serializable {
private String version;
private String buildNumber;
private String helpDocRoot;
private String updateVersion;
private HashMap<String, String> helpViewContent;

public String getShortName() {
Expand Down Expand Up @@ -129,12 +128,4 @@ public HashMap<String, String> getHelpViewContent() {
public void setHelpViewContent(HashMap<String, String> helpViewContent) {
this.helpViewContent = helpViewContent;
}

public String getUpdateVersion() {
return updateVersion;
}

public void setUpdateVersion(String updateVersion) {
this.updateVersion = updateVersion;
}
}
Expand Up @@ -71,14 +71,8 @@ private static Canvas buildAboutCanvas(ProductInfo productInfo) {
productUrl.setWrap(false);
productUrl.setWrapTitle(false);

//Conditionally check for and apply update/patch version details
String updatePortion = productInfo.getUpdateVersion();
if (updatePortion == null) {
updatePortion = "";
}

StaticTextItem version = new StaticTextItem("version", MSG.view_aboutBox_version());
version.setValue(productInfo.getVersion() + (updatePortion.trim().length() == 0 ? "" : " " + updatePortion));
version.setValue(productInfo.getVersion());
version.setWrap(false);
version.setWrapTitle(false);

Expand Down
Expand Up @@ -62,6 +62,7 @@
public class CoreServer implements CoreServerMBean {
private static final String PRODUCT_INFO_PROPERTIES_RESOURCE_PATH =
"org/rhq/enterprise/server/core/ProductInfo.properties";

private static final Log LOG = LogFactory.getLog(CoreServer.class);

/**
Expand Down Expand Up @@ -221,9 +222,6 @@ public ProductInfo getProductInfo() {
productInfo.setUrl(props.getProperty("url"));
productInfo.setVersion(props.getProperty("version"));

// Update property which records update/patch version: Ex. update-1, cp1, etc.
productInfo.setUpdateVersion(ProductUpdates.getUpdateVersion());

HashMap<String, String> helpViewContent = new HashMap<String, String>();

for (String propertyName : props.stringPropertyNames()) {
Expand Down

This file was deleted.

0 comments on commit a89ec3e

Please sign in to comment.