From d316c880b9020ee30517e138decbd6ee3f0ed7ac Mon Sep 17 00:00:00 2001 From: Doug Kelly Date: Mon, 3 Aug 2015 09:12:25 -0500 Subject: [PATCH] Add "target_suffix" to gerrit_plugin() The "target_suffix" parameter is added to the gerrit_plugin() definition as a way to facilitate a custom "post-build" type of step, such as with the Gitiles plugin, where the additional static files need to be moved into the root of the JAR file. Change-Id: I44ea892377c0099f6fada7fa77e3945bc9df3bfd --- tools/default.defs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/default.defs b/tools/default.defs index 543bf989e2..06f272749a 100644 --- a/tools/default.defs +++ b/tools/default.defs @@ -132,7 +132,8 @@ def gerrit_plugin( manifest_file = None, manifest_entries = [], type = 'plugin', - visibility = ['PUBLIC']): + visibility = ['PUBLIC'], + target_suffix = ''): tb = traceback.extract_stack() calling_BUCK_file = tb[-2][0] calling_BUCK_dir = os.path.abspath(os.path.dirname(calling_BUCK_file)) @@ -202,7 +203,7 @@ def gerrit_plugin( ) java_binary( - name = name, + name = name + target_suffix, manifest_file = ':%s__manifest' % name, merge_manifests = False, deps = [