diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-10 16:48:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:02 +0300 |
commit | a61e8c559b6b690a019253067224d595e3d642f1 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /build/plugins | |
parent | 659131349be7796c633c453b4d8b4fa20b8c6ee9 (diff) | |
download | ydb-a61e8c559b6b690a019253067224d595e3d642f1.tar.gz |
Restoring authorship annotation for <arcadia-devtools@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins')
-rw-r--r-- | build/plugins/java.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/plugins/java.py b/build/plugins/java.py index da751537d1..16fc126734 100644 --- a/build/plugins/java.py +++ b/build/plugins/java.py @@ -40,18 +40,18 @@ def on_run_jbuild_program(unit, *args): flat, kv = common.sort_by_keywords({'IN': -1, 'IN_DIR': -1, 'OUT': -1, 'OUT_DIR': -1, 'CWD': 1, 'CLASSPATH': -1, 'CP_USE_COMMAND_FILE': 1, 'ADD_SRCS_TO_CLASSPATH': 0}, args) depends = kv.get('CLASSPATH', []) + kv.get('JAR', []) - fake_out = None + fake_out = None if depends: # XXX: hack to force ymake to build dependencies - fake_out = "fake.out.{}".format(hash(tuple(args))) - unit.on_run_java(['TOOL'] + depends + ["OUT", fake_out]) + fake_out = "fake.out.{}".format(hash(tuple(args))) + unit.on_run_java(['TOOL'] + depends + ["OUT", fake_out]) if not kv.get('CP_USE_COMMAND_FILE'): args += ['CP_USE_COMMAND_FILE', unit.get(['JAVA_PROGRAM_CP_USE_COMMAND_FILE']) or 'yes'] - if fake_out is not None: - args += ['FAKE_OUT', fake_out] - + if fake_out is not None: + args += ['FAKE_OUT', fake_out] + prev = unit.get(['RUN_JAVA_PROGRAM_VALUE']) or '' new_val = (prev + ' ' + base64.b64encode(json.dumps(list(args), encoding='utf-8'))).strip() unit.set(['RUN_JAVA_PROGRAM_VALUE', new_val]) |