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.LocationNested 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) booleanList of jars to wrap(package private) FileOutput directory or file (directory must be used(package private) VersionFields inherited from class aQute.bnd.ant.BaseTask
errors, messages, onfail, pedantic, progress, properties, reporter, trace, warnings, workspacePropsFields 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 TypeMethodDescription(package private) voidvoidaddConfiguredFileSet(org.apache.tools.ant.types.FileSet list) voidexecute()(package private) booleanisFailok()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
-
Field Details
-
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
-
addAll
-
setClasspath
-
isFailok
boolean isFailok() -
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
-