Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5355

Add more support to validate the -Dbootclasspath given for javadocs generate

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.7, 6.0
    • Component/s: general/build
    • Labels:
      None
    • Environment:

      MacOSX AppleJDK6

    • Lucene Fields:
      New

      Description

      When Simon created the nice looking javadocs for LuSolr 4.6, he just copypasted the command line from http://wiki.apache.org/lucene-java/HowToGenerateNiceJavadocs

      Unfortunately this does not work with AppleJDK6, because it has no rt.jar! The rt.jar file is there in a completely different directory and is named classes.jar. I had a similar problem when I wanted to regenerate the Javadocs on my Linux box, but specified -Dbootclasspath with shell specials (e.g., ~ for homedir).

      This patch will assist the user and will "validate" the given bootclasspath, so it points to a JAR file that actually contains the runtime. Also to make life easier, instead of -Dbootclasspath you can set -Dbootjdk to the JDK homefolder (same like JAVA_HOME) and ANT will figure out if it is Apple or Oracle or maybe only a JRE.

      In the meantime, I regenerated the 4.6 Javadocs with correct bootclasspath.

        Attachments

        1. LUCENE-5355.patch
          2 kB
          Uwe Schindler

          Activity

            People

            • Assignee:
              uschindler Uwe Schindler
              Reporter:
              uschindler Uwe Schindler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: