org.dspace.app.util.Util.getSourceVersion()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(162)

本文整理了Java中org.dspace.app.util.Util.getSourceVersion()方法的一些代码示例,展示了Util.getSourceVersion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.getSourceVersion()方法的具体详情如下:
包路径:org.dspace.app.util.Util
类名称:Util
方法名:getSourceVersion

Util.getSourceVersion介绍

[英]Gets Maven version string of the source that built this instance.
[中]获取生成此实例的源的Maven版本字符串。

代码示例

代码示例来源:origin: DSpace/DSpace

  1. public Status() {
  2. setOkay(true);
  3. setSourceVersion(Util.getSourceVersion());
  4. String[] version = Util.getSourceVersion().split("\\.");
  5. setApiVersion(version[0]); // major version
  6. setAuthenticated(false);
  7. }

代码示例来源:origin: DSpace/DSpace

  1. Util.getSourceVersion());

代码示例来源:origin: DSpace/DSpace

  1. zip.setComment("METS archive created by DSpace " + Util.getSourceVersion());
  2. Mets manifest = makeManifest(context, dso, params, extraStreams);

代码示例来源:origin: DSpace/DSpace

  1. Name creatorName = new Name();
  2. creatorName.getContent()
  3. .add(new PCData("DSpace " + Util.getSourceVersion()));
  4. agentCreator.getContent().add(creatorName);
  5. metsHdr.getContent().add(agentCreator);

代码示例来源:origin: org.dspace/dspace-xmlui-api

  1. pageMeta.addMetadata("request","URI").addContent(request.getSitemapURI());
  2. String dspaceVersion = Util.getSourceVersion();
  3. if (dspaceVersion != null)

代码示例来源:origin: org.dspace/dspace-xmlui-api

  1. pageMeta.addMetadata("request","URI").addContent(request.getSitemapURI());
  2. String dspaceVersion = Util.getSourceVersion();
  3. if (dspaceVersion != null)

代码示例来源:origin: org.dspace/dspace-xmlui-api

  1. dspace.addItem(Util.getSourceVersion());

相关文章