Package org.eclipse.xtext.util
Class MergeableManifest
- java.lang.Object
-
- java.util.jar.Manifest
-
- org.eclipse.xtext.util.MergeableManifest
-
- All Implemented Interfaces:
java.lang.Cloneable
@Deprecated(forRemoval=true) public class MergeableManifest extends java.util.jar.ManifestDeprecated, for removal: This API element is subject to removal in a future version.Uses reflection which will not work well with future java versions. UseMergeableManifest2instead.- Since:
- 2.2 moved to org.eclipse.xtext.util
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMergeableManifest.OrderAwareAttributesDeprecated, 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.NameBUNDLE_ACTIVATION_POLICYDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_ACTIVATORDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_CLASSPATHDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_LOCALIZATIONDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_NAMEDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_REQUIRED_EXECUTION_ENVDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_SYMBOLIC_NAMEDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_VENDORDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameBUNDLE_VERSIONDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameEXPORT_PACKAGEDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameIMPORT_PACKAGEDeprecated, for removal: This API element is subject to removal in a future version.static java.util.jar.Attributes.NameREQUIRE_BUNDLEDeprecated, 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 voidaddExportedPackages(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.voidaddExportedPackages(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.voidaddImportedPackages(java.lang.String... packages)Deprecated, for removal: This API element is subject to removal in a future version.voidaddImportedPackages(java.util.Set<java.lang.String> packages)Deprecated, for removal: This API element is subject to removal in a future version.voidaddRequiredBundles(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.StringgetBREE()Deprecated, for removal: This API element is subject to removal in a future version.java.lang.StringgetBundleActivator()Deprecated, for removal: This API element is subject to removal in a future version.MergeableManifest.OrderAwareAttributesgetMainAttributes()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.booleanisModified()Deprecated, for removal: This API element is subject to removal in a future version.static java.lang.Stringmake512Safe(java.lang.StringBuffer lines)Deprecated.Usemake512Safe(StringBuffer, String)insteadstatic java.lang.Stringmake512Safe(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.StringmergeIntoCommaSeparatedList(java.lang.String currentString, java.util.Set<java.lang.String> toMergeIn, Wrapper<java.lang.Boolean> modified)Deprecated.static java.lang.StringmergeIntoCommaSeparatedList(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.voidsetBREE(java.lang.String bree)Deprecated, for removal: This API element is subject to removal in a future version.voidsetBundleActivator(java.lang.String activator)Deprecated, for removal: This API element is subject to removal in a future version.voidsetLineDelimiter(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.voidwrite(java.io.OutputStream out)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
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.IOExceptionDeprecated, 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.IOExceptionDeprecated, 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.Usemake512Safe(StringBuffer, String)instead- 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.IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
writein classjava.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
@Deprecated public static java.lang.String mergeIntoCommaSeparatedList(java.lang.String currentString, java.util.Set<java.lang.String> toMergeIn, Wrapper<java.lang.Boolean> modified)Deprecated.
-
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:
getMainAttributesin classjava.util.jar.Manifest
-
-