org.nuxeo.common.Environment.getPath()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(133)

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

Environment.getPath介绍

暂无

代码示例

代码示例来源:origin: org.nuxeo.common/nuxeo-common

  1. /**
  2. * @return the file which path is associated with the given key. The file is guaranteed to be absolute if it has
  3. * been set with {@link #setPath(String, File)}
  4. * @since 8.1
  5. */
  6. public File getPath(String key) {
  7. return getPath(key, null);
  8. }

代码示例来源:origin: org.nuxeo.runtime/nuxeo-connect-standalone

  1. public PackagePersistence(PackageUpdateService pus) throws IOException {
  2. Environment env = Environment.getDefault();
  3. root = env.getPath(Environment.NUXEO_MP_DIR, Environment.DEFAULT_MP_DIR);
  4. if (!root.isAbsolute()) {
  5. throw new RuntimeException();
  6. }
  7. root.mkdirs();
  8. store = new File(root, "store");
  9. store.mkdirs();
  10. temp = new File(root, "tmp");
  11. temp.mkdirs();
  12. service = pus;
  13. states = loadStates();
  14. }

相关文章