mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Improve Javadoc postprocessing 2
- Fix typo - Reinstate copy step. It's needed for images ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190976774
This commit is contained in:
parent
ced8710ff9
commit
976182cb04
3 changed files with 11 additions and 1 deletions
|
|
@ -49,6 +49,12 @@ class CombinedJavadocPlugin implements Plugin<Project> {
|
|||
}
|
||||
}
|
||||
doLast {
|
||||
libraryModules.each { libraryModule ->
|
||||
project.copy {
|
||||
from "${libraryModule.projectDir}/src/main/javadoc"
|
||||
into "${project.buildDir}/docs/javadoc"
|
||||
}
|
||||
}
|
||||
project.fixJavadoc()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@ android.libraryVariants.all { variant ->
|
|||
project.android.getBootClasspath())
|
||||
}
|
||||
doLast {
|
||||
copy {
|
||||
from "src/main/javadoc"
|
||||
into "$buildDir/docs/javadoc"
|
||||
}
|
||||
project.fixJavadoc()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ ext.fixJavadoc = {
|
|||
def oracleRoot = "https://docs.oracle.com/javase/7/docs/api/"
|
||||
def oracleLink = "<a href=\"(${oracleRoot})(.*?)\\?is-external=true\""
|
||||
def oracleFixed = "<a href=\"\\1index.html\\?\\2\" target=\"_top\""
|
||||
ant.replaceregexp(atch:oracleLink, replace:oracleFixed, flags:'g') {
|
||||
ant.replaceregexp(match:oracleLink, replace:oracleFixed, flags:'g') {
|
||||
fileset(dir: "${javadocPath}", includes: "**/*.html")
|
||||
}
|
||||
// Remove date metadata that changes every time Javadoc is generated.
|
||||
|
|
|
|||
Loading…
Reference in a new issue