code cleanup for bp2build java_binary with kt srcs
there is now support for resoure_strip_prefix in kt_jvm_library targets. Test: built AnalyzerKt and updated go ./bp2build tests Change-Id: I4a6fe45276d45519186b6f40a02db990511d6def
This commit is contained in:
@@ -221,6 +221,11 @@ func TestJavaBinaryHostKotlinWithResourceDir(t *testing.T) {
|
||||
"a.java",
|
||||
"b.kt",
|
||||
]`,
|
||||
"resources": `[
|
||||
"res/a.res",
|
||||
"res/dir1/b.res",
|
||||
]`,
|
||||
"resource_strip_prefix": `"res"`,
|
||||
"target_compatible_with": `select({
|
||||
"//build/bazel/platforms/os:android": ["@platforms//:incompatible"],
|
||||
"//conditions:default": [],
|
||||
@@ -229,11 +234,6 @@ func TestJavaBinaryHostKotlinWithResourceDir(t *testing.T) {
|
||||
MakeBazelTarget("java_binary", "java-binary-host", AttrNameToString{
|
||||
"main_class": `"com.android.test.MainClass"`,
|
||||
"runtime_deps": `[":java-binary-host_kt"]`,
|
||||
"resources": `[
|
||||
"res/a.res",
|
||||
"res/dir1/b.res",
|
||||
]`,
|
||||
"resource_strip_prefix": `"res"`,
|
||||
"target_compatible_with": `select({
|
||||
"//build/bazel/platforms/os:android": ["@platforms//:incompatible"],
|
||||
"//conditions:default": [],
|
||||
|
Reference in New Issue
Block a user