2008/7/12 Alin Dreghiciu <[EMAIL PROTECTED]>:

> Really? That is stupid, as you can install a bundle from various forms
> of urls as for example the mvn: ones, to not mention that you can
> install a bundle from an input stream and the location can be anything
> as for example "1". What they were thinking? I have to check that to
> believe it.
>

wow, it appears to be true:


https://springframework.svn.sourceforge.net/svnroot/springframework/spring-osgi/trunk/web-extender/src/main/java/org/springframework/osgi/web/extender/internal/scanner/DefaultWarScanner.java

note the WarScanner interface is hidden under "internal" so even if you want
to provide an alternative implementation it doesn't seem that this is
possible:

  http://jira.springframework.org/browse/OSGI-549

double wow :)

Now if you really need to still use maven bundle plugin but generate a
> different extension as war you could try to set the <packaging> to war
> and use the instructions under "Adding OSGi metadata to existing
> projects without changing the packaging type" from
> http://felix.apache.org/site/maven-bundle-plugin-bnd.html
> It may work. I never tried.
>
> On Fri, Jul 11, 2008 at 9:28 PM, Ulrik Sandberg
> <[EMAIL PROTECTED]> wrote:
> > The reason I want to do this is that Spring DM 1.1.0-final differs from
> > 1.1.0-rc1 in that spring-osgi-web-extender now considers a bundle to be a
> > WAR if it ends with .war; previously it only needed to contain a
> > WEB-INF/web.xml. My sample app suddenly stopped working due to that tiny
> > little change...
> >
> >
> > On Wed, Jul 9, 2008 at 11:15 PM, Niclas Hedhman <[EMAIL PROTECTED]>
> wrote:
> >>
> >> On Thu, Jul 10, 2008 at 3:41 AM, Ulrik Sandberg
> >> <[EMAIL PROTECTED]> wrote:
> >> > I want to change the file name extension for a project that has
> >> > packaging
> >> > "bundle" from ".jar" to ".war". How do I do that?
> >>
> >> On Linux;
> >>
> >> mv abc.jar abc.war
> >>
> >> I think on Windows you press F2 when the jar is selected...
> >>
> >> ;-)
> >>
> >>
> >> Seriously, I don't think it is possible. You could try the <finalname>
> >> feature in Maven, but I suspect that it is not totally compatible with
> >> the rest of the "supply chain".
> >>
> >> Another choice could be to put in a ant script to copy the file under
> >> a new name...
> >>
> >>
> >> Cheers
> >> Niclas
> >>
> >> _______________________________________________
> >> general mailing list
> >> general@lists.ops4j.org
> >> http://lists.ops4j.org/mailman/listinfo/general
> >
> >
> >
> > --
> > Ulrik
> > _______________________________________________
> > general mailing list
> > general@lists.ops4j.org
> > http://lists.ops4j.org/mailman/listinfo/general
> >
> >
>
>
>
> --
> Alin Dreghiciu
> http://www.ops4j.org - New Energy for OSS Communities - Open
> Participation Software.
> http://www.qi4j.org - New Energy for Java - Domain Driven Development.
> http://malaysia.jayway.net - New Energy for Projects - Great People
> working on Great Projects at Great Places
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>



-- 
Cheers, Stuart
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to