本文整理了Java中org.apache.cxf.version.Version.getCurrentVersion()
方法的一些代码示例,展示了Version.getCurrentVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getCurrentVersion()
方法的具体详情如下:
包路径:org.apache.cxf.version.Version
类名称:Version
方法名:getCurrentVersion
暂无
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http
private static String initUserAgent() {
String name = Version.getName();
if ("Apache CXF".equals(name)) {
name = "Apache-CXF";
}
String version = Version.getCurrentVersion();
return name + "/" + version;
}
代码示例来源:origin: apache/cxf
private static String initUserAgent() {
String name = Version.getName();
if ("Apache CXF".equals(name)) {
name = "Apache-CXF";
}
String version = Version.getCurrentVersion();
return name + "/" + version;
}
代码示例来源:origin: apache/cxf
public void setCommonAttributes() {
attributes.put("currentdate", Calendar.getInstance().getTime());
attributes.put("version", Version.getCurrentVersion());
attributes.put("name", Version.getName());
attributes.put("fullversion", Version.getCompleteVersionString());
}
代码示例来源:origin: org.apache.cxf/cxf-tools-common
public void setCommonAttributes() {
attributes.put("currentdate", Calendar.getInstance().getTime());
attributes.put("version", Version.getCurrentVersion());
attributes.put("name", Version.getName());
attributes.put("fullversion", Version.getCompleteVersionString());
}
代码示例来源:origin: apache/cxf
protected void setCommonAttributes() {
// Set generated date in ISO-8601 format, as is required for the date attribute for @Generated
// annotation.
setAttributes("currentdate", DatatypeConverter.printDateTime(Calendar.getInstance()));
setAttributes("version", Version.getCurrentVersion());
setAttributes("fullversion", Version.getCompleteVersionString());
setAttributes("name", Version.getName());
setAttributes(ToolConstants.CFG_MARK_GENERATED, env.optionSet(ToolConstants.CFG_MARK_GENERATED));
setAttributes(ToolConstants.CFG_SUPPRESS_GENERATED_DATE,
env.optionSet(ToolConstants.CFG_SUPPRESS_GENERATED_DATE));
if (env.optionSet(ToolConstants.CFG_FRONTEND)) {
setAttributes("frontend", env.get(ToolConstants.CFG_FRONTEND));
}
if (env.optionSet(ToolConstants.CFG_DATABINDING)) {
setAttributes("databinding", env.get(ToolConstants.CFG_DATABINDING));
}
}
代码示例来源:origin: org.apache.cxf/cxf-tools-wsdlto-core
protected void setCommonAttributes() {
// Set generated date in ISO-8601 format, as is required for the date attribute for @Generated
// annotation.
setAttributes("currentdate", DatatypeConverter.printDateTime(Calendar.getInstance()));
setAttributes("version", Version.getCurrentVersion());
setAttributes("fullversion", Version.getCompleteVersionString());
setAttributes("name", Version.getName());
setAttributes(ToolConstants.CFG_MARK_GENERATED, env.optionSet(ToolConstants.CFG_MARK_GENERATED));
setAttributes(ToolConstants.CFG_SUPPRESS_GENERATED_DATE,
env.optionSet(ToolConstants.CFG_SUPPRESS_GENERATED_DATE));
if (env.optionSet(ToolConstants.CFG_FRONTEND)) {
setAttributes("frontend", env.get(ToolConstants.CFG_FRONTEND));
}
if (env.optionSet(ToolConstants.CFG_DATABINDING)) {
setAttributes("databinding", env.get(ToolConstants.CFG_DATABINDING));
}
}
内容来源于网络,如有侵权,请联系作者删除!