You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by ja...@cox.net on 2009/02/20 01:52:35 UTC
iPOJO ant tasks
Hi,
I am using Ant to create bundles and annotated iPOJO. I noticed there is an iPOJO ant task. Is this called along with the bnd task? Alot of the examples use Maven which won't work for the application I am creating. It would be really cool to have some examples of using annotated iPOJO and ant to create bundles.
-Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: iPOJO ant tasks
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
No, the iPOJO task is not called from the BND ant task. However they
can collaborate together :
Let's say that I have compile mt classes in a ${build.dir} and that I
want my resulting iPOJO bundle in ${output.dir}. (I also have a .bnd
file with the same name as my current project).
In your build.xml file you can write a 'package' target like the
following:
<target name="package" depends="compile">
<bnd
classpath="${build.dir}"
failok="false"
exceptions="true"
files="${ant.project.name}.bnd"
output="${output.dir}/${bundle.name}"/>
<ipojo
input="${output.dir}/${bundle.name}"
metadata="metadata.xml"
/>
</target>
The important thing to understand is the the BND 'output' is the iPOJO
'input'. So, BND makes the bundle, iPOJO takes it, processes it, and
that's it.
Regards,
Clement
PS: To use this target, you must define the two tasks:
<taskdef resource="aQute/bnd/ant/taskdef.properties"
classpath="../tasks/bnd-0.0.249.jar"/>
<taskdef name="ipojo" classpath="../tasks/
org.apache.felix.ipojo.ant-1.2.0.jar"
classname="org.apache.felix.ipojo.task.IPojoTask"/>
On 20.02.2009, at 01:52, <ja...@cox.net> <ja...@cox.net> wrote:
> Hi,
> I am using Ant to create bundles and annotated iPOJO. I noticed
> there is an iPOJO ant task. Is this called along with the bnd task?
> Alot of the examples use Maven which won't work for the application
> I am creating. It would be really cool to have some examples of
> using annotated iPOJO and ant to create bundles.
>
> -Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>