Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8250

Eclipse project recompiles Thrift classes again

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.1.2
    • Legacy/Tools
    • None

    Description

      Current workflow for generate-eclipse-files is

      1. Compile $interface.thrift.dir/gen-java files to $build.classes.thrift.
      2. Compile all other sources to $build.classes.main
      3. 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".

      Attachments

        1. cassandra-2.1-8250.patch
          1 kB
          Mikhail Stepura

        Activity

          People

            mishail Mikhail Stepura
            mishail Mikhail Stepura
            Mikhail Stepura
            T Jake Luciani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: