aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/ide-gradle/build.gradle.kts.jinja
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2024-01-18 11:28:56 +0100
committerGitHub <noreply@github.com>2024-01-18 11:28:56 +0100
commit9d0a3761b3201e0d9db879a7adf91876ebdb0564 (patch)
tree541d11ac878c18efd7ebca81e35112aa0fef995b /build/export_generators/ide-gradle/build.gradle.kts.jinja
parent404ef8886ecc9736bc58ade6da2fbd83b486a408 (diff)
downloadydb-9d0a3761b3201e0d9db879a7adf91876ebdb0564.tar.gz
Library import 8 (#1074)
* Library import 8 * Add contrib/libs/cxxsupp/libcxx/include/__verbose_abort
Diffstat (limited to 'build/export_generators/ide-gradle/build.gradle.kts.jinja')
-rw-r--r--build/export_generators/ide-gradle/build.gradle.kts.jinja46
1 files changed, 46 insertions, 0 deletions
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.jinja b/build/export_generators/ide-gradle/build.gradle.kts.jinja
index de22a0f850..dd57a390f1 100644
--- a/build/export_generators/ide-gradle/build.gradle.kts.jinja
+++ b/build/export_generators/ide-gradle/build.gradle.kts.jinja
@@ -100,6 +100,52 @@ tasks.test {
}
}
+{% set runs = targets|selectattr("runs") -%}
+{% if runs -%}
+{% for run in runs -%}
+tasks.build.dependsOn(
+ task<JavaExec>("runJavaProgram") {
+ group = "build"
+ description = "Code generation by rub java program"
+
+ mainClass.set(mainClass)
+{% if run.classpath -%}
+ classpath = "{{ run.classpath }}"
+{% else -%}
+ classpath = sourceSets.main.get().runtimeClasspath
+{% endif -%}
+{% if run.args -%}
+{# for arg in run.args #}
+ args = "{{ run.args }}"
+{% endif -%}
+{% if run.in_dir -%}
+{% for dir in run.in_dir -%}
+ inputs.files(fileTree("{{ dir }}"))
+{% endfor -%}
+{% endif -%}
+{% if run.in -%}
+{% for file in run.in -%}
+ inputs.files("{{ file }}")
+{% endfor -%}
+{% endif -%}
+{% if run.out_dir -%}
+{% for dir in run.out_dir -%}
+ outputs.dir("{{ dir }}")
+{% endfor -%}
+{#
+ Не использованы аттрибуты
+ run-cwd="str"
+ run-in_dirs_inputs="list"
+ run-in_noparse="list"
+ run-out_dir="list"
+ run-tool="list"
+#}
+{% endif -%}
+ }
+)
+{% endfor -%}
+{% endif -%}
+
val testsJar by tasks.registering(Jar::class) {
dependsOn(JavaPlugin.COMPILE_TEST_JAVA_TASK_NAME)
archiveClassifier.set("tests")