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 voidaddConfiguredFileSet(org.apache.tools.ant.types.FileSet list)voidexecute()voidsetBsn(java.lang.String bsn)voidsetClasspath(java.lang.String files)voidsetDefinitions(java.io.File out)voidsetExceptions(boolean exceptions)voidsetFailok(boolean failok)voidsetForce(boolean force)voidsetJars(java.lang.String files)voidsetOutput(java.io.File output)voidsetVersion(java.lang.String version)-
Methods inherited from class aQute.bnd.ant.BaseTask
addProperty, addWsproperty, error, exception, getBndProject, 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:
executein 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:
setExceptionsin 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)
-
-