diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-10-06 09:27:55 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-10-06 09:53:55 +0300 |
commit | 26ca74bbdccfa2d88aa97bf24cb05b9ee8ee3200 (patch) | |
tree | 8c69b21cea2843558dc7aa65081c70225c39baa9 | |
parent | a15cbe4274d2af74c569bfc973e7330f81166ae3 (diff) | |
download | ydb-26ca74bbdccfa2d88aa97bf24cb05b9ee8ee3200.tar.gz |
fix typo
-rw-r--r-- | build/plugins/java.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/build/plugins/java.py b/build/plugins/java.py index 30727e7c499..471c9e48ee1 100644 --- a/build/plugins/java.py +++ b/build/plugins/java.py @@ -293,12 +293,11 @@ def on_check_java_srcdir(unit, *args): if not os.path.exists(abs_srcdir) or not os.path.isdir(abs_srcdir): unit.onsrcdir(os.path.join('${ARCADIA_ROOT}', arc_srcdir)) return - srcdir = unit.resolve_arc_path(arg) - if srcdir and not srcdir.startswith('$S'): - continue - abs_srcdir = unit.resolve(srcdir) if srcdir else unit.resolve(arg) - if not os.path.exists(abs_srcdir) or not os.path.isdir(abs_srcdir): - unit.onsrcdir(os.path.join('${ARCADIA_ROOT}', abs_srcdir[3:])) + srcdir = common.resolve_common_const(unit.resolve_arc_path(arg)) + if srcdir and srcdir.startswith('$S'): + abs_srcdir = unit.resolve(srcdir) + if not os.path.exists(abs_srcdir) or not os.path.isdir(abs_srcdir): + unit.onsrcdir(os.path.join('${ARCADIA_ROOT}', srcdir[3:])) def on_fill_jar_copy_resources_cmd(unit, *args): |