Bundlor
  1. Bundlor
  2. BNDLR-198

Provide sensible defaults to remove the need for redundant configuration entries

    Details

    • Type: Story Story
    • Status: To Do To Do
    • Priority: Major Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      1

      Description

      Currently, Bundlor requires several options to be specified even though they need to have predefined values. A good example would be Bundle-ManifestVersion: 2 - I think it makes sense to provide this value by default w/o having to specify it. In a Maven environment (and to some degree in Ant as well), the configuration already contains enough information that can be used to populate the manifest - for example the Bundle Name (project name), Bundle-Description (project description), Bundle-Vendor and Version. In fact, based on the libraries specified, the tool can determine the versions of the imported packages if none is specified (this should be made configurable).

        Issue Links

          Activity

          Costin Leau made changes -
          Field Original Value New Value
          Summary Provide sensible defaults to allow redundant configuration options Provide sensible defaults to remove the need for redundant configuration entries
          Ben Hale (c) made changes -
          Link This issue is related to BNDLR-225 [ BNDLR-225 ]
          Hide
          Justin Griffin added a comment -

          I agree, I was disappointed to learn that I had to provide at least a minimal template.mf file even though every bit of information in the final generated MANIFEST.MF could have been inferred from the pom.xml. I would rather save specifying a template.mf file for when I needed to override the default behavior. Bundlor could really take a page out of Felix's maven-bundle-plugin here.

          Automatically figuring out the appropriate versions for the imported packages from the maven dependency list would also be extremely helpful. It would simplify managing dependency versions so that you don't have to manage version information in two places (pom.xml and template.mf).

          I would expect bundlor to determine the Import-Package version by inspecting the MANIFEST.MF inside the dependency, and if it is missing default to the maven dependency version.

          Show
          Justin Griffin added a comment - I agree, I was disappointed to learn that I had to provide at least a minimal template.mf file even though every bit of information in the final generated MANIFEST.MF could have been inferred from the pom.xml. I would rather save specifying a template.mf file for when I needed to override the default behavior. Bundlor could really take a page out of Felix's maven-bundle-plugin here. Automatically figuring out the appropriate versions for the imported packages from the maven dependency list would also be extremely helpful. It would simplify managing dependency versions so that you don't have to manage version information in two places (pom.xml and template.mf). I would expect bundlor to determine the Import-Package version by inspecting the MANIFEST.MF inside the dependency, and if it is missing default to the maven dependency version.
          Ben Hale (c) made changes -
          Story Points 1
          Ben Hale (c) made changes -
          Fix Version/s 1.0.0.RELEASE [ 10177 ]
          Fix Version/s 1.0.0.M5 [ 10307 ]
          Fix Version/s Sprint 6 [ 10316 ]
          Ben Hale (c) made changes -
          Fix Version/s 1.0.0.M5 [ 10307 ]
          Fix Version/s 1.0.0.RELEASE [ 10177 ]
          Fix Version/s Sprint 6 [ 10316 ]
          Ben Hale (c) made changes -
          Fix Version/s 1.0.0.M6 [ 10326 ]
          Fix Version/s Sprint 8 [ 10341 ]
          Fix Version/s 1.0.0.RELEASE [ 10177 ]
          Ben Hale (c) made changes -
          Fix Version/s Sprint 8 [ 10341 ]
          Fix Version/s 1.0.0.M6 [ 10326 ]
          Fix Version/s 1.0.0.RELEASE [ 10177 ]
          Ben Hale (c) made changes -
          Fix Version/s Sprint 10 [ 10529 ]
          Ben Hale (c) made changes -
          Fix Version/s 1.1.0.RELEASE [ 10530 ]
          Ben Hale (c) made changes -
          Fix Version/s Sprint 10 [ 10529 ]
          Fix Version/s 1.1.0.RELEASE [ 10530 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Costin Leau
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                First Response Date:

                Time Tracking

                Estimated:
                Original Estimate - 6h
                6h
                Remaining:
                Remaining Estimate - 6h
                6h
                Logged:
                Time Spent - Not Specified
                Not Specified