ch.jm.osgi.util.bundle 1.0.0

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

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
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BundleManifestTask, ConvertJarToBundleTask, LoadBundleDescriptorTask

public abstract class AbstractBundleTask
extends org.apache.tools.ant.Task

Base class for bundle-related Ant tasks.


Field Summary
protected  java.util.Set<org.apache.tools.ant.taskdefs.Manifest.Attribute> attributes
          the manifest attributes
protected  java.io.File descriptor
          the bundle 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
 
Constructor Summary
AbstractBundleTask()
           
 
Method Summary
 void addConfiguredAttribute(org.apache.tools.ant.taskdefs.Manifest.Attribute attribute)
          Add an attribute to the manifest.
protected  void addExportUses(BundleManifestBuilder builder, DependencyAnalyzer analyzer)
          Adds "uses" elements to the export clauses.
protected  void logAnalyzerResults(DependencyAnalyzer analyzer)
          Logs the gathered packages when in verbose mode.
 void setDescriptor(java.io.File f)
          Sets the bundle descriptor (example: "bundle.xml") to work with.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, 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
 

Field Detail

attributes

protected java.util.Set<org.apache.tools.ant.taskdefs.Manifest.Attribute> attributes
the manifest attributes


descriptor

protected java.io.File descriptor
the bundle descriptor

Constructor Detail

AbstractBundleTask

public AbstractBundleTask()
Method Detail

addConfiguredAttribute

public void addConfiguredAttribute(org.apache.tools.ant.taskdefs.Manifest.Attribute attribute)
                            throws org.apache.tools.ant.taskdefs.ManifestException
Add an attribute to the manifest.

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

addExportUses

protected void addExportUses(BundleManifestBuilder builder,
                             DependencyAnalyzer analyzer)
Adds "uses" elements to the export clauses.

Parameters:
builder - the manifest builder
analyzer - the dependency analyzer

setDescriptor

public void setDescriptor(java.io.File f)
Sets the bundle descriptor (example: "bundle.xml") to work with.

Parameters:
f - the bundle descriptor

logAnalyzerResults

protected void logAnalyzerResults(DependencyAnalyzer analyzer)
Logs the gathered packages when in verbose mode.

Parameters:
analyzer - the dependency analyzer

ch.jm.osgi.util.bundle 1.0.0

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