Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3d7e44e authored by Paul Duffin's avatar Paul Duffin Committed by android-build-merger
Browse files

Merge "Move rewriting of references in OpenJDK source files to libcore" am:...

Merge "Move rewriting of references in OpenJDK source files to libcore" am: 9e9a7770 am: 43ab63fe
am: 84e6f25e

Change-Id: I1640854f836a5a38c02a7f675fba7aa7ac043361
parents 780d1172 84e6f25e
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -1001,21 +1001,6 @@ metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.x
    "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
    "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.*"

// http://b/129765390 Rewrite links to "platform" or "technotes" folders
// which are siblings (and thus outside of) {@docRoot}.
//
// We have to escape \ as \\ and $ as $$ here because they get resolved by
// different layers of the build tooling. The arguments are wrapped in '' so
// that the shell doesn't add yet another level of escaping.
metalava_framework_docs_args += " --replace-documentation " +
    // packages whose descendants to apply replacement to (all packages from
    // libcore/ojluni/src/main/java that contribute to documentation).
    "com.sun:java:javax:jdk.net:sun " +
    // regex of the string to replace
    "'(<a\\s+href\\s?=[\\*\\s]*\")(?:(?:\\{@docRoot\\}/\\.\\./)|(?:(?:\\.\\./)+))((?:platform|technotes).+)\">' " +
    // replacement (with $1, $2 backreferences to the regex groups)
    "'$$1https://docs.oracle.com/javase/8/docs/$$2\">' "

packages_to_document = [
    "android",
    "dalvik",