Buildr
  1. Buildr
  2. BUILDR-176

Correct Metadata Generation for Scala Projects

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3
    • Component/s: IDE
    • Labels:
      None

      Description

      http://www.scala-lang.org/node/94

      As detailed by the above link, .classpath and .project files must correspond with a slightly different template in the latest version of the Scala Eclipse plugin. Generating project metadata according to the old form leads to extremely strange behavior in the plugin, making Buildr essentially unusable in conjunction with SDT. I would mark this as "blocker", but I doubt it affects many other people.

        Activity

        Hide
        Alex Boisvert added a comment -

        I've already updated the Eclipse plugin to conform to this specification, as documented in the 1.3.3 release notes:

        1.3.3 (2008-10-08)

        Here's an extract of our specs:

        for .project:

        it 'should have Scala nature before Java nature' do
        define('foo')
        project_natures.should include(SCALA_NATURE)
        project_natures.should include(JAVA_NATURE)
        project_natures.index(SCALA_NATURE).should < project_natures.index(JAVA_NATURE)
        end

        it 'should have Scala build command and no Java build command' do
        define('foo')
        build_commands.should include(SCALA_BUILDER)
        build_commands.should_not include(JAVA_BUILDER)
        end

        for .classpath

        it 'should have SCALA_CONTAINER before JAVA_CONTAINER' do
        define('foo')
        classpath_containers.should include(SCALA_CONTAINER)
        classpath_containers.should include(JAVA_CONTAINER)
        classpath_containers.index(SCALA_CONTAINER).should < classpath_containers.index(JAVA_CONTAINER)
        end

        Please reopen if you see anything missing.

        Show
        Alex Boisvert added a comment - I've already updated the Eclipse plugin to conform to this specification, as documented in the 1.3.3 release notes: 1.3.3 (2008-10-08) Change: Eclipse task updated to documented Scala plugin requirements ( http://www.scala-lang.org/node/94 ) Here's an extract of our specs: for .project: it 'should have Scala nature before Java nature' do define('foo') project_natures.should include(SCALA_NATURE) project_natures.should include(JAVA_NATURE) project_natures.index(SCALA_NATURE).should < project_natures.index(JAVA_NATURE) end it 'should have Scala build command and no Java build command' do define('foo') build_commands.should include(SCALA_BUILDER) build_commands.should_not include(JAVA_BUILDER) end for .classpath it 'should have SCALA_CONTAINER before JAVA_CONTAINER' do define('foo') classpath_containers.should include(SCALA_CONTAINER) classpath_containers.should include(JAVA_CONTAINER) classpath_containers.index(SCALA_CONTAINER).should < classpath_containers.index(JAVA_CONTAINER) end Please reopen if you see anything missing.

          People

          • Assignee:
            Alex Boisvert
            Reporter:
            Daniel Spiewak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development