Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-382

Packages with default spec are not always created correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.5
    • 1.4
    • Core features
    • None

    Description

      If two packages are created with only the type specified as parameter is possible for only a single package to be created. For instance, when creating a :javadoc and a :zip package in a single project; only the first package will be created. The bug is in package(*args) and relates to the no_options flag. When this flag is true, the package is checked for incorrectly. The attached patch adds a spec for this case and fixes a bug that was required to get the spec to run.

      It is not clear to me why that no_options variant is needed in the first place. When using
      package(:type => :javadoc) and package(:type => :zip) instead of package(:javadoc) and package(:zip) everything works correctly. In my understanding the two are semantically equivalent, yet due to this no_options flag they are treated differently.

      Attachments

        1. packaging.patch
          1 kB
          Pepijn Van Eeckhoudt

        Activity

          People

            boisvert Alex Boisvert
            pepijnve Pepijn Van Eeckhoudt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: