public class ConvertJarToBundleTask extends AbstractBundleTask implements BundleConstants
attributes, descriptorBUNDLE_ACTIVATOR, BUNDLE_CATEGORY, BUNDLE_CLASSPATH, BUNDLE_DESCRIPTION, BUNDLE_MANIFEST_VERSION, BUNDLE_NAME, BUNDLE_SYMBOLIC_NAME, BUNDLE_VERSION, EXPORT_PACKAGE, IMPORT_PACKAGE| Constructor and Description |
|---|
ConvertJarToBundleTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredAttribute(org.apache.tools.ant.taskdefs.Manifest.Attribute attribute)
Add an attribute to the manifest.
|
void |
execute() |
void |
setBackupFile(boolean value)
Controls whether a ".bak" file is created if the source and the target JAR are the same,
i.e.
|
void |
setFile(java.io.File f)
Sets the JAR file to convert.
|
void |
setTargetFile(java.io.File f)
Sets the target JAR file representing the generated bundle.
|
addExportUses, logAnalyzerResults, setDescriptorbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void addConfiguredAttribute(org.apache.tools.ant.taskdefs.Manifest.Attribute attribute)
throws org.apache.tools.ant.taskdefs.ManifestException
AbstractBundleTaskaddConfiguredAttribute in class AbstractBundleTaskattribute - the attribute to be added.org.apache.tools.ant.taskdefs.ManifestException - if the attribute is not valid.public void setFile(java.io.File f)
f - the JAR filepublic void setTargetFile(java.io.File f)
f - the target JAR filepublic void setBackupFile(boolean value)
value - true to create a backup of the original JAR, false to overwritepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionCopyright 2009-2010 Jeremias M?rki. All Rights Reserved.