| Ant failed to create task or type "bnd" [message #1005157] |
Thu, 24 January 2013 10:10 |
Ulrich Schmidt Messages: 10 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
|
|
|
Powered by
FUDForum. Page generated in 0.01536 seconds