org.opengts.util
Class JarTools

java.lang.Object
  extended by org.opengts.util.JarTools

public class JarTools
extends java.lang.Object


Nested Class Summary
static class JarTools.JarEntryData
           
static class JarTools.JarFileData
           
 
Field Summary
static java.lang.String[] ARG_ANALYZE
           
static java.lang.String[] ARG_COPY
           
static java.lang.String[] ARG_EXCLUDE
           
static java.lang.String[] ARG_EXPAND
           
static java.lang.String[] ARG_MANIFEST
           
static java.lang.String[] ARG_ONEJAR
           
static java.lang.String[] ARG_TO_DIR
           
static java.lang.String[] ARG_TO_JAR
           
 
Constructor Summary
JarTools()
           
 
Method Summary
static void analyzeJar(java.io.File file)
           
static void analyzeZip(java.io.File file)
           
static java.lang.String compressionMethodString(int method)
           
static void copy(java.io.File fromJar, java.io.File toJar, boolean copyManifest)
           
static java.util.jar.Manifest expandJar(java.io.File file, java.io.File toDir)
          Expand/Unzip Jar file
static java.lang.String getManifestClassPath(java.util.jar.Manifest manifest)
           
static OrderedSet<java.lang.String> getManifestClassPathJars(java.util.jar.Manifest manifest)
           
static java.lang.String getManifestMainClass(java.util.jar.Manifest manifest)
           
static void logJarEntry(java.util.jar.JarEntry entry)
           
static void logManifest(java.util.jar.Manifest manifest)
           
static void main(java.lang.String[] argv)
           
static void oneJar(java.io.File file, java.io.File toFile, java.lang.String[] exclJars, boolean log)
          One-Jar file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARG_COPY

public static java.lang.String[] ARG_COPY

ARG_ONEJAR

public static java.lang.String[] ARG_ONEJAR

ARG_ANALYZE

public static java.lang.String[] ARG_ANALYZE

ARG_EXPAND

public static java.lang.String[] ARG_EXPAND

ARG_TO_DIR

public static java.lang.String[] ARG_TO_DIR

ARG_TO_JAR

public static java.lang.String[] ARG_TO_JAR

ARG_EXCLUDE

public static java.lang.String[] ARG_EXCLUDE

ARG_MANIFEST

public static java.lang.String[] ARG_MANIFEST
Constructor Detail

JarTools

public JarTools()
Method Detail

compressionMethodString

public static java.lang.String compressionMethodString(int method)

logManifest

public static void logManifest(java.util.jar.Manifest manifest)

logJarEntry

public static void logJarEntry(java.util.jar.JarEntry entry)
                        throws java.io.IOException
Throws:
java.io.IOException

getManifestMainClass

public static java.lang.String getManifestMainClass(java.util.jar.Manifest manifest)

getManifestClassPath

public static java.lang.String getManifestClassPath(java.util.jar.Manifest manifest)

getManifestClassPathJars

public static OrderedSet<java.lang.String> getManifestClassPathJars(java.util.jar.Manifest manifest)

copy

public static void copy(java.io.File fromJar,
                        java.io.File toJar,
                        boolean copyManifest)
                 throws java.io.IOException
Throws:
java.io.IOException

analyzeJar

public static void analyzeJar(java.io.File file)

expandJar

public static java.util.jar.Manifest expandJar(java.io.File file,
                                               java.io.File toDir)
                                        throws java.io.IOException
Expand/Unzip Jar file

Throws:
java.io.IOException

oneJar

public static void oneJar(java.io.File file,
                          java.io.File toFile,
                          java.lang.String[] exclJars,
                          boolean log)
                   throws java.io.IOException
One-Jar file

Throws:
java.io.IOException

analyzeZip

public static void analyzeZip(java.io.File file)

main

public static void main(java.lang.String[] argv)