|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.JarFiles
This class is used to merge a set of Jar/Zip Files in a Jar File It is ignored the manifest.
Field Summary | |
private static int |
BUFF_SIZE
|
private byte[] |
buffer
|
(package private) String |
buggyJar
|
private StringBuffer |
dbgString
|
private static boolean |
DEBUG
Debug flag |
private Set |
directorySet
|
private boolean |
warning
|
Constructor Summary | |
JarFiles()
|
Method Summary | |
private void |
addJar(JarOutputStream destinationJar,
JarFile sourceJar)
This method adds all entries from sourceJar to destinationJar NOTE: that manifest information is not added, method will throw a gate Exception if a duplicate entry file is found. |
static void |
main(String[] args)
args[0] is the final jar file and the other are the set of jar file names e.g. |
void |
merge(Set jarFileNames,
String destinationJarName)
This method takes the content of all jar/zip files from the set jarFileNames and put them in a file with the name outputFileName. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final boolean DEBUG
private StringBuffer dbgString
private boolean warning
String buggyJar
private static final int BUFF_SIZE
private Set directorySet
private byte[] buffer
Constructor Detail |
public JarFiles()
Method Detail |
public void merge(Set jarFileNames, String destinationJarName) throws GateException
jarFileNames
- is a set of names of files (jar/zip)
GateException
private void addJar(JarOutputStream destinationJar, JarFile sourceJar) throws GateException
destinationJar
- the jar that will collect all the entries
from source jarsourceJar
- doesn't need any explanation ... DOES it?
GateException
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |