public abstract class BundleFileProcessor
extends java.lang.Object
BundleFileProcessor
can transform a bundle Manifest
by creating a modified copy of the bundle file.Constructor and Description |
---|
BundleFileProcessor(java.io.File input,
java.io.File outputFolder) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getTargetFilename(java.util.jar.Manifest inputJarManifest)
Return the filename to use for the newly created bundle file
|
java.io.File |
process()
Creates a new OSGi Bundle from a given bundle, processing its manifest
using the processManifest method.
|
protected abstract java.util.jar.Manifest |
processManifest(java.util.jar.Manifest originalManifest)
Process the bundle Manifest.
|
public BundleFileProcessor(java.io.File input, java.io.File outputFolder)
protected abstract java.util.jar.Manifest processManifest(java.util.jar.Manifest originalManifest)
originalManifest
- The manifest to processprotected abstract java.lang.String getTargetFilename(java.util.jar.Manifest inputJarManifest)
inputJarManifest
- The manifestpublic java.io.File process() throws java.io.IOException
java.io.IOException
- If something goes wrong reading or writing.Copyright © 2022 The Apache Software Foundation. All rights reserved.