aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authordimdim11 <dimdim11@yandex-team.com>2023-11-16 13:30:01 +0300
committerdimdim11 <dimdim11@yandex-team.com>2023-11-16 14:03:42 +0300
commitf40b5b37ab2895b4af2d5ddd43efabcb3a2df31f (patch)
treed98e943da03d2ee0e1eda4d6d4d461d5d6519cb3 /build
parentb97a33413d2c0fb35d9c57b75dda5715d2339824 (diff)
downloadydb-f40b5b37ab2895b4af2d5ddd43efabcb3a2df31f.tar.gz
Default JAVA_SRCS for java tests
Diffstat (limited to 'build')
-rw-r--r--build/conf/java.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/build/conf/java.conf b/build/conf/java.conf
index 53fa44a2a6..331d53cac7 100644
--- a/build/conf/java.conf
+++ b/build/conf/java.conf
@@ -301,6 +301,21 @@ macro DEFAULT_JAVA_SRCS_LAYOUT() {
SET_APPEND(JAVA_SRCS_VALUE $ARGS_DELIM SRCDIR src/main/resources **/* RESOURCES)
}
+# tag:java-specific
+### @usage: DEFAULT_JUNIT_JAVA_SRCS_LAYOUT()
+###
+### DEFAULT_JUNIT_JAVA_SRCS_LAYOUT() declare all test source files can be find at maven/gradle standard path src/test/java **/*.java
+### and all resources can be find at maven/gradle standard path src/test/resources **/*
+macro DEFAULT_JUNIT_JAVA_SRCS_LAYOUT() {
+ # Maven default test source paths, supported by gradle too
+ _JAVA_SRCS(SRCDIR java **/*.java SKIP_CHECK_SRCDIR)
+ # Fill JAVA_SRCS_VALUE for ya ide idea
+ SET_APPEND(JAVA_SRCS_VALUE $ARGS_DELIM SRCDIR java **/*.java)
+ _JAVA_SRCS(SRCDIR resources **/* RESOURCES SKIP_CHECK_SRCDIR)
+ # Fill JAVA_SRCS_VALUE for ya ide idea
+ SET_APPEND(JAVA_SRCS_VALUE $ARGS_DELIM SRCDIR resources **/* RESOURCES)
+}
+
macro _HASH_HELPER(Args...) {
.CMD=${hash:Args}
.SEM=${hash:Args}