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

        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?
        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?
        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.
        Hide
        Robbie Gemmell added a comment -

        Patch applied.

        Show
        Robbie Gemmell added a comment - Patch applied.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development