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
IOException
public static Manifest getJarManifest(File file) throws IOException
IOException
public static Manifest getManifest(URL url)
public static Path zipDirectory(Path source, Path target, CopyOption... options) throws IOException
source
to the target
zip file.IOException
Copyright © 2018 Nuxeo. All rights reserved.