Java Code Examples for org.jboss.vfs.VFS#mountZipExpanded()

The following examples show how to use org.jboss.vfs.VFS#mountZipExpanded() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MountedDeploymentOverlay.java    From wildfly-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
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);
    }
}
 
Example 2
Source File: DeploymentHandler.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
protected MountHandle extractArchive(File archive, TempFileProvider tempFileProvider) throws IOException {
    return ((MountHandle)VFS.mountZipExpanded(archive, VFS.getChild("cli"), tempFileProvider));
}
 
Example 3
Source File: DeployArchiveCommand.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
static MountHandle extractArchive(File archive,
        TempFileProvider tempFileProvider, String name) throws IOException {
    return ((MountHandle) VFS.mountZipExpanded(archive, VFS.getChild(name),
            tempFileProvider));
}