Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4617

gradle-generated core eclipse project has incorrect source folder structure

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0.0
    • Component/s: build
    • Labels:

      Description

      The gradle-generated Eclipse Scala project for Kafka core has a
      classpath defined as :

      	<classpathentry kind="src" path="src/main/scala"/>
      	<classpathentry kind="src" path="src/test/scala"/>
      	<classpathentry kind="src" path="src/test/resources"/>
      

      because of how the source files are for tests are structured, code navigation / running unit tests fails. The correct structure should be instead :

      	<classpathentry kind="src" path="src/main/scala"/>
      	<classpathentry excluding="integration/|other/|unit/" kind="src" path="src/test/scala"/>
      	<classpathentry kind="src" path="src/test/scala/other"/>
      	<classpathentry kind="src" path="src/test/scala/integration"/>
      	<classpathentry kind="src" path="src/test/scala/unit"/>
      	<classpathentry kind="src" path="src/test/resources"/>
      

      Moreover, the classpath included as libraries core/build/test and core/build/resources
      which should not be there as the eclipse classes are not generated under build

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dhwanikatagade Dhwani Katagade
                Reporter:
                ecomar Edoardo Comar
                Reviewer:
                Edoardo Comar
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: