summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordimdim11 <[email protected]>2025-07-16 12:37:17 +0300
committerdimdim11 <[email protected]>2025-07-16 13:13:18 +0300
commitd8175c00924e486e95ffd0074a74eb924c136b11 (patch)
treeecd65aacc83a273c6c50a8764672d11e431f1743
parent55c11ab9fb01ce9102a0022b1171178c6345e6fa (diff)
Check present depends/outputs in command arg if it absolute plus to equal compare
Check present depends/outputs in command arg instead equal compare commit_hash:687360869faccb55866bbfdb1153190f89547952
-rw-r--r--build/export_generators/ide-gradle/codegen_run_java_program.jinja2
-rw-r--r--build/export_generators/ide-gradle/codegen_run_program.jinja4
2 files changed, 3 insertions, 3 deletions
diff --git a/build/export_generators/ide-gradle/codegen_run_java_program.jinja b/build/export_generators/ide-gradle/codegen_run_java_program.jinja
index a70957227e0..160d9f6d320 100644
--- a/build/export_generators/ide-gradle/codegen_run_java_program.jinja
+++ b/build/export_generators/ide-gradle/codegen_run_java_program.jinja
@@ -29,7 +29,7 @@ val {{ varprefix }}{{ run['_object_index'] }} = task<JavaExec>("{{ varprefix }}{
args = listOf(
{%- for arg in run.args -%}
{%- if not loop.first %}
-{%- if run.out_dir|select("eq", arg)|length or run.out|select("eq", arg)|length -%}
+{%- if (run.out_dir|select("eq", arg)|length) or (run.out_dir[0] == '/' and run.out_dir|select("in", arg)|length) or (run.out|select("eq", arg)|length) or (run.out[0] == '/' and run.out|select("in", arg)|length) -%}
{%- if proto_template %}
{{ PatchGeneratedProto(arg) }},
{%- else %}
diff --git a/build/export_generators/ide-gradle/codegen_run_program.jinja b/build/export_generators/ide-gradle/codegen_run_program.jinja
index 360a1f63548..0c20799f5be 100644
--- a/build/export_generators/ide-gradle/codegen_run_program.jinja
+++ b/build/export_generators/ide-gradle/codegen_run_program.jinja
@@ -15,9 +15,9 @@ val {{ varprefix }}{{ custom_run['_object_index'] }} = task<Exec>("{{ varprefix
commandLine("bash", "-c", listOf(
{%- for arg in custom_run.command -%}
-{%- if custom_run.depends|select("eq", arg)|length %}
+{%- if custom_run.depends|select("eq", arg)|length or custom_run.depends|select("in", arg)|length %}
{{ PatchRoots(arg, true) }}
-{%- elif custom_run.outputs|select("eq", arg)|length %}
+{%- elif custom_run.outputs|select("eq", arg)|length or custom_run.outputs|select("in", arg)|length %}
{%- if proto_template -%}
{#- generated proto put to prepared proto dir #}
{{ PatchGeneratedProto(arg) }}