commands: { copy_before: { from: "out/soong/.intermediates/external/protobuf/aprotoc/linux_glibc_x86_64/aprotoc" to: "tools/out/bin/aprotoc" executable: false } copy_before: { from: "platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/profile.proto" to: "platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/profile.proto" } copy_before: { from: "platform_testing/tests/health/scenarios/tests/assets/scenarios_sample_profile.textpb" to: "platform_testing/tests/health/scenarios/tests/assets/scenarios_sample_profile.textpb" } chdir: true command: "out_dir=$(dirname __SBOX_SANDBOX_DIR__/out/sample-profiles-common.jar) && assets_dir=\"assets\" && mkdir -p $out_dir/$assets_dir && src_protos=(platform_testing/tests/health/scenarios/tests/assets/scenarios_sample_profile.textpb) && for file in ${src_protos[@]} ; do fname=$(basename $file) && if ! (__SBOX_SANDBOX_DIR__/tools/out/bin/aprotoc --encode=longevity.profile.Configuration platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/profile.proto < $file > $out_dir/$assets_dir/${fname//.textpb/.pb}) ; then echo \"\x1b[0;31mFailed to parse profile $file. See above for errors.\x1b[0m\" && exit 1 ; fi ; done && jar cf __SBOX_SANDBOX_DIR__/out/sample-profiles-common.jar -C $(dirname __SBOX_SANDBOX_DIR__/out/sample-profiles-common.jar) $assets_dir" copy_after: { from: "out/sample-profiles-common.jar" to: "out/soong/.intermediates/platform_testing/tests/health/scenarios/tests/common-profile-text-protos/android_common/gen/sample-profiles-common.jar" } input_hash: "65ef07af405e4502550f6e31260578dac6e0143599a558e3bde8e7f7c131d33a" env: { name: "PATH" inherit: true } env: { name: "JAVA_HOME" inherit: true } env: { name: "TMPDIR" inherit: true } env: { name: "RBE_log_dir" inherit: true } env: { name: "RBE_platform" inherit: true } env: { name: "RBE_server_address" inherit: true } env: { name: "RBE_exec_root" inherit: true } env: { name: "OUT_DIR" value: "out" } dont_inherit_env: true }