Make the linter use a JAXB jar instead of the deprecated module.

The linter loads JAXB classes (in the javax.xml.bind package) at
runtime. Prior to this change, it was getting them by using
--add-modules=java.xml-bind. This works with an OpenJDK 9 toolchain,
but that module is deprecated, and it is removed in OpenJDK 11, so
this approach doesn't work with an upgraded toolchain. This change
drops the --add-modules option, and instead adds a JAR containing the
JAXB classes. This works on all toolchain versions.

Test: prebuilts/devtools/tools/lint packages/apps/Contacts
Bug: 135179316
Change-Id: I8ee090152e75a6d0f7fd89bdb95a70539cd556a0
1 file changed
tree: 55a19319df65b91d5d79c01ab6efb51ba7b01a8e
  1. adt/
  2. notices/
  3. repository/
  4. tools/
  5. OWNERS
  6. update_jars.sh