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 Manifest
getDirectoryManifest(File file)
static Manifest
getJarManifest(File file)
static Manifest
getManifest(File file)
static Manifest
getManifest(URL url)
static URI
toJarURI(Path path)
static Path
zipDirectory(Path source, Path target, CopyOption... options)
Zips recursively as a jar the content ofsource
to thetarget
zip file.
-
-
-
Method Detail
-
getManifest
public static Manifest getManifest(File file)
-
getDirectoryManifest
public static Manifest getDirectoryManifest(File file) throws IOException
- Throws:
IOException
-
getJarManifest
public static Manifest getJarManifest(File file) throws IOException
- Throws:
IOException
-
getManifest
public static Manifest getManifest(URL url)
-
zipDirectory
public static Path zipDirectory(Path source, Path target, CopyOption... options) throws IOException
Zips recursively as a jar the content ofsource
to thetarget
zip file.- Throws:
IOException
- Since:
- 9.3
-
-