private static Closeable mount(VirtualFile moduleFile, boolean explode) throws IOException { return explode ? VFS.mountZipExpanded(moduleFile, moduleFile, TempFileProviderService.provider()) : VFS.mountZip(moduleFile, moduleFile, TempFileProviderService.provider()); }
overlay.remountAsZip(false); } else if (archive.isFile()) { closable = VFS.mountZip(archive, archive, TempFileProviderService.provider()); } else { closable = null;
public void remountAsZip(boolean expanded) throws IOException { IoUtils.safeClose(closeable); if(expanded) { closeable = VFS.mountZipExpanded(realFile, mountPoint, tempFileProvider); } else { closeable = VFS.mountZip(realFile, mountPoint, tempFileProvider); } }
overlay.remountAsZip(false); } else if(child.isFile()) { closable = VFS.mountZip(child, child, TempFileProviderService.provider());
public void remountAsZip(boolean expanded) throws IOException { IoUtils.safeClose(closeable); if(expanded) { closeable = VFS.mountZipExpanded(realFile, mountPoint, tempFileProvider); } else { closeable = VFS.mountZip(realFile, mountPoint, tempFileProvider); } }
overlay.remountAsZip(false); } else if(child.isFile()) { closable = VFS.mountZip(child, child, TempFileProviderService.provider());
public void remountAsZip(boolean expanded) throws IOException { IoUtils.safeClose(closeable); if(expanded) { closeable = VFS.mountZipExpanded(realFile, mountPoint, tempFileProvider); } else { closeable = VFS.mountZip(realFile, mountPoint, tempFileProvider); } }
private void ensureMounted() throws IOException { synchronized (this) { if (mount == null && acceptForMount()) { mount = VFS.mountZip(vfsFile, vfsFile, tmpProvider); } } }
private static Closeable mount(VirtualFile moduleFile, boolean explode) throws IOException { return explode ? VFS.mountZipExpanded(moduleFile, moduleFile, TempFileProviderService.provider()) : VFS.mountZip(moduleFile, moduleFile, TempFileProviderService.provider()); }
/** * Create and mount a zip file into the filesystem, returning a single handle which will unmount and close the file * system when closed. * * @param zipFile a zip file in the VFS * @param mountPoint the point at which the filesystem should be mounted * @param tempFileProvider the temporary file provider * @return a handle * @throws IOException if an error occurs */ public static Closeable mountZip(VirtualFile zipFile, VirtualFile mountPoint, TempFileProvider tempFileProvider) throws IOException { return mountZip(zipFile.openStream(), zipFile.getName(), mountPoint, tempFileProvider); }
private static Closeable mount(VirtualFile moduleFile, boolean explode) throws IOException { return explode ? VFS.mountZipExpanded(moduleFile, moduleFile, TempFileProviderService.provider()) : VFS.mountZip(moduleFile, moduleFile, TempFileProviderService.provider()); }
public void addZip(final String path, final File zipFile) throws IOException { VirtualFile mountPoint = mountRoot.getChild(path); Closeable handle = VFS.mountZip(zipFile, mountPoint, getTempFileProvider()); mountHandles.add(handle); add(path, mountPoint); }
private static Closeable mount(VirtualFile moduleFile, boolean explode) throws IOException { return explode ? VFS.mountZipExpanded(moduleFile, moduleFile, TempFileProviderService.provider()) : VFS.mountZip(moduleFile, moduleFile, TempFileProviderService.provider()); }
public void addZip(final String path, final File zipFile) throws IOException { VirtualFile mountPoint = mountRoot.getChild(path); Closeable handle = VFS.mountZip(zipFile, mountPoint, getTempFileProvider()); mountHandles.add(handle); add(path, mountPoint); }
private static Closeable mount(VirtualFile moduleFile, boolean explode) throws IOException { return explode ? VFS.mountZipExpanded( moduleFile, moduleFile, TempFileProviderService.provider() ) : VFS.mountZip( moduleFile, moduleFile, TempFileProviderService.provider() ); }
VirtualFileAdaptor30(String name, InputStream input) throws IOException { this(VFS.getChild(name)); if (input == null) throw MESSAGES.illegalArgumentNull("input"); mount = VFS.mountZip(input, vfsFile.getName(), vfsFile, tmpProvider); }
private static Closeable mount(VirtualFile moduleFile, boolean explode) throws DeploymentUnitProcessingException { try { return explode ? VFS.mountZipExpanded(moduleFile, moduleFile, TempFileProviderService.provider()) : VFS.mountZip(moduleFile, moduleFile, TempFileProviderService.provider()); } catch (IOException e) { throw new DeploymentUnitProcessingException(e); } }
@Override public Closeable mountDeploymentContent(final VirtualFile contents, VirtualFile mountPoint, MountType type) throws IOException { // according to the javadoc contents can not be null assert contents != null : "null contents"; switch (type) { case ZIP: return VFS.mountZip(contents, mountPoint, tempFileProvider); case EXPANDED: return VFS.mountZipExpanded(contents, mountPoint, tempFileProvider); case REAL: return VFS.mountReal(contents.getPhysicalFile(), mountPoint); default: throw ServerLogger.ROOT_LOGGER.unknownMountType(type); } }
@Override public Closeable mountDeploymentContent(final VirtualFile contents, VirtualFile mountPoint, MountType type) throws IOException { // according to the javadoc contents can not be null assert contents != null : "null contents"; switch (type) { case ZIP: return VFS.mountZip(contents, mountPoint, tempFileProvider); case EXPANDED: return VFS.mountZipExpanded(contents, mountPoint, tempFileProvider); case REAL: return VFS.mountReal(contents.getPhysicalFile(), mountPoint); default: throw ServerMessages.MESSAGES.unknownMountType(type); } }
@Override public Closeable mountDeploymentContent(final VirtualFile contents, VirtualFile mountPoint, MountType type) throws IOException { // according to the javadoc contents can not be null assert contents != null : "null contents"; switch (type) { case ZIP: return VFS.mountZip(contents, mountPoint, tempFileProvider); case EXPANDED: return VFS.mountZipExpanded(contents, mountPoint, tempFileProvider); case REAL: return VFS.mountReal(contents.getPhysicalFile(), mountPoint); default: throw ServerMessages.MESSAGES.unknownMountType(type); } }