}
RepositoryAddress mp =
new RepositoryAddress(uri.toString());
log.info("Mounting JcrFs on {}", mp.toString());
ExportRoot exportRoot = ExportRoot.findRoot(getPlatformFile("", true));
MetaInf inf = exportRoot == null ? null : exportRoot.getMetaInf();
// get config
VaultFsConfig jcrfsConfig = null;
if (config != null) {
File configFile = new File(config);
if (configFile.canRead()) {
jcrfsConfig = AbstractVaultFsConfig.load(configFile);
log.info("using {}", configFile.getCanonicalPath());
}
}
if (jcrfsConfig == null && inf != null) {
jcrfsConfig = inf.getConfig();
if (jcrfsConfig != null) {
log.info("using config from {}", exportRoot.getMetaDir().getPath());
}
}
if (jcrfsConfig == null) {
log.info("using embeded default config");
}
// get workspace filter
WorkspaceFilter wspFilter = null;
if (filter != null) {
File filterFile = new File(filter);
if (filterFile.canRead()) {
wspFilter = new DefaultWorkspaceFilter();
((DefaultWorkspaceFilter) wspFilter).load(filterFile);
log.info("using {}", filterFile.getCanonicalPath());
}
}
if (wspFilter == null && inf != null) {
wspFilter = inf.getFilter();
if (wspFilter != null) {
log.info("using filter from {}", exportRoot.getMetaDir().getPath());
}
}
if (wspFilter == null) {
log.info("using embeded default filter");
}