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 SchmidtFriend
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/"

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

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?

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

Current Time: Tue Apr 24 03:30:13 GMT 2018

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

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