-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project#getBundle
only take into account the repositories of the workspace
#6481
Comments
@laeubi |
You can take a look here: this implementation is (with some simplifications that do not apply for this case) the same as the one in project I linked here with the difference being that I use
in contrast to
thats way Lets say we have
then |
Ah thanks this makes it more clear. Sorry my brain works with examples like "I want to do this, I expect to happen that, but it happens X, it would be good if Y happens". So let's see to find out I understand correctly: You basically want that So we should find a backwards compatible way to provide a What about: Add a
in
Side-effects:
Maybe this is non-sense. But just a base for discussion. |
A protected method would be of course good as it allows even more advanced use cases... even better, simply all repositories of workspace and project are used (while I have the impression that project is just a superset of what one gets from the workspace). |
I am unhappy to make this automatic. If we consult repositories in the project it must be activated via an explicit instruction so it will be 100% backward compatible. This was also the approach in bndrun with |
I would be fine with a method
then I can at least override this more easily and generally useful. Beside from that having it overridden in BndRun with:
because as mentioned before, the resolve already works that way, it is just that *after resolve the runbundle is not found because it behaves differently. |
@laeubi @pkriens I have removed the overridden method in BndRun. So now there is only the protected method in Project.
So |
Project#getBundle
only uses the repositories from the workspace here:bnd/biz.aQute.bndlib/src/aQute/bnd/build/Project.java
Line 1281 in 5549ecf
because of this if one adds a plugin to the project (or in my case to the bndrun) to only have it locally bnd can not find things when looking for it.
resolve
then works but callinggetRunbundles()
do fail...It would be good if similar to what the Bndrun does it also will query the project plugins.
The text was updated successfully, but these errors were encountered: