diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-12-12 15:00:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 15:00:43 +0000 |
commit | 42701242eaf5be980cb935631586d0e90b82641c (patch) | |
tree | 6dbf5fcd37d3c16591e196c4a69d166e3ab3a398 /build/export_generators/ide-gradle/run_java_program.jinja | |
parent | 7f5a9f394dbd9ac290cabbb7977538656b3a541e (diff) | |
parent | f7c04b5876af3d16849ab5e3079c0eabbd4e3a00 (diff) | |
download | ydb-42701242eaf5be980cb935631586d0e90b82641c.tar.gz |
Merge pull request #12554 from vitalyisaev2/YQ-3839.with_rightlib.3
Import from Arcadia + YDB FQ: turning gateways_config.proto into a file without external dependencies
Diffstat (limited to 'build/export_generators/ide-gradle/run_java_program.jinja')
-rw-r--r-- | build/export_generators/ide-gradle/run_java_program.jinja | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/export_generators/ide-gradle/run_java_program.jinja b/build/export_generators/ide-gradle/run_java_program.jinja index a28ba73bc5..6f0597a86a 100644 --- a/build/export_generators/ide-gradle/run_java_program.jinja +++ b/build/export_generators/ide-gradle/run_java_program.jinja @@ -4,14 +4,14 @@ val runJav{{ loop.index }} = task<JavaExec>("runJavaProgram{{ loop.index }}") { group = "build" description = "Code generation by run java program" -{%- if run.classpath|length %} -{% for classpath in run.classpath -%} +{%- set classpaths = run.classpath|reject('eq', '@.cplst') -%} +{%- if classpaths|length -%} +{% for classpath in classpaths -%} {%- set rel_file_classpath = classpath|replace('@', '')|replace(export_root, '')|replace(arcadia_root, '') %} + val classpaths = "$project_root/" + File("$project_root{{ rel_file_classpath }}").readText().trim().replace(":", ":$project_root/") classpath = files(classpaths.split(":")) {%- endfor -%} -{% else %} - classpath = sourceSets.main.get().runtimeClasspath {%- endif %} mainClass.set("{{ run.args[0] }}") |