本文整理了Java中org.nuxeo.common.Environment.getPath()
方法的一些代码示例,展示了Environment.getPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.getPath()
方法的具体详情如下:
包路径:org.nuxeo.common.Environment
类名称:Environment
方法名:getPath
暂无
代码示例来源:origin: org.nuxeo.common/nuxeo-common
/**
* @return the file which path is associated with the given key. The file is guaranteed to be absolute if it has
* been set with {@link #setPath(String, File)}
* @since 8.1
*/
public File getPath(String key) {
return getPath(key, null);
}
代码示例来源:origin: org.nuxeo.runtime/nuxeo-connect-standalone
public PackagePersistence(PackageUpdateService pus) throws IOException {
Environment env = Environment.getDefault();
root = env.getPath(Environment.NUXEO_MP_DIR, Environment.DEFAULT_MP_DIR);
if (!root.isAbsolute()) {
throw new RuntimeException();
}
root.mkdirs();
store = new File(root, "store");
store.mkdirs();
temp = new File(root, "tmp");
temp.mkdirs();
service = pus;
states = loadStates();
}
内容来源于网络,如有侵权,请联系作者删除!