bnd icon indicating copy to clipboard operation
bnd copied to clipboard

[bndtools] Launch to bndrun

Open kriegfrj opened this issue 1 year ago • 8 comments

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:

  1. biz.aQute.bnd.pde, which contains the actual utility that does the conversion;
  2. 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 corresponding xxx.bndrun file using the biz.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?

kriegfrj avatar Oct 20 '23 15:10 kriegfrj

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.

chrisrueger avatar Oct 20 '23 16:10 chrisrueger

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.

kriegfrj avatar Oct 20 '23 22:10 kriegfrj

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?

peterkir avatar Oct 23 '23 05:10 peterkir

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:

  1. From the Bndtools Eclipse test instance:
    1. Check out this branch of Bnd in your Bnd workspace in Eclipse.
    2. Browse to the bndtools.core project and run the bndtools.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.
  2. In your own Eclipse installation:
    1. Check out this branch of Bnd.
    2. Build the p2 repo locally (./gradlew p2 from the project root directory at the command line).
    3. In your Eclipse instance, do "Install new software" and add your local P2 repo.
    4. Install Bndtools from the local P2 repo and restart.

The first is probably easier.

kriegfrj avatar Oct 23 '23 05:10 kriegfrj

Btw, thanks for being brave enough to consider giving it a try, @peterkir !

kriegfrj avatar Oct 23 '23 05:10 kriegfrj

@kriegfrj you're still planning to move this forward?

pkriens avatar Jul 08 '24 08:07 pkriens