1 21 22 24 package org.apache.derby.impl.tools.sysinfo; 25 26 import java.util.Properties ; 27 import java.io.OutputStream ; 28 import org.apache.derby.iapi.services.info.PropertyNames; 29 import org.apache.derby.iapi.services.info.ProductVersionHolder; 30 31 public class ZipInfoProperties { 33 private final ProductVersionHolder version; 34 42 private String location; 43 44 ZipInfoProperties(ProductVersionHolder version) { 45 this.version = version; 46 } 47 48 54 public String getVersionBuildInfo() 55 { 56 if (version == null) 57 { 58 return Main.getTextMessage ("SIF04.C"); 59 } 60 61 if ("DRDA:jcc".equals(version.getProductTechnologyName())) 62 return version.getSimpleVersionString() + " - (" + version.getBuildNumber() + ")"; 63 64 return version.getVersionBuildString(true); 65 66 } 67 68 public String getLocation() 69 { 70 if (location == null) 71 return Main.getTextMessage ("SIF01.H"); 72 return location; 73 } 74 75 void setLocation(String location) { 76 this.location = location; 77 } 78 79 80 81 } 82 83 84 | Popular Tags |