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,Cloneable
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
aQute.service.reporter.Report.LocationNested classes/interfaces inherited from interface aQute.service.reporter.Reporter
aQute.service.reporter.Reporter.SetLocation -
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredFileSet(org.apache.tools.ant.types.FileSet list) voidexecute()voidvoidsetClasspath(String files) voidsetDefinitions(File out) voidsetExceptions(boolean exceptions) voidsetFailok(boolean failok) voidsetForce(boolean force) voidvoidvoidsetVersion(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, warningMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
WrapTask
public WrapTask()
-
-
Method Details
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
setJars
-
setClasspath
-
setFailok
public void setFailok(boolean failok) -
setForce
public void setForce(boolean force) -
setExceptions
public void setExceptions(boolean exceptions) - Overrides:
setExceptionsin classBaseTask
-
setOutput
-
setDefinitions
-
addConfiguredFileSet
public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet list) -
setVersion
-
setBsn
-