本文整理了Java中com.sun.appserv.server.util.Version.getFullVersion()
方法的一些代码示例,展示了Version.getFullVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getFullVersion()
方法的具体详情如下:
包路径:com.sun.appserv.server.util.Version
类名称:Version
方法名:getFullVersion
[英]Returns full version including build id
[中]返回包含生成id的完整版本
代码示例来源:origin: org.glassfish.main.common/amx-core
public String getApplicationServerFullVersion() {
return Version.getFullVersion();
}
代码示例来源:origin: org.glassfish.main.core/kernel
private void setVersion() {
System.setProperty("glassfish.version", Version.getFullVersion());
}
代码示例来源:origin: org.glassfish.main.admin/admin-cli
private void invokeLocal() {
String fv = Version.getFullVersion();
logger.info(terse ? fv : strings.get("version.local", fv));
if (verbose)
logger.info(strings.get("version.local.java",
System.getProperty("java.version")));
}
代码示例来源:origin: org.glassfish.main.admin/backup
private void setProps(BackupRequest request) {
props.setProperty(Constants.PROPS_USER_NAME,
System.getProperty(Constants.PROPS_USER_NAME));
props.setProperty(Constants.PROPS_TIMESTAMP_MSEC,
"" + request.timestamp);
props.setProperty(Constants.PROPS_DOMAINS_DIR,
FileUtils.safeGetCanonicalPath(request.domainsDir));
props.setProperty(Constants.PROPS_DOMAIN_DIR,
FileUtils.safeGetCanonicalPath(request.domainDir));
props.setProperty(Constants.PROPS_BACKUP_FILE,
FileUtils.safeGetCanonicalPath(request.backupFile));
props.setProperty(Constants.PROPS_DOMAIN_NAME,
request.domainName);
props.setProperty(Constants.PROPS_DESCRIPTION,
request.description);
props.setProperty(Constants.PROPS_TIMESTAMP_HUMAN,
new Date(request.timestamp).toString());
props.setProperty(Constants.PROPS_VERSION,
Version.getFullVersion());
String type = request.configOnly ? Constants.CONFIG_ONLY :
Constants.FULL;
props.setProperty(Constants.PROPS_TYPE, type);
String bc = (request.backupConfig == null) ? Constants.NO_CONFIG : request.backupConfig;
props.setProperty(Constants.BACKUP_CONFIG,bc);
}
代码示例来源:origin: org.glassfish.main.core/kernel
@Override
public void execute(AdminCommandContext context) {
String vers;
if (verbose) {
vers = strings.getLocalString("version.verbose",
"{0}, JRE version {1}",
Version.getFullVersion(), System.getProperty("java.version"));
} else {
vers = strings.getLocalString("version",
"{0}", Version.getFullVersion());
}
ActionReport report = context.getActionReport();
Properties ep = new Properties();
ep.setProperty("version", Version.getVersion());
ep.setProperty("full-version", Version.getFullVersion());
ep.setProperty("version-number", Version.getVersionNumber());
report.setExtraProperties(ep);
report.setActionExitCode(ExitCode.SUCCESS);
report.setMessage(vers);
}
}
代码示例来源:origin: org.glassfish.admin/admin-cli
private void invokeLocal() {
GlassFishBranding br = new GlassFishBranding();
br.postConstruct();
Version version = new Version();
version.setBranding(br);
version.postConstruct();
String fv = Version.getFullVersion();
logger.info(terse ? fv : strings.get("version.local", fv));
if (verbose)
logger.info(strings.get("version.local.java",
System.getProperty("java.version")));
}
代码示例来源:origin: org.glassfish.main.admin/server-mgmt
substitutableTokens.put(SECURE_ADMIN_IDENTIFIER_TOKEN_NAME, (String) domainConfig.get(DomainConfig.K_SECURE_ADMIN_IDENTIFIER));
substitutableTokens.put(VERSION_TOKEN_NAME, Version.getFullVersion());
substitutableTokens.put(INSTALL_ROOT_TOKEN_NAME, domainConfig.getInstallRoot());
代码示例来源:origin: org.glassfish.main.core/kernel
String serverVersion = Version.getFullVersion();
内容来源于网络,如有侵权,请联系作者删除!