Uploaded image for project: 'Openmeetings'
  1. Openmeetings
  2. OPENMEETINGS-501

fresh build fails with class org/jdom/JDOMException not found in anakia build section

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0 Apache Incubator Release
    • 2.1.0 Apache Release
    • Builds
    • ant 1.8.3

    Description

      ant build fails with following error message

      -retrieve-anakia:

      anakia:

      BUILD FAILED
      C:\src\openmeeting2\singlewebapp\build.xml:694: taskdef A class needed by class
      org.apache.velocity.anakia.AnakiaTask cannot be found: org/jdom/JDOMException
      using the classloader AntClassLoader[....

      Reson: The anakia lib folder is empty (path ./build/lib/anakia) but should contain jdom*.jar, oro*.jar and logkit*.jar. These were not downloaded by ivy task.

      Possible Fix:
      in build task target name="-availability-check" include a check that jdom is available.

      After my workaround, replacing around lin 820

      <available classpathref="check.anakia.classpath" classname="org.apache.oro.text.GlobCompiler" />

      by

      <condition property="anakia.installed">
      <and>
      <available classpathref="check.anakia.classpath" classname="org.apache.oro.text.GlobCompiler" />
      <available classpathref="check.anakia.classpath" classname="org.jdom.JDOMException" />
      </and>
      </condition>

      build will complete w/o error.

      Attachments

        1. build-anakia-jdomjar-missin.patch
          2 kB
          Burkhard Buelte

        Activity

          People

            solomax Maxim Solodovnik
            reger Burkhard Buelte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified