@InterfaceAudience.Private public final class JarFinder extends Object
Modifier | Constructor and Description |
---|---|
private |
JarFinder() |
Modifier and Type | Method and Description |
---|---|
private static void |
copyToZipStream(File file,
ZipEntry entry,
ZipOutputStream zos) |
private static void |
createJar(File dir,
File jarFile) |
static String |
getJar(Class klass)
Returns the full path to the Jar containing the class.
|
static void |
jarDir(File dir,
String relativePath,
ZipOutputStream zos) |
private static void |
zipDir(File dir,
String relativePath,
ZipOutputStream zos,
boolean start) |
private JarFinder()
private static void copyToZipStream(File file, ZipEntry entry, ZipOutputStream zos) throws IOException
IOException
public static void jarDir(File dir, String relativePath, ZipOutputStream zos) throws IOException
IOException
private static void zipDir(File dir, String relativePath, ZipOutputStream zos, boolean start) throws IOException
IOException
private static void createJar(File dir, File jarFile) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.