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

JavaDocOfflineLink created with wrong quotes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9-rc-1

      Description

      Hi,
      we tried to use the JavaDoc Link Option earlier today. After some troubles to get it to work, we found out that the generated javadoc.options file was incorrect - it misses quotes between the option values (external link url and local package list)

      instead of
      -linkoffline 'http://java.sun.com/javase/6/docs/api/ /usr/lib/jvm/java-6-sun/docs/api'

      it needs to be
      -linkoffline 'http://java.sun.com/javase/6/docs/api/' '/usr/lib/jvm/java-6-sun/docs/api'

      Our solution to this is a small patch to JavaDocOfflineLink.java that adds those to the toString method.

      We've tested it here and now it works

      An example gradle snippet:

      apply plugin: 'java'

      javadoc {
      options.linksOffline 'http://java.sun.com/javase/6/docs/api/', '/usr/lib/jvm/java-6-sun/docs/api'
      }

      We would be happy to supply any more information etc to help on this issue

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            markus.schlichting Markus Schlichting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: