Open Bug 1896020 Opened 1 month ago Updated 7 hours ago

`apilint` broken on Windows builds due to internal javadoc `sourcepath` with multiple paths and incorrect path separator

Categories

(Fenix :: General, defect)

All
Android
defect

Tracking

(Not tracked)

People

(Reporter: zmckenney, Assigned: m_kato, NeedInfo)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

Fenix -sourcepath is always using : for create_javadoc which causes it to break on Windows (which should use ;).

Additional Docs:

https://gitlab.kitware.com/cmake/cmake/-/merge_requests/3967
https://stackoverflow.com/questions/3692567/unable-to-use-javadoc-sourcepath-with-multiple-paths

It's actually the gradle-apilint internal configuration of the Javadoc task. The issue is at https://github.com/mozilla-mobile/gradle-apilint/blob/8b24554912917526c5899ecc58948d6819fcf7b9/apilint/src/main/groovy/org/mozilla/apilint/ApiCompatLintTask.groovy#L53 -- that needs to use File.pathSeparator or not specify, which is equivalent.

Summary: Fenix Linter broken on Windows builds due to javadoc sourcepath with multiple paths → `apilint` broken on Windows builds due to internal javadoc `sourcepath` with multiple paths and incorrect path separator

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)
Attached file GitHub Pull Request
Assignee: nobody → m_kato

Also, we have to change text format of api.txt.map since ":" is drive separator on Windows, or use better regex in apilint.py.

Attachment #9405820 - Attachment description: GitHub Pull Request → Improve parsing map text for Windows

We have to make a request to upload apidoc-plugin into maven.mozilla.org, like bug 1727585.

> Task :geckoview:apiGenerateWithGeckoBinariesDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':geckoview:apiGenerateWithGeckoBinariesDebug'.
> Could not resolve all files for configuration ':geckoview:apidoc-plugin'.
   > Could not find org.mozilla.apilint:apidoc-plugin:0.5.3.
     Searched in the following locations:
       - https://maven.mozilla.org/maven2/org/mozilla/apilint/apidoc-plugin/0.5.3/apidoc-plugin-0.5.3.pom
       - https://maven.google.com/org/mozilla/apilint/apidoc-plugin/0.5.3/apidoc-plugin-0.5.3.pom
       - https://repo.maven.apache.org/maven2/org/mozilla/apilint/apidoc-plugin/0.5.3/apidoc-plugin-0.5.3.pom
       - https://plugins.gradle.org/m2/org/mozilla/apilint/apidoc-plugin/0.5.3/apidoc-plugin-0.5.3.pom
     Required by:
         project :geckoview

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Depends on: 1901360
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: