build file updates to support bazel 0.21

Change-Id: I79d3900fc8c14dbecff249cec139754115186352
This commit is contained in:
Ray Milkey 2019-01-02 10:50:45 -08:00 committed by Thomas Vachuska
parent 4fcd5ddffb
commit 76c9bce47f
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
build --nouse_ijars
build --experimental_strict_action_env
build --incompatible_package_name_is_a_function=false
test --test_summary=terse
test --test_output=errors
test --test_verbose_timeout_warnings

View File

@ -61,7 +61,7 @@ def generate_test_rules(
if (test in flaky_tests) or ("flaky" in tags):
flaky = 1
java_class = _package_from_path(
PACKAGE_NAME + "/" + _strip_right(test, ".java"),
native.package_name() + "/" + _strip_right(test, ".java"),
)
package = java_class[:java_class.rfind(".")]
native.java_test(