aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/ide-gradle/settings.gradle.kts.jinja
diff options
context:
space:
mode:
authordimdim11 <dimdim11@yandex-team.com>2024-11-19 21:08:37 +0300
committerdimdim11 <dimdim11@yandex-team.com>2024-11-19 22:02:29 +0300
commiteeb83c06f0d172098bc3a45f7df907a6f8df9826 (patch)
tree21035dede1e2a07c1c282796ec7d79f4302da133 /build/export_generators/ide-gradle/settings.gradle.kts.jinja
parent7adbae591523da629a126b139a0673bedd6411c1 (diff)
downloadydb-eeb83c06f0d172098bc3a45f7df907a6f8df9826.tar.gz
Fix javac flags, full support of RUN_JAVA_PROGRAM
Fix javac flags, full support of RUN_JAVA_PROGRAM commit_hash:0d9cc80fef351cb6c25839b90c34483448ecbe7c
Diffstat (limited to 'build/export_generators/ide-gradle/settings.gradle.kts.jinja')
-rw-r--r--build/export_generators/ide-gradle/settings.gradle.kts.jinja8
1 files changed, 5 insertions, 3 deletions
diff --git a/build/export_generators/ide-gradle/settings.gradle.kts.jinja b/build/export_generators/ide-gradle/settings.gradle.kts.jinja
index 677de2592a..74a19ccc62 100644
--- a/build/export_generators/ide-gradle/settings.gradle.kts.jinja
+++ b/build/export_generators/ide-gradle/settings.gradle.kts.jinja
@@ -1,9 +1,11 @@
rootProject.name = "{{ project_name }}"
-{% for subdir in subdirs -%}
-{%- set classname = subdir | replace("/", ":") %}
+{% if subdirs|length > 1 -%}
+{%- for subdir in subdirs -%}
+{%- set classname = subdir | replace("/", ":") %}
include(":{{ classname }}")
project(":{{ classname }}").projectDir = file("{{ arcadia_root }}/{{ subdir }}")
-{% endfor -%}
+{% endfor -%}
+{%- endif -%}
{%- include "[generator]/debug.jinja" ignore missing -%}