BundleTaskConvention for Gradle.
Adds properties to bundle builder tasks.
Properties:
| Constructor and description |
|---|
BundleTaskConvention
(org.gradle.api.tasks.bundling.Jar task)Create a BundleTaskConvention for the specified Jar task. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
bnd(java.lang.CharSequence... lines)Add instuctions to the bnd property from a list of multi-line strings. |
|
void |
bnd(java.util.Map<java.lang.String, ?> map)Add instuctions to the bnd property from a map. |
|
void |
buildBundle() |
|
org.gradle.api.file.ConfigurableFileCollection |
classpath(java.lang.Object... paths)Add files to the classpath. |
|
java.lang.String |
getBnd()Get the bnd property. |
|
java.io.File |
getBndfile()Get the bndfile property. |
|
org.gradle.api.file.ConfigurableFileCollection |
getClasspath()Get the classpath property. |
|
org.gradle.api.tasks.SourceSet |
getSourceSet()Get the sourceSet property. |
|
void |
setBnd(java.lang.CharSequence line)Set the bnd property from a multi-line string. |
|
void |
setBnd(java.util.Map<java.lang.String, ?> map)Set the bnd property from a map. |
|
void |
setBndfile(java.lang.Object file)Set the bndfile property. |
|
void |
setClasspath(java.lang.Object path)Set the classpath property. |
|
void |
setSourceSet(org.gradle.api.tasks.SourceSet sourceSet)Set the sourceSet property. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a BundleTaskConvention for the specified Jar task.
This also sets the default values for the added properties and adds the bnd file to the task inputs.
Add instuctions to the bnd property from a list of multi-line strings.
Add instuctions to the bnd property from a map.
Add files to the classpath.
The arguments will be handled using Project.files().
Get the bnd property.
If the bndfile property points an existing file, this property is ignored. Otherwise, the bnd instructions in this property will be used.
Get the bndfile property.
File path to a bnd file containing bnd instructions for this project.
Get the classpath property.
Get the sourceSet property.
Set the bnd property from a multi-line string.
Set the bnd property from a map.
Set the bndfile property.
The argument will be handled using Project.file().
Set the classpath property.
Set the sourceSet property.
Groovy Documentation