/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 CEST 2000". */ public static String getBuildTime() { //String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage()==null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s==null) return "unknown"; int k = s.indexOf('('); return s.substring(k+1,s.length()-1); } /**
/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 CEST 2000". */ public static String getBuildTime() { //String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage()==null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s==null) return "unknown"; int k = s.indexOf('('); return s.substring(k+1,s.length()-1); } /**
/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 * CEST 2000". */ public static String getBuildTime() { // String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage() == null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s == null) return "unknown"; int k = s.indexOf('('); return s.substring(k + 1, s.length() - 1); }
/** * Returns the time this release was build; for example "Tue Apr 11 11:50:39 * CEST 2000". */ public static String getBuildTime() { // String s = "1.2.3.56 (Tue Apr 11 11:50:39 CEST 2000)"; if (getPackage() == null) return "unknown"; String s = getPackage().getImplementationVersion(); if (s == null) return "unknown"; int k = s.indexOf('('); return s.substring(k + 1, s.length() - 1); }
/** * Returns all version information as string. */ public static String asString() { if (getPackage() == null) return "piotr.wendykier@gmail.com"; String vendor = getPackage().getImplementationVendor(); if (vendor == null) vendor = "piotr.wendykier@gmail.com"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to " + vendor; }
/** * Returns all version information as string. */ public static String asString() { if (getPackage() == null) return "piotr.wendykier@gmail.com"; String vendor = getPackage().getImplementationVendor(); if (vendor == null) vendor = "piotr.wendykier@gmail.com"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to " + vendor; }
/** * Returns all version information as string. */ public static String asString() { if (getPackage()==null) return "whoschek@lbl.gov"; String vendor = getPackage().getImplementationVendor(); if (vendor==null) vendor = "whoschek@lbl.gov"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to "+ vendor; } /**
/** * Returns all version information as string. */ public static String asString() { if (getPackage()==null) return "whoschek@lbl.gov"; String vendor = getPackage().getImplementationVendor(); if (vendor==null) vendor = "whoschek@lbl.gov"; return "Version " + getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + "." + getBuildVersion() + " (" + getBuildTime() + ")" + "\nPlease report problems to "+ vendor; } /**