Package org.nuxeo.common.utils
Class JarUtils
- java.lang.Object
-
- org.nuxeo.common.utils.JarUtils
-
public final class JarUtils extends Object
- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ManifestgetDirectoryManifest(File file)static ManifestgetJarManifest(File file)static ManifestgetManifest(File file)static ManifestgetManifest(URL url)static URItoJarURI(Path path)static PathzipDirectory(Path source, Path target, CopyOption... options)Zips recursively as a jar the content ofsourceto thetargetzip file.
-
-
-
Method Detail
-
getDirectoryManifest
public static Manifest getDirectoryManifest(File file) throws IOException
- Throws:
IOException
-
getJarManifest
public static Manifest getJarManifest(File file) throws IOException
- Throws:
IOException
-
zipDirectory
public static Path zipDirectory(Path source, Path target, CopyOption... options) throws IOException
Zips recursively as a jar the content ofsourceto thetargetzip file.- Throws:
IOException- Since:
- 9.3
-
-