You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to create a simple maven project and configured the pom.xml by coping yours but it seems not to be working. my main goal is to access the workspace using JDT:
but from a simple maven project instead of a plug-in or an RCP application .. is this possible?
if yes could you please let me know how the pom.xml file should be configured?
thanks.
The text was updated successfully, but these errors were encountered:
As I wrote in my blog post: Eclipse JDT without eclipse, as soon as you use a workspace (like with ResourcesPlugin.getWorkspace()) your code needs to be executed inside an OSGi container. Otherwise you will some Exception.
In the programcreek-osgi project, the trick is to put the code inside some unit tests and to have the bnd tooling execute them inside an OSGi runtime.
In my code I need to access the workspace and manipulate the code structure of certain classes in a certain project.
In your repo you mentioned:
"To execute the tests in an IDE, be sure to run them inside an OSGi container (in the same way the maven build is doing it). If you are using Eclipse IDE, consider installing bndtools."
I am using Eclipse and I installed Bndtools but do not know how to use it to run these test cases, or how to add this bndtools." in my Maven project. any tips or resources to learn it would be really appreciated.
Hello,
I have tried to create a simple maven project and configured the pom.xml by coping yours but it seems not to be working. my main goal is to access the workspace using JDT:
IWorkspace workspace = ResourcesPlugin.getWorkspace();
but from a simple maven project instead of a plug-in or an RCP application .. is this possible?
if yes could you please let me know how the pom.xml file should be configured?
thanks.
The text was updated successfully, but these errors were encountered: