Package aQute.bnd.gradle
Class BundleTaskConvention
java.lang.Object
aQute.bnd.gradle.BundleTaskConvention
Deprecated.
Replaced by BundleTaskExtension.
BundleTaskConvention for Gradle.
-
Constructor Summary
ConstructorsConstructorDescriptionBundleTaskConvention(BundleTaskExtension extension) Deprecated.Create a BundleTaskConvention for the specified BundleTaskExtension.BundleTaskConvention(org.gradle.api.tasks.bundling.Jar task) Deprecated.Create a BundleTaskConvention for the specified Jar task. -
Method Summary
Modifier and TypeMethodDescriptionvoidbnd(CharSequence... lines) Deprecated.Add instructions to the bnd property from a list of multi-line strings.voidDeprecated.Add instructions to the bnd property from a map.voidbnd(org.gradle.api.provider.Provider<? extends CharSequence> lines) Deprecated.Add a multi-line string of instructions to the bnd property using aProvider.voidDeprecated.Execute the Action to build the bundle for the task.org.gradle.api.file.ConfigurableFileCollectionDeprecated.Add files to the classpath.org.gradle.api.provider.Provider<String>getBnd()Deprecated.The bnd property.org.gradle.api.file.RegularFilePropertyDeprecated.The bndfile property.org.gradle.api.file.ConfigurableFileCollectionDeprecated.The classpath property.voidsetBnd(CharSequence line) Deprecated.Set the bnd property from a multi-line string.voidDeprecated.Set the bnd property from a map.voidsetBnd(org.gradle.api.provider.Provider<? extends CharSequence> lines) Deprecated.Set the bnd property from a multi-line string using aProvider.voidsetBndfile(Object file) Deprecated.Set the bndfile property value.voidsetBndfile(String file) Deprecated.Set the bndfile property value.voidsetClasspath(Object path) Deprecated.Set the classpath property.voidsetSourceSet(org.gradle.api.tasks.SourceSet sourceSet) Deprecated.Set the sourceSet.
-
Constructor Details
-
BundleTaskConvention
Deprecated.Create a BundleTaskConvention for the specified BundleTaskExtension.- Parameters:
extension- The BundleTaskExtension for this convention.
-
BundleTaskConvention
public BundleTaskConvention(org.gradle.api.tasks.bundling.Jar task) Deprecated.Create a BundleTaskConvention for the specified Jar task.- Parameters:
task- The Jar task for this convention.
-
-
Method Details
-
getBndfile
public org.gradle.api.file.RegularFileProperty getBndfile()Deprecated.The bndfile property.A bnd file containing bnd instructions for this project.
- Returns:
- The property for the bndfile.
-
setBndfile
Deprecated.Set the bndfile property value.- Parameters:
file- The bndfile name.
-
setBndfile
Deprecated.Set the bndfile property value.- Parameters:
file- The bndfile object.
-
getBnd
Deprecated.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.
- Returns:
- The property for the bnd instructions.
-
setBnd
Deprecated.Set the bnd property from a multi-line string.- Parameters:
line- bnd instructions.
-
setBnd
Deprecated.Set the bnd property from a multi-line string using aProvider.- Parameters:
lines- A provider of bnd instructions.
-
bnd
Deprecated.Add instructions to the bnd property from a list of multi-line strings.- Parameters:
lines- bnd instructions.
-
bnd
Deprecated.Add a multi-line string of instructions to the bnd property using aProvider.- Parameters:
lines- A provider bnd instructions.
-
setBnd
Deprecated.Set the bnd property from a map.- Parameters:
map- A map of bnd instructions.
-
bnd
Deprecated.Add instructions to the bnd property from a map.- Parameters:
map- A map of bnd instructions.
-
getClasspath
public org.gradle.api.file.ConfigurableFileCollection getClasspath()Deprecated.The classpath property.The default value is sourceSets.main.compileClasspath.
- Returns:
- The property for the classpath.
-
classpath
Deprecated.Add files to the classpath.- Parameters:
paths- The arguments will be handled using ConfigurableFileCollection.from().- Returns:
- The property for the classpath.
-
setClasspath
Deprecated.Set the classpath property.- Parameters:
path- The argument will be handled using ConfigurableFileCollection.from().
-
setSourceSet
public void setSourceSet(org.gradle.api.tasks.SourceSet sourceSet) Deprecated.Set the sourceSet.- Parameters:
sourceSet- A sourceSet to use to find source code.
-
buildBundle
Deprecated.Execute the Action to build the bundle for the task.- Throws:
Exception- An exception that occurred during the bundle build.
-