public void visit(DeploymentContext context) throws DeploymentException { VFSDeploymentContext vfsContext = (VFSDeploymentContext) context; List<VirtualFile> paths = vfsContext.getClassPath(); if (paths != null) classPath.addAll(paths); }
public VirtualFile getRoot() { return getDeploymentContext().getRoot(); }
public VirtualFile getFile(String path) { return getDeploymentContext().getFile(path); }
List<String> metaDataPath = contextInfo.getMetaDataPath(); if (metaDataPath != null && metaDataPath.isEmpty() == false) vfsContext.setMetaDataPath(contextInfo.getMetaDataPath()); VFSDeploymentContext top = vfsContext.getTopLevel(); VirtualFile root = top.getRoot(); List<VirtualFile> classPath = new ArrayList<VirtualFile>(); VirtualFile file = vfsContext.getRoot(); if (classPathHadVF == false && SecurityActions.isLeaf(file) == false) VFSUtils.addManifestLocations(file, classPath); vfsContext.setClassPath(classPath);
public List<VirtualFile> getMetaDataFiles(String name, String suffix, MetaDataTypeFilter filter) { return getDeploymentContext().getMetaDataFiles(name, suffix, filter); }
public VirtualFile getMetaDataFile(String name) { return getDeploymentContext().getMetaDataFile(name); }
@Override public VFSDeploymentResourceLoader getResourceLoader() { return getDeploymentContext().getResourceLoader(); }
public void setClassPath(List<VirtualFile> classPath) { getDeploymentContext().setClassPath(classPath); }
List<MetaDataEntry> metaDataPath = contextInfo.getMetaDataPath(); if (metaDataPath != null && metaDataPath.isEmpty() == false) vfsContext.setMetaDataPath(contextInfo.getMetaDataPath()); VFSDeploymentContext top = vfsContext.getTopLevel(); VirtualFile root = top.getRoot(); List<VirtualFile> classPath = new ArrayList<VirtualFile>(); VirtualFile file = vfsContext.getRoot(); if (classPathHadVF == false && SecurityActions.isLeaf(file) == false) vfsContext.setClassPath(classPath);
public List<VirtualFile> getMetaDataFiles(VirtualFileFilter filter, MetaDataTypeFilter mdtf) { return getDeploymentContext().getMetaDataFiles(filter, mdtf); }
public VirtualFile getMetaDataFile(String name) { return getDeploymentContext().getMetaDataFile(name); }
@Override public VFSDeploymentResourceLoader getResourceLoader() { return getDeploymentContext().getResourceLoader(); }
public void setClassPath(List<VirtualFile> classPath) { getDeploymentContext().setClassPath(classPath); }
public VirtualFile getRoot() { return getDeploymentContext().getRoot(); }
public List<VirtualFile> getClassPath() { return getDeploymentContext().getClassPath(); }
public List<VirtualFile> getMetaDataFiles(String name, String suffix) { return getDeploymentContext().getMetaDataFiles(name, suffix); }
public VirtualFile getFile(String path) { return getDeploymentContext().getFile(path); }
public VirtualFile getMetaDataFile(String name, MetaDataTypeFilter filter) { return getDeploymentContext().getMetaDataFile(name, filter); }
protected DeploymentContext createChildDeploymentContext(DeploymentContext parent, ContextInfo child) throws Exception { if (parent instanceof VFSDeploymentContext) { VFSDeploymentContext vfsParent = (VFSDeploymentContext) parent; String path = child.getPath(); try { VirtualFile parentFile = vfsParent.getRoot(); VirtualFile file = parentFile.findChild(path); // leaving the findChild usage return new AbstractVFSDeploymentContext(file, path); } catch (Throwable t) { throw DeploymentException.rethrowAsDeploymentException("Unable to determine child " + path + " from parent " + vfsParent.getRoot().getName(), t); } } return super.createChildDeploymentContext(parent, child); }
public List<VirtualFile> getClassPath() { return getDeploymentContext().getClassPath(); }