Asier,

First, this mailing list is not for "noob" type questions, it is
intended for use by implementers and advanced users of OSGi
frameworks. You should try newsgroups or the #osgi channel on IRC
(freenode).

However, with respect to your question, this is a tooling matter and
you do not indicate which tool you are using to build your bundles. Is
it Eclipse PDE, Bnd, or something else? If PDE then multiple source
folders in the same project are not supported, nor is generating
multiple bundles from a single project. If Bnd, then the solution is
simply to define two .bnd files, one with "Private-Package:
packageSRC" and the other with "Private-Package: packageTest".

Regards
Neil

On Thu, Dec 3, 2009 at 9:58 AM, Asier Aranbarri Beldarrain
<[email protected]> wrote:
> Good morning all:
>
> I have a little issue since i'm a reeeeal noob in OSGi. I have two packages
> in a Java Project that I need to become two separate OSGi bundles.(Using
> Eclipse)
>
> The body of the Java Project is this:
>
> JavaProjectNumberX
>
> ---->SRC
> ---------->packageSRC
> ----------------->class 1.java
> ----------------->class 2.java
> ----------------->interface 1.java
>
> ---->Test
> ----------->packageTest
> ------------------>Test.java
>
>
> What I need is two bundles, the first one with the SRC package classes, and
> the other one, with the TEST package.
>  The reason is that I want the "Test-Bundle" to access to the "SRC-bundle"
> and execute the functions of it.
> I mean, I need that the bundles make exactly the same thing that they do
> those classes right now, in the Java Project.
> Hope that you understand, thanks,
>
> Asier.
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to