[GRADLE-1015] JavaDocOfflineLink created with wrong quotes Created: 30/Jun/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Markus Schlichting Assignee: Hans Dockter
Resolution: Fixed Votes: 0

Attachments: Text File 0001-Patch-JavaDocOptionsFile.patch    

 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



 Comments   
Comment by Markus Schlichting [ 20/Jul/10 ]

Hi,
I noticed there is a test for the javadoc options file, so i extended the patch to keep the test up to date as well.

cheers
Markus

Comment by Hans Dockter [ 29/Jul/10 ]

Patch applied. Thanks.

Generated at Wed Jun 30 11:44:44 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.