diff options
author | ajmichael <ajmichael@google.com> | 2017-11-16 09:37:13 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-11-16 09:39:11 -0800 |
commit | f241929014afa80a99be572275464ea126bac94e (patch) | |
tree | e9bfa31d393668dcc1263b739648fab0ab4834ed /src/test/java/com/google | |
parent | 3651c90c72e4cf57dd2b26600ea825064f720fdb (diff) |
Build databinding annotation processor in host configuration.
Also, add a fake databinding processor target.
Bazel users will need to do something like this:
# WORKSPACE
local_repository(
name = "databinding",
path = "./databinding",
)
bind(
name = "databinding_annotation_processor",
actual = "@databinding//:annotation_processor",
)
# databinding/BUILD
java_plugin(
name = "annotation_processor",
...
)
...
https://github.com/bazelbuild/bazel/issues/2694
RELNOTES: None
PiperOrigin-RevId: 175975110
Diffstat (limited to 'src/test/java/com/google')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/rules/android/AndroidDataBindingTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/android/AndroidDataBindingTest.java b/src/test/java/com/google/devtools/build/lib/rules/android/AndroidDataBindingTest.java index e39ac4ddee..e8c4115f85 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/android/AndroidDataBindingTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/android/AndroidDataBindingTest.java @@ -284,4 +284,11 @@ public class AndroidDataBindingTest extends AndroidBuildViewTestCase { "package android.binary; public class MyApp {};"); assertThat(getConfiguredTarget("//java/android/binary:app")).isNotNull(); } + + @Test + public void testNoJvmFragment() throws Exception { + writeDataBindingFiles(); + useConfiguration("--experimental_disable_jvm"); + assertThat(getConfiguredTarget("//java/android/binary:app")).isNotNull(); + } } |