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

Use different build directories for Eclipse and Ant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.10
    • None
    • None
    • Low

    Description

      Currently ant generate-eclipse-files will create an Eclipse project that will write compile classes into the build/classes/main/ output directory, just as ant does. This causes some issues in practice:

      • Eclipse doesn't recognize changes to compiled classes when compiling with ant. You'll have to manually refresh the project and Eclipse acts weird if you forget to do so.
      • Cleaning the project from Eclipse will remove the hotspot_compile file and ant jar won't work any longer as this file is required with ant. Eclipse will be happy to delete it during clean but won't be able to generate it.
      • Tests run by ant may pick up classes compiled by Eclipse that may use different build settings and produce different results for testing

      My suggestion is to simply configure Eclipse to use build/classes/eclipse instead and leave the ant classes alone. See trivial patch.

      Attachments

        1. 12466-trunk.patch
          1 kB
          Stefan Podkowinski

        Activity

          People

            spod Stefan Podkowinski
            spod Stefan Podkowinski
            Stefan Podkowinski
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: