Hi, It seems that Eclipse has not already compiled the component classes when the bundle is built. You can try to close and re-open the project.
You can also try to import the following project inside your Eclipse: http://people.apache.org/~clement/ipojo/MyiPOJOBundle-1.4.0.zip It is a pre-configured project for Eclipse (ipojo 1.4.0), with the ant builder set and the configuration for Equinox. It is the evolution of http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html. (it's not yet in download from the web page because we're a validating all tutorials and archive, it should be on the web site soon). Regards, Clement 2009/8/7 levko <[email protected]> > > I run iPOJO ant task in Eclipse to manipulate Manifest file and annotated > classes of my iPOJO powered bundle project. Everything works fine if I use > bnd to create a bundle.jar from all the classes and the Manifest, then run > the ant task to manipulate the bundle.jar, then unjar this bundle.jar back > to the bin directory and copy Manifest to its natural location. > > However, http://felix.apache.org/site/ipojo-ant-task.html describes more > attractive procedure for directory manipulation that does not require > creating a bundle.jar, etc. I tried this method in my ant file, using the > bin directory (where the classes are) as the 'dir' parameter value and > specifying Manifest and metadata files: > <project name="My iPOJO Bundle" default="manipulate" basedir="."> > <property name="src.dir" value="src"/> > <property name="lib.dir" value="../Apache-iPOJO-Platform/lib"/> > <property name="build.dir" value="bin"/> > > <taskdef name="ipojo" > classpath="${lib.dir}/org.apache.felix.ipojo.ant-1.4.0.jar" > classname="org.apache.felix.ipojo.task.IPojoTask"/> > > <target name="manipulate"> > <ipojo > dir="${build.dir}" > metadata="metadata.xml" > manifest="META-INF/MANIFEST.MF" > /> > </target> > </project> > > The ant task failed with a message like this: > [ipojo] The component ....class is declared but not in the bundle > > Is something wrong with the ant file? > > Thanks, > -- Lev > -- > View this message in context: > http://www.nabble.com/Running-iPOJO-ant-task-in-Eclipse-tp24855448p24855448.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

