Class MergeableManifest

  • All Implemented Interfaces:
    java.lang.Cloneable

    @Deprecated(forRemoval=true)
    public class MergeableManifest
    extends java.util.jar.Manifest
    Deprecated, for removal: This API element is subject to removal in a future version.
    Uses reflection which will not work well with future java versions. Use MergeableManifest2 instead.
    Since:
    2.2 moved to org.eclipse.xtext.util
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  MergeableManifest.OrderAwareAttributes
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.jar.Attributes.Name BUNDLE_ACTIVATION_POLICY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_ACTIVATOR
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_CLASSPATH
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_LOCALIZATION
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_REQUIRED_EXECUTION_ENV
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_SYMBOLIC_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_VENDOR
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name BUNDLE_VERSION
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name EXPORT_PACKAGE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name IMPORT_PACKAGE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.util.jar.Attributes.Name REQUIRE_BUNDLE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      MergeableManifest​(java.io.InputStream in)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      MergeableManifest​(java.io.InputStream in, java.lang.String projectName)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addExportedPackages​(java.lang.String... packages)
      Deprecated, for removal: This API element is subject to removal in a future version.
      adds the qualified names to the export-package attribute, if not already present.
      void addExportedPackages​(java.util.Set<java.lang.String> packages)
      Deprecated, for removal: This API element is subject to removal in a future version.
      adds the qualified names to the export-package attribute, if not already present.
      void addImportedPackages​(java.lang.String... packages)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void addImportedPackages​(java.util.Set<java.lang.String> packages)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void addRequiredBundles​(java.util.Set<java.lang.String> bundles)
      Deprecated, for removal: This API element is subject to removal in a future version.
      adds the qualified names to the require-bundle attribute, if not already present.
      java.lang.String getBREE()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.lang.String getBundleActivator()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      MergeableManifest.OrderAwareAttributes getMainAttributes()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static Pair<java.lang.String,​java.lang.String> getSplitEntry​(java.lang.String entry)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      boolean isModified()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String make512Safe​(java.lang.StringBuffer lines)
      Deprecated.
      static java.lang.String make512Safe​(java.lang.StringBuffer lines, java.lang.String lineDelimiter)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String mergeIntoCommaSeparatedList​(java.lang.String currentString, java.util.Set<java.lang.String> toMergeIn, Wrapper<java.lang.Boolean> modified)
      static java.lang.String mergeIntoCommaSeparatedList​(java.lang.String currentString, java.util.Set<java.lang.String> toMergeIn, Wrapper<java.lang.Boolean> modified, java.lang.String lineDelimiter)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setBREE​(java.lang.String bree)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setBundleActivator​(java.lang.String activator)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setLineDelimiter​(java.lang.String delimiter)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String[] splitQuoteAware​(java.lang.String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void write​(java.io.OutputStream out)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class java.util.jar.Manifest

        clear, clone, equals, getAttributes, getEntries, hashCode, read
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BUNDLE_NAME

        public static final java.util.jar.Attributes.Name BUNDLE_NAME
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_SYMBOLIC_NAME

        public static final java.util.jar.Attributes.Name BUNDLE_SYMBOLIC_NAME
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_VERSION

        public static final java.util.jar.Attributes.Name BUNDLE_VERSION
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_CLASSPATH

        public static final java.util.jar.Attributes.Name BUNDLE_CLASSPATH
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_VENDOR

        public static final java.util.jar.Attributes.Name BUNDLE_VENDOR
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_REQUIRED_EXECUTION_ENV

        public static final java.util.jar.Attributes.Name BUNDLE_REQUIRED_EXECUTION_ENV
        Deprecated, for removal: This API element is subject to removal in a future version.
      • EXPORT_PACKAGE

        public static final java.util.jar.Attributes.Name EXPORT_PACKAGE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • IMPORT_PACKAGE

        public static final java.util.jar.Attributes.Name IMPORT_PACKAGE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • REQUIRE_BUNDLE

        public static final java.util.jar.Attributes.Name REQUIRE_BUNDLE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_ACTIVATION_POLICY

        public static final java.util.jar.Attributes.Name BUNDLE_ACTIVATION_POLICY
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_LOCALIZATION

        public static final java.util.jar.Attributes.Name BUNDLE_LOCALIZATION
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BUNDLE_ACTIVATOR

        public static final java.util.jar.Attributes.Name BUNDLE_ACTIVATOR
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Constructor Detail

      • MergeableManifest

        public MergeableManifest​(java.io.InputStream in)
                          throws java.io.IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        java.io.IOException
      • MergeableManifest

        public MergeableManifest​(java.io.InputStream in,
                                 java.lang.String projectName)
                          throws java.io.IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        java.io.IOException
    • Method Detail

      • make512Safe

        @Deprecated
        public static java.lang.String make512Safe​(java.lang.StringBuffer lines)
        Deprecated.
        Since:
        2.9
      • make512Safe

        public static java.lang.String make512Safe​(java.lang.StringBuffer lines,
                                                   java.lang.String lineDelimiter)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.11
      • addRequiredBundles

        public void addRequiredBundles​(java.util.Set<java.lang.String> bundles)
        Deprecated, for removal: This API element is subject to removal in a future version.
        adds the qualified names to the require-bundle attribute, if not already present.
        Parameters:
        bundles - - passing parameterized bundled (e.g. versions, etc.) is not supported
      • getBREE

        public java.lang.String getBREE()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.9
      • setBREE

        public void setBREE​(java.lang.String bree)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.9
      • getBundleActivator

        public java.lang.String getBundleActivator()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.9
      • setBundleActivator

        public void setBundleActivator​(java.lang.String activator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.9
      • setLineDelimiter

        public void setLineDelimiter​(java.lang.String delimiter)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.11
      • isModified

        public boolean isModified()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • write

        public void write​(java.io.OutputStream out)
                   throws java.io.IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        write in class java.util.jar.Manifest
        Throws:
        java.io.IOException
      • addExportedPackages

        public void addExportedPackages​(java.util.Set<java.lang.String> packages)
        Deprecated, for removal: This API element is subject to removal in a future version.
        adds the qualified names to the export-package attribute, if not already present.
        Parameters:
        packages - - passing parameterized packages is not supported
      • addExportedPackages

        public void addExportedPackages​(java.lang.String... packages)
        Deprecated, for removal: This API element is subject to removal in a future version.
        adds the qualified names to the export-package attribute, if not already present.
        Parameters:
        packages - - packages to add
        Since:
        2.9
      • addImportedPackages

        public void addImportedPackages​(java.util.Set<java.lang.String> packages)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • splitQuoteAware

        protected static java.lang.String[] splitQuoteAware​(java.lang.String string)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.0
      • mergeIntoCommaSeparatedList

        public static java.lang.String mergeIntoCommaSeparatedList​(java.lang.String currentString,
                                                                   java.util.Set<java.lang.String> toMergeIn,
                                                                   Wrapper<java.lang.Boolean> modified,
                                                                   java.lang.String lineDelimiter)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.11
      • getSplitEntry

        protected static Pair<java.lang.String,​java.lang.String> getSplitEntry​(java.lang.String entry)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        2.3
      • addImportedPackages

        public void addImportedPackages​(java.lang.String... packages)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getMainAttributes

        public MergeableManifest.OrderAwareAttributes getMainAttributes()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        getMainAttributes in class java.util.jar.Manifest