Since we have over 100 unique schemas across the OS, it would be incredibly tedious to try migrating all that logic to use the more efficient TypedXmlSerializer and TypedXmlPullParser interfaces. To aid this migration process, this change adds Refaster templates that offer to refactor matching existing code in a no-op fashion. This change also upgrades Error Prone to the latest release. Bug: 171832118 Test: manual Change-Id: Ic93a46d646edee98af7d0e2f7891d931fca4825f
12 lines
441 B
Bash
Executable File
12 lines
441 B
Bash
Executable File
|
|
paths=(
|
|
$ANDROID_BUILD_TOP/out/soong/.intermediates/frameworks/base/framework/android_common/turbine-combined/framework.jar
|
|
$ANDROID_BUILD_TOP/out/soong/.intermediates/libcore/core-all/android_common/turbine-combined/core-all.jar
|
|
$ANDROID_BUILD_TOP/external/error_prone/error_prone/error_prone_refaster-2.4.0.jar
|
|
)
|
|
|
|
javac -cp "$(IFS=:; echo "${paths[*]}")" \
|
|
"-Xplugin:RefasterRuleCompiler --out $1.refaster" $1
|
|
|
|
rm *.class
|