Enhydra 5.1 API

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


Field Summary
 
Fields inherited from interface org.enhydra.tool.archive.Constants
JAVA_VENDOR, JAVA_VERSION
 
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
 
Constructor Summary
JarBuilder()
           
 
Method Summary
protected  void addDescriptor(Descriptor desc, java.lang.String root, java.io.File[] files)
           
protected  void addJarClasses()
           
 java.io.File buildArchive()
           
protected  java.util.jar.Manifest buildManifest(java.util.jar.Manifest m)
           
protected  void closeJarStream()
           
protected  void createEntry(java.io.File source, java.lang.String entryPath)
           
protected  void createEntry(java.io.InputStream source, java.lang.String entryPath)
           
 JarPlan getPlan()
           
static void main(java.lang.String[] args)
           
protected  java.io.File openJarStream(java.lang.String p)
           
 void setPlan(JarPlan p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarBuilder

public JarBuilder()
Method Detail

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

Enhydra 5.1 API