[GRADLE-458] Configuring javadoc with multiple links fails with "Error fetching URL" Created: 23/Apr/09  Updated: 29/Jul/14  Resolved: 13/May/09

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.6

Type: Bug
Reporter: Melanie Pfautz Assignee: Tom Eyckmans
Resolution: Fixed Votes: 0

Attachments: Text File javadoc-multi-line-links.patch    

 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



 Comments   
Comment by Tom Eyckmans [ 03/May/09 ]

Hi Melani,

I didn't get around to testing all the javadoc options, so thank you for this bug report.

I'll check out your patch shortly.

Kr,

Tom

Comment by Hans Dockter [ 12/May/09 ]

Hi Tom, do you know already when you will apply this patch?

Comment by Tom Eyckmans [ 13/May/09 ]

I'll apply it this evening.

Comment by Tom Eyckmans [ 13/May/09 ]

I've applied the patch, it looked good, thank you Melanie!

Comment by Melanie Pfautz [ 15/May/09 ]

Hi Tom,

I'm glad this was helpful and thank you for including it so soon.

-
Melanie Pfautz
Automated Logic Research Team

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