List of usage examples for org.apache.commons.vfs.impl StandardFileSystemManager resolveFile
public FileObject resolveFile(final String uri) throws FileSystemException
From source file:org.ofbiz.commons.vfs.CommonsVfsContainer.java
public boolean start() throws ContainerException { try {/*from w w w .ja v a2 s.c om*/ StandardFileSystemManager sfsm = VFSUtil.createStandardFileSystemManager(); FileObject currentDir = sfsm.resolveFile(new File(".").toURI().toURL().toString()); sfsm.setBaseFile(currentDir); CommonsVfsContainer.sfsm = sfsm; } catch (FileSystemException e) { throw (ContainerException) new ContainerException("Initializing StandardFileSystemManager") .initCause(e); } catch (MalformedURLException e) { throw (ContainerException) new ContainerException("Initializing StandardFileSystemManager") .initCause(e); } return true; }