本文整理了Java中freemarker.template.Version.isGAECompliant()
方法的一些代码示例,展示了Version.isGAECompliant()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.isGAECompliant()
方法的具体详情如下:
包路径:freemarker.template.Version
类名称:Version
方法名:isGAECompliant
暂无
代码示例来源:origin: org.freemarker/freemarker
public static void main(String[] args) {
Version ver = Configuration.getVersion();
System.out.println();
System.out.print("Apache FreeMarker version ");
System.out.print(ver);
/* If the version number doesn't already contain the build date and it's known, print it: */
if (!ver.toString().endsWith("Z")
&& ver.getBuildDate() != null) {
System.out.print(" (built on ");
System.out.print(DateUtil.dateToISO8601String(
ver.getBuildDate(),
true, true, true, DateUtil.ACCURACY_SECONDS,
DateUtil.UTC,
new DateUtil.TrivialDateToISO8601CalendarFactory()));
System.out.print(")");
}
System.out.println();
if (ver.isGAECompliant() != null) {
System.out.print("Google App Engine complian variant: ");
System.out.println(ver.isGAECompliant().booleanValue() ? "Yes" : "No");
}
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
public static void main(String[] args) {
Version ver = Configuration.getVersion();
System.out.println();
System.out.print("Apache FreeMarker version ");
System.out.print(ver);
/* If the version number doesn't already contain the build date and it's known, print it: */
if (!ver.toString().endsWith("Z")
&& ver.getBuildDate() != null) {
System.out.print(" (built on ");
System.out.print(DateUtil.dateToISO8601String(
ver.getBuildDate(),
true, true, true, DateUtil.ACCURACY_SECONDS,
DateUtil.UTC,
new DateUtil.TrivialDateToISO8601CalendarFactory()));
System.out.print(")");
}
System.out.println();
if (ver.isGAECompliant() != null) {
System.out.print("Google App Engine complian variant: ");
System.out.println(ver.isGAECompliant().booleanValue() ? "Yes" : "No");
}
}
}
代码示例来源:origin: org.freemarker/freemarker-gae
public static void main(String[] args) {
Version ver = Configuration.getVersion();
System.out.println();
System.out.print("Apache FreeMarker version ");
System.out.print(ver);
/* If the version number doesn't already contain the build date and it's known, print it: */
if (!ver.toString().endsWith("Z")
&& ver.getBuildDate() != null) {
System.out.print(" (built on ");
System.out.print(DateUtil.dateToISO8601String(
ver.getBuildDate(),
true, true, true, DateUtil.ACCURACY_SECONDS,
DateUtil.UTC,
new DateUtil.TrivialDateToISO8601CalendarFactory()));
System.out.print(")");
}
System.out.println();
if (ver.isGAECompliant() != null) {
System.out.print("Google App Engine complian variant: ");
System.out.println(ver.isGAECompliant().booleanValue() ? "Yes" : "No");
}
}
}
内容来源于网络,如有侵权,请联系作者删除!