org.knopflerfish.ant.taskdefs.bundle
public class BundleMvnAntTask extends org.apache.tools.ant.Task
| Attribute | Description | Required |
|---|---|---|
| templateAntFile | Path to a template ant file for creating Maven 2 repositories. | Yes. No default value. |
| outDir | Directory to write generated files to. I.e., the intermediate build file and the dependency management file. | Yes. No default value. |
| buildFile | Name of the intermediate ant build file that this task creates. | Yes. No default value. |
| dependencyManagementFile |
Name of the XML file with a
<dependencyManagement>-element describing all the
artifacts that will be created by the generated build file. The
file is written to the outDir by this task, then
copied to the directory for the default group id by the
generated intermediate build file.
|
No. No default value. |
| version | Value of the version attribute on the root element of the dependency management file. | No. No default value. |
| product | Value to put into the product attribute on the root element of the dependency management file. | No. Knopflerfish |
| repoDir | The path to the root of the maven 2 repository to update with the artefacts identified by this task. | Yes. No default value. |
| groupId | Maven group id to use for bundles, for which a group id can not be derived from the bundles symbolic name. | No. Default 'org.knopflerfish'. |
| settingsFile | The maven settings.xml file to use when loading pom-files. | No. No default value. |
All jar files selected by the fileset will be included.
<bundlemvnant templateAntFile = "${ant.dir}/ant_templates/toMvn.xml"
repoDir = "${distrib.mvn.repo.dir}"
outDir = "${root.out.dir}"
buildFile = "toMvn.xml"
>
<fileset dir="${release.dir}/osgi/jars">
<include name = "**/*.jar"/>
</fileset>
| Constructor and Description |
|---|
BundleMvnAntTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileSet(org.apache.tools.ant.types.FileSet fs) |
void |
execute() |
void |
setBuildFile(java.lang.String f) |
void |
setDependencyManagementFile(java.lang.String f) |
void |
setGroupId(java.lang.String s) |
void |
setGroupVersion(java.lang.String s) |
void |
setMergeRepoDir(java.io.File f) |
void |
setOutDir(java.io.File f) |
void |
setProduct(java.lang.String s) |
void |
setRepoDir(java.io.File f) |
void |
setSettingsFile(java.io.File f) |
void |
setTemplateAntFile(java.io.File f) |
void |
setVersion(java.lang.String s) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setGroupVersion(java.lang.String s)
public void setGroupId(java.lang.String s)
public void setTemplateAntFile(java.io.File f)
public void setOutDir(java.io.File f)
public void setBuildFile(java.lang.String f)
public void setDependencyManagementFile(java.lang.String f)
public void setVersion(java.lang.String s)
public void setProduct(java.lang.String s)
public void setRepoDir(java.io.File f)
public void setMergeRepoDir(java.io.File f)
public void setSettingsFile(java.io.File f)
public void addFileSet(org.apache.tools.ant.types.FileSet fs)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException