Fixed Dokka source links
This commit is contained in:
parent
02f56a8373
commit
8597447422
9 changed files with 22 additions and 19 deletions
|
@ -62,7 +62,8 @@ public class CompileKotlinOperation extends AbstractOperation<CompileKotlinOpera
|
|||
var files = directory.listFiles();
|
||||
if (files != null) {
|
||||
for (var f : files) {
|
||||
if (!f.getName().contains("-sources") && f.getName().matches(regex)) {
|
||||
if (!f.getName().endsWith("-sources.jar") && (!f.getName().endsWith("-javadoc.jar")) &&
|
||||
f.getName().matches(regex)) {
|
||||
jars.add(f.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ public class DokkaOperation extends AbstractProcessOperation<DokkaOperation> {
|
|||
args.add("-globalLinks");
|
||||
var links = new ArrayList<String>();
|
||||
globalLinks_.forEach((k, v) ->
|
||||
links.add(String.format("{%s}^{%s}", k, v)));
|
||||
links.add(String.format("%s^%s", k, v)));
|
||||
args.add(String.join("^^", links));
|
||||
}
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ public class SourceSet {
|
|||
if (!externalDocumentationLinks_.isEmpty()) {
|
||||
args.add("-externalDocumentationLinks");
|
||||
var links = new ArrayList<String>();
|
||||
externalDocumentationLinks_.forEach((k, v) -> links.add(String.format("{%s}^{%s}", k, v)));
|
||||
externalDocumentationLinks_.forEach((k, v) -> links.add(String.format("%s^%s", k, v)));
|
||||
args.add(String.join("^^", links));
|
||||
}
|
||||
|
||||
|
@ -193,11 +193,11 @@ public class SourceSet {
|
|||
args.add(String.join(SEMICOLON, src_));
|
||||
}
|
||||
|
||||
// -srcLinks
|
||||
// -srcLink
|
||||
if (!srcLinks_.isEmpty()) {
|
||||
args.add("-srcLinks");
|
||||
args.add("-srcLink");
|
||||
var links = new ArrayList<String>();
|
||||
srcLinks_.forEach((k, v) -> links.add(String.format("{%s}={%s}", k, v)));
|
||||
srcLinks_.forEach((k, v) -> links.add(String.format("%s=%s", k, v)));
|
||||
args.add(String.join(SEMICOLON, links));
|
||||
}
|
||||
|
||||
|
@ -501,15 +501,15 @@ public class SourceSet {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the mpping between a source directory and a Web service for browsing the code.
|
||||
* Sets the mapping between a source directory and a Web service for browsing the code.
|
||||
*
|
||||
* @param srcPath the source path
|
||||
* @param remotePath the remote path
|
||||
* @param lineSuffix the line suffix
|
||||
* @return this operation instance
|
||||
*/
|
||||
public SourceSet srcLinks(String srcPath, String remotePath, String lineSuffix) {
|
||||
srcLinks_.put(srcPath, remotePath + '#' + lineSuffix);
|
||||
public SourceSet srcLink(String srcPath, String remotePath, String lineSuffix) {
|
||||
srcLinks_.put(srcPath, remotePath + lineSuffix);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue