Knopflerfish OSGi 2.4.0

org.knopflerfish.ant.taskdefs.bundle
Class BundleClasspathTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.knopflerfish.ant.taskdefs.bundle.BundleClasspathTask
All Implemented Interfaces:
java.lang.Cloneable

public class BundleClasspathTask
extends org.apache.tools.ant.Task

Task that translates the value of the OSGi specified manifest header Bundle-Classpath into either a file set or pattern suitable for use as the includes attribute in a file set that will find all classes and jars that the framework may use given the specified Bundle-Classpath manifest attribute.

Parameters

Attribute Description Required
BundleClasspath The bundle class path to convert into an includes pattern.

If unset, set to empty string, or set to the special empty value [bundle.emptystring] the default bundle classpath, "." will be used.

Note: The current value of this property will be overwritten by the derived pattern.

No.
Default value is "."
propertyName Name of property that will receive the resulting pattern. Yes.
No default value.
dir The directory to use as root directory in the created fileset. Yes.
No default value.
filesetId Id of a file set with include patterns based on the given BundleClasspath and base directory given by dir. If dir is not given or non-existing then an empty file set is created. No.
No default value.

Examples

The table below shows how different bundle class path entries are translated int patterns.
EntryPattern
.**/*.class
rxtxrxtx/**/*.class
/rxtxrxtx/**/*.class
required.jarrequired.jar
xx/required.jarxx/required.jar
/xx/required.jarxx/required.jar


Field Summary
 
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
BundleClasspathTask()
           
 
Method Summary
 void execute()
           
 void setBundleClasspath(java.lang.String s)
          Set bundle class path to create a pattern for.
 void setDir(java.io.File f)
          Set property receiving the file set root directory.
 void setFilesetId(java.lang.String s)
          Set property receiving the file set id.
 void setPropertyName(java.lang.String s)
          Set property receiving the bundle class path pattern.
 
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

BundleClasspathTask

public BundleClasspathTask()
Method Detail

setBundleClasspath

public void setBundleClasspath(java.lang.String s)
Set bundle class path to create a pattern for.


setPropertyName

public void setPropertyName(java.lang.String s)
Set property receiving the bundle class path pattern.


setDir

public void setDir(java.io.File f)
Set property receiving the file set root directory.


setFilesetId

public void setFilesetId(java.lang.String s)
Set property receiving the file set id.


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

Knopflerfish OSGi 2.4.0