bnd
bnd copied to clipboard
[bndtools] Launch to bndrun
This PR is a proof-of-concept. It will take a PDE .launch
file and convert it into a .bndrun
. The final .bndrun
might still need some manual tweaking. It also assumes that you've done the work to convert the PDE target platform definition into Bnd respositories in your workspace.
There are two parts:
-
biz.aQute.bnd.pde
, which contains the actual utility that does the conversion; - A context menu addition so that when you right-click on an
xxx.launch
file, you will have a menu item "Generate bndrun...". If you select it, it will create a correspondingxxx.bndrun
file using thebiz.aQute.bnd.pde
library.
I am interested in feedback of all types. Is this a useful addition? Is the name appropriate? Is it in the right package? Should it be in its own bundle or rolled into another?
Thanks a lot @kriegfrj . Could you maybe describe the usecase / purpose a bit more? Who would be the user of this feature and when would it be used? Is it meant as a helper during a migration to bndtools?
That context might help with feedback.
Sure,
Use case is for someone who wants to convert a project from PDE to Bndtòols. Part of that process includes having to convert PDE launch files into bndrun equivalents, for launching the frameworks. This tool automates a large part of that step.
Are the PRs can be checked as builded binaries (which can be installed and used in Eclipse) or do I have to test it from the source?
Are the PRs can be checked as builded binaries (which can be installed and used in Eclipse) or do I have to test it from the source?
The binaries are not publically available. There's two ways you could test it:
- From the Bndtools Eclipse test instance:
- Check out this branch of Bnd in your Bnd workspace in Eclipse.
- Browse to the
bndtools.core
project and run thebndtools.xxx.bndrun
launch file (where xxx corresponds to the OS that you're running on). This will launch another Eclipse instance that has the current bundles installed.
- In your own Eclipse installation:
- Check out this branch of Bnd.
- Build the p2 repo locally (
./gradlew p2
from the project root directory at the command line). - In your Eclipse instance, do "Install new software" and add your local P2 repo.
- Install Bndtools from the local P2 repo and restart.
The first is probably easier.
Btw, thanks for being brave enough to consider giving it a try, @peterkir !
@kriegfrj you're still planning to move this forward?