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

eclipse task should honor ResourceTask's target directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.3
    • 1.3.3
    • IDE
    • None
    • buildr trunk revision 682561

    Description

      buildr copies resources to target/resources and target/test/resources.

      The eclipse task generates a .classpath file that does not honor this behavior. It generates a .classpath file that copies resources to the CompileTask's target (e.g., target/classes or target/test/classes).

      Here's an example.

      = What the eclipse task generates now =

      <classpath>
      <classpathentry kind="src" path="src/main/java" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="src" path="src/main/resources" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="src" path="src/test/java" output="target/test/classes" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="src" path="src/test/resources" output="target/test/classes" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="var" path="M2_REPO/jmock/jmock/1.2.0/jmock-1.2.0.jar"/>
      <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"/>
      <classpathentry kind="output" path="target/classes"/>
      <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
      </classpath>

      = What I think would be more consistent =
      <classpath>
      <classpathentry kind="src" path="src/main/java" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="src" path="src/main/resources" output="target/resources" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="src" path="src/test/java" output="target/test/classes" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="src" path="src/test/resources" output="target/test/resources" excluding="*/.svn/|*/CVS/"/>
      <classpathentry kind="var" path="M2_REPO/jmock/jmock/1.2.0/jmock-1.2.0.jar"/>
      <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"/>
      <classpathentry kind="output" path="target/classes"/>
      <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
      </classpath>

      Attachments

        1. BUILDR-123.lib.patch
          7 kB
          Antoine Contal
        2. BUILDR-123.spec.patch
          6 kB
          Antoine Contal

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lacton Antoine Contal
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: