You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Mikhail Stepura (JIRA)" <ji...@apache.org> on 2014/11/04 03:44:38 UTC

[jira] [Updated] (CASSANDRA-8250) Eclipse project recomiles Thrift classes again

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

Mikhail Stepura updated CASSANDRA-8250:
---------------------------------------
    Description: 
Current workflow for {{generate-eclipse-files}} is
# Compile {{$interface.thrift.dir/gen-java}} files to {{$build.classes.thrift}}.
# Compile all other sources to {{$build.classes.main}}
# Create an eclipse project with output folder == {{$build.classes.main}}, and add {{$interface.thrift.dir}/gen-java}} as a source folder.

When you start Eclipse with that project, Eclipse will recompile all the sources from {{$interface.thrift.dir}/gen-java}} to {{$build.classes.main}} (i.e to only known output folder), even though there are compiled classes in {{$build.classes.thrift}}.

As a solution I suggest to remove {{$interface.thrift.dir}/gen-java}} as a "source" folder, and attach it as "source" to {{build/classes/thrift}} "library".

  was:
Current workflow for {{generate-eclipse-files}} is
# Compile {{$interface.thrift.dir/gen-java}} files to {{$build.classes.thrift}}.
# Compile all other sources to {{$build.classes.main}}
# Create an eclipse project with output folder == {{$build.classes.main}}, and add {{$interface.thrift.dir}/gen-java}} as a source folder.

When you start Eclipse with that project, Eclipse will recompile all the sources from {{$interface.thrift.dir}/gen-java}} to {{$build.classes.main}}, even though there are compiled classes in {{$build.classes.thrift}}.

As a solution I suggest to remove {{$interface.thrift.dir}/gen-java}} as a "source" folder, and attach it as "source" to {{build/classes/thrift}} "library".


> Eclipse project recomiles Thrift classes again
> ----------------------------------------------
>
>                 Key: CASSANDRA-8250
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8250
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Mikhail Stepura
>            Assignee: Mikhail Stepura
>            Priority: Trivial
>             Fix For: 2.1.2
>
>
> Current workflow for {{generate-eclipse-files}} is
> # Compile {{$interface.thrift.dir/gen-java}} files to {{$build.classes.thrift}}.
> # Compile all other sources to {{$build.classes.main}}
> # Create an eclipse project with output folder == {{$build.classes.main}}, and add {{$interface.thrift.dir}/gen-java}} as a source folder.
> When you start Eclipse with that project, Eclipse will recompile all the sources from {{$interface.thrift.dir}/gen-java}} to {{$build.classes.main}} (i.e to only known output folder), even though there are compiled classes in {{$build.classes.thrift}}.
> As a solution I suggest to remove {{$interface.thrift.dir}/gen-java}} as a "source" folder, and attach it as "source" to {{build/classes/thrift}} "library".



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