- Add a new command "ravenhelper", which performs different functions
depending on the first argument ("subcommand") just like the git command.
- For now, it has one subcommand "pta" -- policy-to-annotation, which
reads the policy file and add corresponding annotations to the java
source files.
- This will also add classes to ravenwood-annotation-allowed-classes.txt
as needed.
- Use the f/b/r/scripts/pta-framework.sh script to run it.
- For safety and easier testing/debugging, the command actually won't
directly update any files. Instead, it'll generate a shell script which
does so, using sed(1).
Here's an example script: https://paste.googleplex.com/6561708886458368?raw
Bug: 388607679
Flag: EXEMPT host test change only
Test: ./frameworks/base/ravenwood/scripts/pta-framework.sh, and
manually check /tmp/pta.sh
Change-Id: I5dcf078ca47eb373bcaf435ef133335f44bce6b3
15 lines
847 B
Plaintext
15 lines
847 B
Plaintext
# Ravenwood "policy" file for services.core.
|
|
|
|
# The "no-pta" marker is used to exclude the lines from "ravenhelper pta",
|
|
# which tries to convert policies to annotations.
|
|
|
|
# Auto-generated from XSD
|
|
class com.android.server.compat.config.Change keepclass # no-pta
|
|
class com.android.server.compat.config.Config keepclass # no-pta
|
|
class com.android.server.compat.config.XmlParser keepclass # no-pta
|
|
class com.android.server.compat.overrides.ChangeOverrides keepclass # no-pta
|
|
class com.android.server.compat.overrides.OverrideValue keepclass # no-pta
|
|
class com.android.server.compat.overrides.Overrides keepclass # no-pta
|
|
class com.android.server.compat.overrides.RawOverrideValue keepclass # no-pta
|
|
class com.android.server.compat.overrides.XmlParser keepclass # no-pta
|
|
class com.android.server.compat.overrides.XmlWriter keepclass # no-pta |