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
-
- All Implemented Interfaces:
aQute.service.reporter.Report
,aQute.service.reporter.Reporter
,java.lang.Cloneable
public class WrapTask extends BaseTask
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
-
-
Constructor Summary
Constructors Constructor Description WrapTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfiguredFileSet(org.apache.tools.ant.types.FileSet list)
void
execute()
void
setBsn(java.lang.String bsn)
void
setClasspath(java.lang.String files)
void
setDefinitions(java.io.File out)
void
setExceptions(boolean exceptions)
void
setFailok(boolean failok)
void
setForce(boolean force)
void
setJars(java.lang.String files)
void
setOutput(java.io.File output)
void
setVersion(java.lang.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
-
-
-
-
Method Detail
-
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
public void setJars(java.lang.String files)
-
setClasspath
public void setClasspath(java.lang.String files)
-
setFailok
public void setFailok(boolean failok)
-
setForce
public void setForce(boolean force)
-
setExceptions
public void setExceptions(boolean exceptions)
- Overrides:
setExceptions
in classBaseTask
-
setOutput
public void setOutput(java.io.File output)
-
setDefinitions
public void setDefinitions(java.io.File out)
-
addConfiguredFileSet
public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet list)
-
setVersion
public void setVersion(java.lang.String version)
-
setBsn
public void setBsn(java.lang.String bsn)
-
-