Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Ant failed to create task or type "bnd"(Setup of BndTools does not work)
Ant failed to create task or type "bnd" [message #1005157] Thu, 24 January 2013 15:10
Ulrich Schmidt is currently offline Ulrich Schmidt
Messages: 11
Registered: January 2013
Junior Member
I'm running Eclipse Juno (BuildId 20120614-1722) with Java 6.0.38 and Ant 1.8.3. I just installed BndTools from the Eclipse marketplace (bndlib 1.51 and some other bndtools-jars). I don't know much about OSGi but need to get familiar to it. So I tried to build a bundle with:

<target name="buildBnd" depends="compile">
<taskdef resource="aQute/bnd/ant/taskdef.properties"
classpath="biz.aQute.bndlib_1.51.0.jar"/>
<bnd
classpath="${build.classes.dir}"
files="${bnd.file}"
eclipse="true"
failok="false"
output="${bnd.jar}"
exceptions="true"
/>
</target>

The run fails with messages:
buildBnd:
[taskdef] Could not load definitions from resource aQute/bnd/ant/taskdef.properties. It could not be found.

BUILD FAILED
D:\Anwendungen\Eclipse\PrivateBase\LNNreader\Bundle.xml:83: Problem: failed to create task or type bnd
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.



As far as I understand now, the classpath in the taskdef-tag describes the location of the bnd-code and the classpath within the bnd-tag describes the path to be bundled. I've copied the "biz.aQute.bndlib_1.51.0.jar" to the $ANT_HOME/lib-path and have added all bndtools.*.jar-files to the runtime-path (Window - Preference - Ant - Runtime - Ant Home Home Entries).

Any suggestion, what can be done here?

Ulrich
Previous Topic:AbstractLaunchConfigurationTab - Messages
Next Topic:Reverting a Component?
Goto Forum:
  


Current Time: Tue Oct 21 16:57:48 GMT 2014

Powered by FUDForum. Page generated in 0.01682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software