JarFile to Resource?

6 views
Skip to first unread message

Mark Raynsford

unread,
Mar 22, 2018, 8:38:04 AM3/22/18
to bndtool...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello.

Is there some code or documentation out there on how to get a Resource
(or failing that, a List<Capability> and List<Requirement>) from a jar
file in the filesystem?

I'm trying to put together a trivial example of using the Felix
resolver to obtain a list of "required" bundles:

https://github.com/io7m/resolver-test-20180322/blob/master/src/main/java/com/io7m/felixresolver/Main.java

I've created two trivial bundles in the filesystem, but can't work out
where I need to look in the Bnd API to get capabilities and
requirements from them in order to supply the resolver with the
information it wants.

- --
Mark Raynsford | http://www.io7m.com

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQS4Thd0dhbGF0xo1eVcGntxKBLMBQUCWrOjoAAKCRBcGntxKBLM
Bd70AP0boR2yQdgsc4yx6emZT6basOHv0Lyk4cFXRRhCQHcArwD8DXpiPY9W/JXW
pQ+6KQ/auKp+SxN3ZrbmesKxDwV7DQ8=
=cd11
-----END PGP SIGNATURE-----

BJ Hargrave

unread,
Mar 22, 2018, 8:48:15 AM3/22/18
to bndtool...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
BJ

Mark Raynsford

unread,
Mar 22, 2018, 8:52:07 AM3/22/18
to BJ Hargrave, bndtool...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2018-03-22T12:48:03 +0000
BJ Hargrave <b...@bjhargrave.com> wrote:

> See ResourceBuilder (
Thanks very much! That should do it.

- --
Mark Raynsford | http://www.io7m.com

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQS4Thd0dhbGF0xo1eVcGntxKBLMBQUCWrOm8gAKCRBcGntxKBLM
BSZ7AP4qB/ZDgtf+0G9Rfs4c2iDjAuXJ/xREASeWg8lLix347AEAp2HcXVxqc+F8
AhlcJ11yIk1lUXYeRPMHesWCYmOvVwQ=
=nztF
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages