libcore: java_resource_dirs -> java_resources

Before this CL, core resources were included via java_resource_dirs. This makes
it difficult to add additional individual files / filegroups from elsewhere
(needed for bug 135431432).

This CL uses java_resources instead. Because the luni/ resources are currently
mixed-in with .java source files, whereas ojluni/ resources are in their own
resources/ subdirectory, this CL lists the luni resource paths explicitly but
uses a glob to collect the ojluni/ resources. I have a separate draft CL to
move the luni resources to a resources/ subdirectory, but am not yet sure
whether I should upload it for review.

Bug: 135431432
Test: Checked that the following md5sums don't change as part of this CL:
make core-all core-oj core-libart && md5sum \
out/soong/.intermediates/libcore/core-oj/android_common/withres/core-oj.jar \
out/soong/.intermediates/libcore/core-libart/android_common/withres/core-libart.jar

Change-Id: Ie9f0fcc63c8c2db12011323c2fa549b13f1383a1
1 file changed