Knopflerfish OSGi 5.2.0

org.knopflerfish.ant.taskdefs.bundle
Class BundleMvnAntTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.knopflerfish.ant.taskdefs.bundle.BundleMvnAntTask
All Implemented Interfaces:
java.lang.Cloneable

public class BundleMvnAntTask
extends org.apache.tools.ant.Task

Task that analyzes a set of bundle jar files and builds an ant build file that can deploy those jar files to a Maven 2 repository.

Parameters

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.

Parameters specified as nested elements

fileset

(required)

All jar files selected by the fileset will be included.

Examples

 <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>
 


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
BundleMvnAntTask()
           
 
Method Summary
 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 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)
           
 
Methods 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, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleMvnAntTask

public BundleMvnAntTask()
Method Detail

setGroupId

public void setGroupId(java.lang.String s)

setTemplateAntFile

public void setTemplateAntFile(java.io.File f)

setOutDir

public void setOutDir(java.io.File f)

setBuildFile

public void setBuildFile(java.lang.String f)

setDependencyManagementFile

public void setDependencyManagementFile(java.lang.String f)

setVersion

public void setVersion(java.lang.String s)

setProduct

public void setProduct(java.lang.String s)

setRepoDir

public void setRepoDir(java.io.File f)

setSettingsFile

public void setSettingsFile(java.io.File f)

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fs)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

Knopflerfish OSGi 5.2.0