diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-10-04 09:45:58 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-10-04 10:14:21 +0300 |
commit | dbec1d3c5ffa5a96dda559ad51ea32ab217cdea9 (patch) | |
tree | 113db22ba8b03b11bb40ec4ae2055903f4c14eb6 | |
parent | 7f8a7705f725a78bc94ec3cf24f24efe0beeae18 (diff) | |
download | ydb-dbec1d3c5ffa5a96dda559ad51ea32ab217cdea9.tar.gz |
add SRCDIR to missing dir from JAVA_SRCS
-rw-r--r-- | build/plugins/java.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/build/plugins/java.py b/build/plugins/java.py index c4bf4fa4f8..30727e7c49 100644 --- a/build/plugins/java.py +++ b/build/plugins/java.py @@ -291,19 +291,14 @@ def on_check_java_srcdir(unit, *args): arc_srcdir = os.path.join(unit.get('MODDIR'), arg) abs_srcdir = unit.resolve(os.path.join("$S/", arc_srcdir)) if not os.path.exists(abs_srcdir) or not os.path.isdir(abs_srcdir): - ymake.report_configure_error( - 'Trying to set a [[alt1]]JAVA_SRCS[[rst]] for a missing directory: [[imp]]$S/{}[[rst]]', - missing_dir=arc_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): - ymake.report_configure_error( - 'Trying to set a [[alt1]]JAVA_SRCS[[rst]] for a missing directory: [[imp]]{}[[rst]]', missing_dir=srcdir - ) + unit.onsrcdir(os.path.join('${ARCADIA_ROOT}', abs_srcdir[3:])) def on_fill_jar_copy_resources_cmd(unit, *args): |