Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

If a rule contains all files in the directory, name it after the directory and use a glob #9

Open
cgrushko opened this issue Sep 22, 2017 · 0 comments

Comments

@cgrushko
Copy link
Contributor

That is, instead of

java_test(
    name = "JavaBuildRule_0a5e5865c4cb7b46",
    srcs = [
        "ParallelCollectTest.java",
        "ParallelDoOnNextTryTest.java",
        "ParallelFilterTest.java",
        "ParallelFilterTryTest.java",
        "ParallelFlowableTest.java",
        "ParallelFromPublisherTest.java",
        "ParallelInvalid.java",
        "ParallelJoinTest.java",
        "ParallelMapTest.java",
        "ParallelMapTryTest.java",
        "ParallelPeekTest.java",
        "ParallelReduceFullTest.java",
        "ParallelReduceTest.java",
        "ParallelRunOnTest.java",
        "ParallelSortedJoinTest.java",
    ],
    deps = [
        "//src/main/java/io/reactivex:JavaBuildRule_702766528d9e97ce",
        "//src/test/java/io/reactivex/exceptions:JavaBuildRule_4ef8b1dd986b3f53",
    ],
)

we should have

java_test(
    name = "parallel",
    srcs = glob(["*.java"]),
    deps = [
        "//src/main/java/io/reactivex:JavaBuildRule_702766528d9e97ce",
        "//src/test/java/io/reactivex/exceptions:JavaBuildRule_4ef8b1dd986b3f53",
    ],
)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant