public final class JarUtils extends Object
| Modifier and Type | Method and 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 of
source to the target zip file. |
public static Manifest getManifest(File file)
public static Manifest getDirectoryManifest(File file) throws IOException
IOExceptionpublic static Manifest getJarManifest(File file) throws IOException
IOExceptionpublic static Manifest getManifest(URL url)
public static Path zipDirectory(Path source, Path target, CopyOption... options) throws IOException
source to the target zip file.IOExceptionCopyright © 2018 Nuxeo. All rights reserved.