Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0CF2B172D2 for ; Tue, 4 Nov 2014 02:48:34 +0000 (UTC) Received: (qmail 57001 invoked by uid 500); 4 Nov 2014 02:48:33 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 56956 invoked by uid 500); 4 Nov 2014 02:48:33 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 56943 invoked by uid 99); 4 Nov 2014 02:48:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2014 02:48:33 +0000 Date: Tue, 4 Nov 2014 02:48:33 +0000 (UTC) From: "Mikhail Stepura (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8250) Eclipse project recompiles Thrift classes again MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Stepura updated CASSANDRA-8250: --------------------------------------- Attachment: cassandra-2.1-8250.patch Attaching a patch > Eclipse project recompiles 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 > > Attachments: cassandra-2.1-8250.patch > > > 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)