Commit 4fcb36c5 authored by Ittai Zeidman's avatar Ittai Zeidman Committed by Feng Xiao

remove PACKAGE_NAME and REPOSITORY_NAME deprecated usage (#4650)

parent 2ee7c455
...@@ -266,8 +266,8 @@ def internal_gen_well_known_protos_java(srcs): ...@@ -266,8 +266,8 @@ def internal_gen_well_known_protos_java(srcs):
Args: Args:
srcs: the well known protos srcs: the well known protos
""" """
root = Label("%s//protobuf_java" % (REPOSITORY_NAME)).workspace_root root = Label("%s//protobuf_java" % (native.repository_name())).workspace_root
pkg = PACKAGE_NAME + "/" if PACKAGE_NAME else "" pkg = native.package_name() + "/" if native.package_name() else ""
if root == "": if root == "":
include = " -I%ssrc " % pkg include = " -I%ssrc " % pkg
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment