[ 
https://issues.apache.org/jira/browse/KAFKA-4617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Edoardo Comar updated KAFKA-4617:
---------------------------------
    Description: 
The gradle-generated Eclipse Scala project for Kafka core has a 
classpath defined as :
{code:xml}
        <classpathentry kind="src" path="src/main/scala"/>
        <classpathentry kind="src" path="src/test/scala"/>
        <classpathentry kind="src" path="src/test/resources"/>
{code}
because of how the source files are for tests are structured, code navigation / 
running unit tests fails. The correct structure should be instead :
{code:xml}
        <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"/>
{code}

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


  was:
The gradle-generated Eclipse Scala project for Kafka core has a 
classpath defined as :
{code:xml}
        <classpathentry kind="src" path="src/main/scala"/>
        <classpathentry kind="src" path="src/test/scala"/>
        <classpathentry kind="src" path="src/test/resources"/>
{code}
because of how the source files are for tests are structured, code navigation / 
running unit tests fails. The correct structure should be instead :
{code:xml}
        <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"/>
{code}


> gradle-generated core eclipse project has incorrect source folder structure
> ---------------------------------------------------------------------------
>
>                 Key: KAFKA-4617
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4617
>             Project: Kafka
>          Issue Type: Bug
>          Components: build
>            Reporter: Edoardo Comar
>            Priority: Minor
>
> The gradle-generated Eclipse Scala project for Kafka core has a 
> classpath defined as :
> {code:xml}
>       <classpathentry kind="src" path="src/main/scala"/>
>       <classpathentry kind="src" path="src/test/scala"/>
>       <classpathentry kind="src" path="src/test/resources"/>
> {code}
> because of how the source files are for tests are structured, code navigation 
> / running unit tests fails. The correct structure should be instead :
> {code:xml}
>       <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"/>
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to