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

Eclipse task generates incorrect classpath entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.4.6
    • 1.5
    • IDE
    • None

    Description

      In the setup that follows,

      define 'problematic', :version => '0.0' do
      define 'foo' do
      package :war
      end

      define 'bar' do
      compile.with project('foo').compile.target, project('foo').test.compile.target
      end
      end

      the eclipse task generates incorrect .classpath entries for project bar

      <classpath>
      <classpathentry path="/Users/matteo/work/.../problematic/foo/target/classes" kind="src" excluding="*/.svn/|*/CVS/"/>
      <classpathentry path="/Users/matteo/work/.../problematic/foo/target/test/classes" kind="src" excluding="*/.svn/|*/CVS/"/>
      ...
      </classpath>

      The absolute paths are not recognized by Eclipse, that interprets the /Users... paths as it they were relative to the workspace.

      There is a workaround with eclipse.exclude_lib that I documented here:
      https://cwiki.apache.org/confluence/display/BUILDR/How+to+depend+on+a+war-packaged+project

      Attachments

        Activity

          People

            toulmean Antoine Toulme
            vaccari@pobox.com Matteo Vaccari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: