org.knopflerfish.ant.taskdefs.bundle
public class BundleClasspathTask extends org.apache.tools.ant.Task
This task may also be used as a nested element in the bundle info task. In that case it will be used to generate a list of file sets, one for each entry in the given bundle classpath. If the excludes attribute is given the file sets will use that as exclude pattern otherwise the includes attribute is used as includes pattern. If the bundle classpath entry is a jar-file then a ZipFileSet will be created for it with the jar-file as source and the excludes (or includes) attribute as excludes (includes) pattern.
| 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 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. |
| includes | Includes pattern to apply to each file set created from the entries in the bundle classpath when building a list of file sets. | At least one of includes and excludes must be
given when building a list of file sets from the bundle
classpath. No default value. |
| excludes | Excludes pattern to apply to each file set created from the entires in the bundle classpath when building a list of file sets. Note: This attribute is only used when the <bundleclasspath> is used as a nested element inside a <bundleinfo> element. | At least one of includes and excludes must be
given when building a list of file sets from the bundle
classpath. No default value. |
| Entry | Pattern |
|---|---|
| . | **/*.class |
| rxtx | rxtx/**/*.class |
| /rxtx | rxtx/**/*.class |
| required.jar | required.jar |
| xx/required.jar | xx/required.jar |
| /xx/required.jar | xx/required.jar |
| Constructor and Description |
|---|
BundleClasspathTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
java.util.List<org.apache.tools.ant.types.FileSet> |
getFileSets(boolean failOnClassPath)
Get a collection of file sets selecting all classes in the bundle
class path that matches the given pattern.
|
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 |
setExcludes(java.lang.String s)
Set the excludes pattern to use in the collection of file sets
returned by
getFileSets(boolean). |
void |
setFilesetId(java.lang.String s)
Set property receiving the file set id.
|
void |
setIncludes(java.lang.String s)
Set the includes pattern to use in the collection of file sets
returned by
getFileSets(boolean). |
void |
setPropertyName(java.lang.String s)
Set property receiving the bundle class path pattern.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setBundleClasspath(java.lang.String s)
public void setPropertyName(java.lang.String s)
public void setDir(java.io.File f)
public void setFilesetId(java.lang.String s)
public void setIncludes(java.lang.String s)
getFileSets(boolean).public void setExcludes(java.lang.String s)
getFileSets(boolean).public java.util.List<org.apache.tools.ant.types.FileSet> getFileSets(boolean failOnClassPath)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException