本文整理了Java中org.nuxeo.common.Environment.getData()
方法的一些代码示例,展示了Environment.getData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.getData()
方法的具体详情如下:
包路径:org.nuxeo.common.Environment
类名称:Environment
方法名:getData
暂无
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
} else {
File home = Environment.getDefault().getData();
base = new File(home, path);
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-content-template-manager
@Override
public File getFile(String path) {
File nxDdataFolder = Environment.getDefault().getData();
return new File(nxDdataFolder, path);
}
},
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-convert
protected String getDefaultCachingDirectory() {
File cache = new File(Environment.getDefault().getData(), DEFAULT_CACHING_DIRECTORY);
return cache.getAbsolutePath();
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-cache
private File getDataDir(TransientStoreConfig config) {
String dataDirPath = config.getDataDir();
if (StringUtils.isBlank(dataDirPath)) {
File transienStoreHome = new File(Environment.getDefault().getData(), "transientstores");
return new File(transienStoreHome, config.getName());
} else {
return new File(dataDirPath);
}
}
代码示例来源:origin: org.nuxeo.runtime/nuxeo-runtime-osgi
private StandaloneApplication(SharedClassLoader cl, Environment env) {
super(env.getHome(), env.getData(), env.getProperties());
classLoader = cl;
this.env = env;
}
代码示例来源:origin: org.nuxeo.runtime/nuxeo-runtime-osgi
/**
* @since 5.5
* @return Environment summary
*/
protected static StringBuilder getStartMessage() {
String newline = System.getProperty("line.separator");
Environment env = Environment.getDefault();
String hr = "======================================================================";
StringBuilder msg = new StringBuilder(newline);
msg.append(hr).append(newline);
msg.append("= Starting Nuxeo Framework").append(newline);
msg.append(hr).append(newline);
msg.append(" * Server home = ").append(env.getServerHome()).append(newline);
msg.append(" * Runtime home = ").append(env.getRuntimeHome()).append(newline);
msg.append(" * Data Directory = ").append(env.getData()).append(newline);
msg.append(" * Log Directory = ").append(env.getLog()).append(newline);
msg.append(" * Configuration Directory = ").append(env.getConfig()).append(newline);
msg.append(" * Temp Directory = ").append(env.getTemp()).append(newline);
msg.append(hr);
return msg;
}
}
代码示例来源:origin: org.nuxeo.runtime/nuxeo-runtime-osgi
public synchronized void start() {
if (osgi != null) {
throw new IllegalStateException("Nuxeo Runtime already started");
}
osgi = new OSGiAdapter(env.getHome(), env.getData(), env.getProperties());
}
代码示例来源:origin: org.nuxeo.runtime/nuxeo-runtime-osgi
protected void autoInstallBundles() throws IOException, BundleException {
List<File> cp = getClassPath();
if (cp == null || cp.isEmpty()) {
return;
}
boolean clear = hasCommandLineOption("clear");
ClassPath cpath = new ClassPath(classLoader, new File(env.getData(), "nested-jars"));
File cache = new File(env.getData(), "bundles.cache");
if (!clear && cache.exists()) {
try {
cpath.restore(cache);
} catch (IOException e) { // rebuild cache
cpath.scan(classPath, scanForNestedJARs, libdirs);
cpath.store(cache);
}
} else {
cpath.scan(classPath, scanForNestedJARs, libdirs);
cpath.store(cache);
}
installAll(cpath.getBundles());
// new ApplicationBundleLoader(this, !clear).loadBundles(classPath);
}
代码示例来源:origin: org.nuxeo.runtime/nuxeo-runtime-osgi
env.getData().mkdirs();
env.getLog().mkdirs();
env.getTemp().mkdirs();
代码示例来源:origin: org.nuxeo.runtime/nuxeo-runtime-osgi
env.setData(new File(v));
} else {
sysprops.setProperty(Environment.NUXEO_DATA_DIR, env.getData().getAbsolutePath());
内容来源于网络,如有侵权,请联系作者删除!