Bnd / Ant aQute - Software Consultancy
Search
*

31 Ant Task

The bnd.jar file can also be used as an ANT task. The following example shows how you can use it from an ANT file.

 <target name="build"> 
   <taskdef resource="aQute/bnd/ant/taskdef.properties"
      classpath="bnd.jar"/> 
   <bnd 
      classpath="src" 
      eclipse="true" 
      failok="false" 
      exceptions="true" 
      files="test.bnd"/> 
 </target>

You can set the following attributes:

AttributeDescription
classpathComma separated list of file names. File paths are relative from the ant project file.
eclipseTrue or false. True if the eclipse .classpath file should be read (default).
failokSucceed even if there are errors.
exceptionsIf errors occur, show the exception stack trace.
filesA comma separated list of bnd files
sourcepathA source path
outputWhere the output should go

The following tasks have also been added:

task nameClassattributes
bndeclipseEclipseTaskprefix='project.'
bndexpandExpandPropertiesTaskpropertyFile='<file>'
bndwrapWrapTaskjars='<list>', output='<dir>', definitions='<dir>', classpath='<file-list>'
Copyright 2006 aQute SARL, All Rights Reserved