org.jboss.ejb3.installer.manifest
Class ManifestEditor

java.lang.Object
  extended by org.jboss.ejb3.installer.manifest.ManifestEditor

public class ManifestEditor
extends java.lang.Object

ManifestEditor Configurable utility to alter the manifest of a given JAR


Constructor Summary
ManifestEditor(java.util.jar.JarFile jar)
           
 
Method Summary
 void addEntriesToClassPath(java.util.Set<java.lang.String> entriesToAdd)
          Adds the specified entries to the Class-Path of the manifest, additionally creating "Class-Path" if it does not exist
 java.util.jar.Manifest getManifest()
           
 void removeEntriesFromClassPath(java.util.Set<java.lang.String> entriesToRemove)
          Removes, if they exist, attributes from a Class-Path entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestEditor

public ManifestEditor(java.util.jar.JarFile jar)
Method Detail

addEntriesToClassPath

public void addEntriesToClassPath(java.util.Set<java.lang.String> entriesToAdd)
Adds the specified entries to the Class-Path of the manifest, additionally creating "Class-Path" if it does not exist


removeEntriesFromClassPath

public void removeEntriesFromClassPath(java.util.Set<java.lang.String> entriesToRemove)
Removes, if they exist, attributes from a Class-Path entry


getManifest

public java.util.jar.Manifest getManifest()