org.enhydra.tool.archive
Class JarBuilder
java.lang.Object
|
+--org.enhydra.tool.archive.JarBuilder
- All Implemented Interfaces:
- Constants, ManifestKeys
- Direct Known Subclasses:
- EarBuilder, EjbBuilder, WarBuilder
- public class JarBuilder
- extends java.lang.Object
- implements Constants, ManifestKeys
Fields inherited from interface org.enhydra.tool.archive.ManifestKeys |
ALT_DD, APP_DESC, APP_META, APP_NAME, CLASS_ALL, CLASS_ROOT, CONTENT_ALL, CONTENT_ROOT, COPY_CLIENT, CREATE_CLIENT, CREATED_BY, ENTERPRISE_MODULE, KELP_VERSION, LIBRARY, MANIFEST_VERSION, VERSION_VALUE, WEBAPP_CONTEXT, WEBAPP_MODULE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarBuilder
public JarBuilder()
main
public static void main(java.lang.String[] args)
getPlan
public JarPlan getPlan()
setPlan
public void setPlan(JarPlan p)
buildArchive
public java.io.File buildArchive()
throws ArchiveException
ArchiveException
buildManifest
protected java.util.jar.Manifest buildManifest(java.util.jar.Manifest m)
closeJarStream
protected void closeJarStream()
throws ArchiveException
ArchiveException
openJarStream
protected java.io.File openJarStream(java.lang.String p)
throws ArchiveException
ArchiveException
createEntry
protected void createEntry(java.io.File source,
java.lang.String entryPath)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOException
createEntry
protected void createEntry(java.io.InputStream source,
java.lang.String entryPath)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOException
addJarClasses
protected void addJarClasses()
throws ArchiveException
ArchiveException
addDescriptor
protected void addDescriptor(Descriptor desc,
java.lang.String root,
java.io.File[] files)
throws ArchiveException
ArchiveException