blob: 9103329c338c637049718b6978248d60f8cfcb64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
{%- if move_files|length -%}
{%- for move in move_files -%}
{%- set src = move.args[0] -%}
{%- set dst = move.args[1] %}
val {{ varprefix }}{{ move['_object_index'] }} = tasks.register("{{ varprefix }}{{ move['_object_index'] }}") {
doLast {
file({{ PatchRoots(src, move['flags']|select("eq", "src_is_depend")|length) }}).renameTo(file({{ PatchRoots(dst) }}))
}
}
{% endfor -%}
{%- endif -%}
|