[ https://issues.apache.org/jira/browse/GROOVY-11682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-11682: --------------------------------- Language: groovy > Support modular external links > ------------------------------ > > Key: GROOVY-11682 > URL: https://issues.apache.org/jira/browse/GROOVY-11682 > Project: Groovy > Issue Type: Improvement > Components: GroovyDoc > Affects Versions: 4.0.27 > Reporter: Per Nyfelt > Priority: Major > > Currently, the Groovydoc ant task assumes a non modular java doc. e.g. when > adding > link(packages: 'java.', href: > '[https://docs.oracle.com/en/java/javase/21/docs/api/')] > A link to a java class e.g. Object becomes > [https://docs.oracle.com/en/java/javase/21/docs/api/java/lang/Object.html] > Instead of the correct > https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html > > This could be fixed by adding an optional module argument to the link e.g. > link(packages: 'java.', href: > 'https://docs.oracle.com/en/java/javase/21/docs/api/', module: 'java.base') > To do this, the > LinkArgument could be modified with an additional module attribute and the > getHref method changed to > @Override > public String getHref() { > String base = super.getHref(); > if (base == null || module == null || module.isEmpty()) return base; > return base.endsWith("/") ? base + module : base + "/" + module; > } > -- This message was sent by Atlassian Jira (v8.20.10#820010)