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

Array values not flattened in (one version) of eclipse task properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.5
    • 1.4
    • IDE

    Description

      In the section of the docs on Eclipse (http://buildr.apache.org/more_stuff.html#eclipse), this example is given:

      eclipse.builders ['org.eclipse.pde.ManifestBuilder', 'org.eclipse.pde.SchemaBuilder']

      That actually doesn't work, because it is handled by (eclipse.rb r902466):

      def natures(*values)
      if values.size > 0
      @natures ||= []
      @natures += values # <-- This should be values.flatten?
      else
      @natures || (@project.parent ? @project.parent.eclipse.natures : [])
      end
      end

      it DOES work if assignment is used:

      eclipse.builders = ['org.eclipse.pde.ManifestBuilder', 'org.eclipse.pde.SchemaBuilder']

      or no explicit array added:

      eclipse.builders 'org.eclipse.pde.ManifestBuilder', 'org.eclipse.pde.SchemaBuilder'

      I've marked where I think a flatten should be added. By visual inspection, I guess the same problem exists for "classpath_containers", "exclude_libs", and "builders" (also all in eclipse.rb).

      Attachments

        1. BUILDR-392.txt
          3 kB
          Antoine Toulme

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pkd Peter Dettman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: