ch.jm.osgi.util.bundle 1.0.0

ch.jm.osgi.util.bundle.ant
Class BundleManifestTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by ch.jm.osgi.util.bundle.ant.AbstractBundleTask
              extended by ch.jm.osgi.util.bundle.ant.BundleManifestTask
All Implemented Interfaces:
BundleConstants, java.lang.Cloneable

public class BundleManifestTask
extends AbstractBundleTask
implements BundleConstants

Ant task that can generate a bundle manifest file.


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
BundleManifestTask()
           
 
Method Summary
 void addConfiguredAttribute(org.apache.tools.ant.taskdefs.Manifest.Attribute attribute)
          Add an attribute to the manifest.
 org.apache.tools.ant.types.Path createPath()
          Create a nested PATH element.
 void execute()
           
 void setClasses(java.io.File dir)
          Sets the directory for compiled classes.
 void setFile(java.io.File f)
          The name of the manifest file to create.
 
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

BundleManifestTask

public BundleManifestTask()
Method Detail

addConfiguredAttribute

public void addConfiguredAttribute(org.apache.tools.ant.taskdefs.Manifest.Attribute attribute)
                            throws org.apache.tools.ant.taskdefs.ManifestException
Description copied from class: AbstractBundleTask
Add an attribute to the manifest.

Overrides:
addConfiguredAttribute in class AbstractBundleTask
Parameters:
attribute - the attribute to be added.
Throws:
org.apache.tools.ant.taskdefs.ManifestException - if the attribute is not valid.

setFile

public void setFile(java.io.File f)
The name of the manifest file to create.

Parameters:
f - the Manifest file to be written

createPath

public org.apache.tools.ant.types.Path createPath()
Create a nested PATH element.

Returns:
a Path to be used by Ant reflection.

setClasses

public void setClasses(java.io.File dir)
Sets the directory for compiled classes.

Parameters:
dir - the directory

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

ch.jm.osgi.util.bundle 1.0.0

Copyright 2009-2010 Jeremias M?rki. All Rights Reserved.