Qpid
  1. Qpid
  2. QPID-3181

Auto-generate Eclipse .project and .classpath files for Qpid Java components

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      For those who use Eclipse and prefer to have the Qpid Java components in separate Eclipse projects know that there is much manual effort required to import the projects, set up source paths, class-paths, and establish dependencies between projects. This has been discussed on the dev-list. I know I can spend up to half an hour getting the manual setup done.

      I've written an extension to the build system that uses http://ant-eclipse.sourceforge.net/ to create the Eclipse .project and .classpath files automatically for each of the Java components (broker, common, client etc). The new targets make use of the existing properties used by the Ant build process: source folders come from $

      {module.src}

      etc, classpaths from $

      {module.libs}

      etc and the project dependencies are computed from automatically $

      {module.depends}

      so there is no new configuration to maintain.

      There is still a single manual step required within Eclipse (to create a linked source from broker, common, client and broker-plugins-access-control projects to their auto-generated code source folder beneath build/scratch) as Ant Eclipse does not yet support the creation of linked-sources, but after this is done you have a fully imported Qpid with zero errors .

      I will put together a Wiki page to provide instructions.

        Activity

        Keith Wall created issue -
        Keith Wall made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Keith Wall made changes -
        Attachment 0001-QPID-3181-Addition-of-new-task-eclipse-to-Java-build.patch [ 12475305 ]
        Keith Wall made changes -
        Status In Progress [ 3 ] Ready To Review [ 10006 ]
        Hide
        Keith Wall added a comment -

        Hi Robbie.. would you mind reviewing please?

        Show
        Keith Wall added a comment - Hi Robbie.. would you mind reviewing please?
        Keith Wall made changes -
        Assignee Keith Wall [ k-wall ] Robbie Gemmell [ gemmellr ]
        Hide
        Robbie Gemmell added a comment -

        Looks good

        One tiny niggle; I realise it's just a comment for possible future extension, but it would be good to get rid of the hard coded path within the in the 'eclipse-project' target if possible?

        Show
        Robbie Gemmell added a comment - Looks good One tiny niggle; I realise it's just a comment for possible future extension, but it would be good to get rid of the hard coded path within the in the 'eclipse-project' target if possible?
        Keith Wall made changes -
        Attachment 0001-QPID-3181-Addition-of-new-task-eclipse-to-Java-build.patch [ 12475305 ]
        Hide
        Keith Wall added a comment -

        Hi Robbie

        I agree. I've reworded the comment to remove the absolute path.

        cheers Keith.

        Show
        Keith Wall added a comment - Hi Robbie I agree. I've reworded the comment to remove the absolute path. cheers Keith.
        Keith Wall made changes -
        Hide
        Robbie Gemmell added a comment -

        Patch applied.

        Show
        Robbie Gemmell added a comment - Patch applied.
        Robbie Gemmell made changes -
        Status Ready To Review [ 10006 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Rob Godfrey made changes -
        Labels eclipse ant_build_system
        Rob Godfrey made changes -
        Component/s Ant Build System [ 12311471 ]

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Keith Wall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development