Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-458

Configuring javadoc with multiple links fails with "Error fetching URL"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6

      Description

      I was trying to link each of my projects' javadocs with Java6 and each of its dependent project javadocs. Here is a simple example of what I was trying to do:

      options.links 'file:/C:/dev/myProject/modules/java/docs/api/', 'file:/C:/dev/myProject/modules/common/build/docs/javadoc/'

      This resulted in the following error:

      javadoc: warning - Error fetching URL: File:/C:/dev/myProject/modules/java/docs/api/;file:/C:/dev/myProject/modules/common/build/docs/javadoc/

      The problem was caused by the links option using a "stringsOption" type, which concatenates all the specified options together into one string separated by semi-colons. I fixed this by adding a "multilineStringsOption" type, which causes each option to be passed to the javadoc command via a separate line. These changes are included in the patch.


      Melanie Pfautz
      Automated Logic Research Team

        Attachments

          Activity

            People

            Assignee:
            teyckmans Tom Eyckmans
            Reporter:
            mpfautz Melanie Pfautz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: