Package aQute.bnd.ant
Class WrapTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
aQute.bnd.ant.BaseTask
aQute.bnd.ant.WrapTask
Task to wrap a JAR as an OSGi bundle. You can specify the following
properties:
- bsn and version = Will set the appropriate properties
- a classpath
- an output directory or an output file if only one JAR is specified
- A search directory (definitions) for bnd files named the same as the source which are used for info
-
Nested Class Summary
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) File
(package private) boolean
(package private) boolean
(package private) boolean
List of jars to wrap(package private) File
Output directory or file (directory must be used(package private) Version
Fields inherited from class aQute.bnd.ant.BaseTask
errors, messages, onfail, pedantic, progress, properties, reporter, trace, warnings, workspaceProps
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
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
void
addConfiguredFileSet
(org.apache.tools.ant.types.FileSet list) void
execute()
(package private) boolean
isFailok()
void
void
setClasspath
(String files) void
setDefinitions
(File out) void
setExceptions
(boolean exceptions) void
setFailok
(boolean failok) void
setForce
(boolean force) void
void
void
setVersion
(String version) Methods inherited from class aQute.bnd.ant.BaseTask
addProperty, addWsproperty, error, exception, getErrors, getFile, getLocation, getWarnings, isExceptions, isOk, isPedantic, isTrace, join, progress, report, report, setPedantic, setTrace, split, trace, warning
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
-
Field Details
-
Constructor Details
-
WrapTask
public WrapTask()
-
-
Method Details
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
setJars
-
addAll
-
setClasspath
-
isFailok
boolean isFailok() -
setFailok
public void setFailok(boolean failok) -
setForce
public void setForce(boolean force) -
setExceptions
public void setExceptions(boolean exceptions) - Overrides:
setExceptions
in classBaseTask
-
setOutput
-
setDefinitions
-
addConfiguredFileSet
public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet list) -
setVersion
-
setBsn
-