On 10/2/07, Alin Dreghiciu <[EMAIL PROTECTED]> wrote:
> You are right. By the moment this option is not yet done. As you may see in
> http://wiki.ops4j.org/confluence/x/GYA6 (section POM
> extensions) I'm planning to support that in the near future (maybe by
> tomorrow :) ).
> Beside this there are some other possibilities to do the wrapping
> automatically when needed but I do not particularry like them:
> 1. automatically detect if the dependency is a bundle and if not
> automatically wrap. The problem is that then I must actually first figure
> out by looking at the manifest if is a bundle or not. To do that I must
> access the jar, use the java jar to extract the manifest and look for
> manifest entries. Doable but it will involve some performance loss and I do
> not know how frequently this is the case.

You can use the java api for that:  java.util.jar.  As long as you
have an input stream, it should work.

> 2. always use the wrap handler as the wrap handler will not re-wrap if the
> target jar is an bundle. This I do not like because then you must allways
> have the wrap handler in place. When within runner this is fine as wrap
> handler is there but when the pom is used alone it forces that you have the
> wrap handler even when not needed.
>
> WDYT?

I guess it would be nice to have a third option to allow specifying
the wrapping explicitely, but the  maven artifact object (or xml) is
not extensible and both classifiers and types modify the url, so I'm
not sure if there is a way.  I'd rather use the first solution too.

I'm also thinking that having a pax:run goal in a maven plugin could
be useful too for maven users that do not have pax runner installed.

>
> Alin
>
>
> On 10/2/07, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> >
> > I don't think there is any way to wrap a jar on the fly using pax
> > runner and a pom.  Any idea how to achieve that somehow ?
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
> > ______________________________ _________________
> > general mailing list
> > general@lists.ops4j.org
> > http://lists.ops4j.org/mailman/listinfo/general
> >
>
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to