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

idea7x task incorrect adds target/resources to the sources paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3
    • 1.3.2
    • IDE
    • None

    Description

      The idea7x task is incorrectly adding target/resources to the list of source folders. This causes duplicate entries when searching for files in src/main/resources as it also finds the copies in target/resources. This is happening on a project where I've used the antlr task in conjunction with compile.from. The idea7x task is correctly adding generated/antlr to the list of source folders.

      The build file is attached below:

      1. Generated by Buildr 1.3.0, change to your liking
      2. Version number for this release
        VERSION_NUMBER = "1.0.0"
      3. Version number for the next release
        NEXT_VERSION = "1.0.1"
      4. Group identifier for your projects
        GROUP = "com.pietschy"

      COPYRIGHT = "Andrew Pietsch (C) 2008"

      ANTLR_RUNTIME = 'org.antlr:antlr-runtime:jar:3.0'
      EASYMOCK = 'org.easymock:easymock:jar:2.2'

      1. Specify Maven 2.0 remote repositories here, like this:
        repositories.remote << "http://www.ibiblio.org/maven2/"

      desc "The Pectin Binding Framework for Swing"
      define "pectin" do

      project.version = VERSION_NUMBER
      project.group = GROUP
      manifest['Copyright'] = COPYRIGHT
      manifest["Implementation-Vendor"] = COPYRIGHT
      compile.options.target = '1.5'

      define "main" do

      antlr_options =
      {
      :in_package=>'com.pietschy.binding.presentation.generic.expression.antlr',
      :token=>'com.pietschy.binding.presentation.generic.expression.antlr'
      }

      compile.from(antlr(_(:src, :main, :java), antlr_options))

      compile.with(ANTLR_RUNTIME)

      test.with EASYMOCK
      test.using :testng

      package(:jar, :id=>'pectin').merge(artifact(ANTLR_RUNTIME))

      end
      end

      Attachments

        1. exclude_target_resources.patch
          3 kB
          Shane Witbeck

        Activity

          People

            Unassigned Unassigned
            pietschy Andrew Pietsch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: