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

gradle-generated core eclipse project has incorrect source folder structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.11.0.0
    • build

    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

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

              Dates

                Created:
                Updated:
                Resolved: