|
ch.jm.osgi.util.bundle 1.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
ch.jm.osgi.util.bundle.ant.AbstractBundleTask
ch.jm.osgi.util.bundle.ant.ConvertJarToBundleTask
public class ConvertJarToBundleTask
Ant task to convert JAR files to OSGi bundles. It can also convert WAR files which take some special processing (embedded JAR files and classes).
Field Summary |
---|
Fields inherited from class ch.jm.osgi.util.bundle.ant.AbstractBundleTask |
---|
attributes, descriptor |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Fields inherited from interface ch.jm.osgi.util.bundle.BundleConstants |
---|
BUNDLE_ACTIVATOR, BUNDLE_CATEGORY, BUNDLE_CLASSPATH, BUNDLE_DESCRIPTION, BUNDLE_MANIFEST_VERSION, BUNDLE_NAME, BUNDLE_SYMBOLIC_NAME, BUNDLE_VERSION, EXPORT_PACKAGE, IMPORT_PACKAGE |
Constructor Summary | |
---|---|
ConvertJarToBundleTask()
|
Method Summary | |
---|---|
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. |
Methods inherited from class ch.jm.osgi.util.bundle.ant.AbstractBundleTask |
---|
addExportUses, logAnalyzerResults, setDescriptor |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvertJarToBundleTask()
Method Detail |
---|
public void addConfiguredAttribute(org.apache.tools.ant.taskdefs.Manifest.Attribute attribute) throws org.apache.tools.ant.taskdefs.ManifestException
AbstractBundleTask
addConfiguredAttribute
in class AbstractBundleTask
attribute
- 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.Task
org.apache.tools.ant.BuildException
|
ch.jm.osgi.util.bundle 1.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |