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

Project#packages selector improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.3
    • 1.3
    • Packaging
    • None

    Description

      Currently, the Project#packages method returns all the packages defined for a project. However it would be useful to provide a way to easily narrow returned packages without having the user(mainly ruby newcomers) to use the select ruby idiom

      project.packages.select

      { |p| p.type == :war }

      It would be nicer to have something like:

      project.packages(:type => :war) # actually comparing :war with the type attribute of each package
      project.packages(JarTask) # select all Jar kind packages

      For more advanced stuff, users may still need to provide a Proc/Method or select the full packages array the ruby way.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vic Victor Hugo Borja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: