diff options
author | Steven Parkes <smparkes@smparkes.net> | 2016-02-25 07:53:19 -0800 |
---|---|---|
committer | Steven Parkes <smparkes@smparkes.net> | 2016-03-10 15:04:46 -0800 |
commit | ea1886661e1ad607e7cac03f0e720c9ab337686e (patch) | |
tree | 99d86fa6043a5730b60f1cddd5942c6c2a0c2904 /BUILD | |
parent | 48ebb29a8ec118bf6b9ee39f6be42b57321c099a (diff) |
pass correct args to protoc for java wellknown protos when used as an external repository
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -22,6 +22,7 @@ load( "protobuf", "cc_proto_library", "py_proto_library", + "internal_gen_well_known_protos_java", "internal_protobuf_py_tests", ) @@ -457,16 +458,8 @@ cc_test( ################################################################################ # Java support ################################################################################ -genrule( - name = "gen_well_known_protos_java", +internal_gen_well_known_protos_java( srcs = WELL_KNOWN_PROTOS, - outs = [ - "wellknown.srcjar", - ], - cmd = "$(location :protoc) --java_out=$(@D)/wellknown.jar" + - " -Isrc $(SRCS) " + - " && mv $(@D)/wellknown.jar $(@D)/wellknown.srcjar", - tools = [":protoc"], ) java_library( |