HiveMind
  1. HiveMind
  2. HIVEMIND-88

Examples build.xml fails to set proper runtime.classpath

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: examples
    • Labels:
      None
    • Environment:
      Windows XP, JDK 1.5, Ant 1.6.2, command line execution

      Description

      After running 'ant' and/or 'ant install' at the top level with all dependencies resolved, all needed libraries are built. Changing directory into the 'examples' subdirectory and running 'ant run-calculator' produces a NoClassDefFoundError for org/apache/hivemind/ClassResolver.

      Mofidying the runtime.classpath fixes the problem. Following is the patch output:

      Index: build.xml
      ===================================================================
      RCS file: /home/cvspublic/jakarta-hivemind/examples/build.xml,v
      retrieving revision 1.11
      diff -u -r1.11 build.xml
      — build.xml 16 Nov 2004 18:51:43 -0000 1.11
      +++ build.xml 1 Feb 2005 05:21:06 -0000
      @@ -35,8 +35,8 @@

      <path id="runtime.classpath">
      <fileset dir="$

      {module.lib.dir}

      ">

      • <include name="compile/*.jar"/>
      • <include name="run/*.jar"/>
        + <include name="compile/*/.jar"/>
        + <include name="run/*/.jar"/>
        </fileset>
        <pathelement location="$ {java.classes.dir}

        "/>
        <pathelement location="$

        {conf.src.dir}

        "/>

        Activity

        Brian K. Wallace created issue -
        Hide
        Brian K. Wallace added a comment -

        Very small change allows examples to run.

        Show
        Brian K. Wallace added a comment - Very small change allows examples to run.
        Brian K. Wallace made changes -
        Field Original Value New Value
        Attachment hivemind-examples-build.xml.patch.txt [ 18807 ]
        Knut Wannheden made changes -
        Assignee Knut Wannheden [ knut ]
        Hide
        Knut Wannheden added a comment -

        Committed patch to CVS.

        Show
        Knut Wannheden added a comment - Committed patch to CVS.
        Knut Wannheden made changes -
        Fix Version/s 1.1 [ 10812 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Knut Wannheden
            Reporter:
            Brian K. Wallace
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development