Dear BndTools-Team,
i really like BndTools. In the past we setup all our customer projects based on PDE.
And for the next customer project we are looking forward to use BndTools.
For now i have been writing an OpenSource project based on BndTools and it works properly fine ;)
But there is one issue i am struggling with. It's the way how to write the .bnd and .bndrun files. Mostly i copied stuff from enRoute,... and did trial and error approach.
I was reading the documentation a few times, but honestly i am not sure, how to use the different keywords in the files.
For instance some of the keyword like "-augment" use a "-" prefix. But "debug-bundles" does not so.
And you can extend the keyword - sometimes - with a doted prefix. Like "-plugin.enroute.distro".
Honestly, it is not that simple to write the .bnd files. You need to know a lot details about it.
So i came up with an idea. What would you think about an Eclipse plugin based on Xtext? Providing keywords, content assist, validation, cross references,...
For instance, the following plugin definition would be content assisted based for 100%.
-plugin.vaadin: \
\
aQute.bnd.repository.maven.provider.MavenBndRepository; \
releaseUrl= http://repo1.maven.org/maven2/; \
index=${.}/vaadin.maven; \
readOnly=true; \
name="Vaadin"
And most / all of the definitions should be so. And it should be possible, that anybody providing a new definition for anything, can provide a simple "grammar snippet". Creating these snippets should be pretty simple for everyone.
I will start with a first prototype in a few weeks.
And I already talked to an Xtext expert. He is interested in contributing. We will meet in a few month (July, August) to find out, if Xtext could do this job.
Right now it is not sure, whether Xtext can do this job. Specially according the "grammar snippets". We need to figure out.
What do you think about this idea? Having an "extendable" Xtext Grammar which supports the creation of .bnd files?
Thanks for answers...
Best Florian