aboutsummaryrefslogtreecommitdiff
path: root/test/configuration/resource/configurationRoot
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2020-01-18 01:58:38 +0100
committerRoel Spilker <r.spilker@gmail.com>2020-01-20 14:12:03 +0100
commit0e583c0122d18285b858ec8cecc2e91a4f4feda0 (patch)
treed4d133231963f08f48f43621cad61e7dab7ce50b /test/configuration/resource/configurationRoot
parentdf4501a648f32111c6ee3ace1c826b3d3eef55a1 (diff)
downloadlombok-0e583c0122d18285b858ec8cecc2e91a4f4feda0.tar.gz
lombok-0e583c0122d18285b858ec8cecc2e91a4f4feda0.tar.bz2
lombok-0e583c0122d18285b858ec8cecc2e91a4f4feda0.zip
Config import: add support for environment variables
Diffstat (limited to 'test/configuration/resource/configurationRoot')
-rw-r--r--test/configuration/resource/configurationRoot/d1/d11/d111/directory/lombok.config1
-rw-r--r--test/configuration/resource/configurationRoot/d1/d11/d111/import1.config13
-rw-r--r--test/configuration/resource/configurationRoot/e1/environment.config1
-rw-r--r--test/configuration/resource/configurationRoot/err.txt1
-rw-r--r--test/configuration/resource/configurationRoot/home/home.config1
-rw-r--r--test/configuration/resource/configurationRoot/out.txt12
6 files changed, 22 insertions, 7 deletions
diff --git a/test/configuration/resource/configurationRoot/d1/d11/d111/directory/lombok.config b/test/configuration/resource/configurationRoot/d1/d11/d111/directory/lombok.config
new file mode 100644
index 00000000..bc262c59
--- /dev/null
+++ b/test/configuration/resource/configurationRoot/d1/d11/d111/directory/lombok.config
@@ -0,0 +1 @@
+lombok.accessors.prefix += x_ \ No newline at end of file
diff --git a/test/configuration/resource/configurationRoot/d1/d11/d111/import1.config b/test/configuration/resource/configurationRoot/d1/d11/d111/import1.config
index e94bd991..02e6cfae 100644
--- a/test/configuration/resource/configurationRoot/d1/d11/d111/import1.config
+++ b/test/configuration/resource/configurationRoot/d1/d11/d111/import1.config
@@ -1,6 +1,9 @@
-import missing
-import import1.config
-import ../d111/import1.config
-import ../../../archives/a1.jar
-lombok.accessors.prefix += z_
+import missing
+import import1.config
+import ../d111/import1.config
+import ../../../archives/a1.jar
+import directory
+import <env>/environment.config
+import ~/home.config
+lombok.accessors.prefix += z_
lombok.accessors.prefix += f \ No newline at end of file
diff --git a/test/configuration/resource/configurationRoot/e1/environment.config b/test/configuration/resource/configurationRoot/e1/environment.config
new file mode 100644
index 00000000..1436021c
--- /dev/null
+++ b/test/configuration/resource/configurationRoot/e1/environment.config
@@ -0,0 +1 @@
+lombok.accessors.prefix += e_ \ No newline at end of file
diff --git a/test/configuration/resource/configurationRoot/err.txt b/test/configuration/resource/configurationRoot/err.txt
index c17a6dea..4505dced 100644
--- a/test/configuration/resource/configurationRoot/err.txt
+++ b/test/configuration/resource/configurationRoot/err.txt
@@ -1,4 +1,5 @@
Problems in the configuration files:
- Imported file does not exist: import missing (BASE/d1/d11/d111/import1.config:1)
+- Imported file does not exist: import directory (BASE/d1/d11/d111/import1.config:5)
- Import is not valid: import /illegal (BASE/archives/a1.jar!lombok.config:2)
- Imported file does not exist: import nonexisting (BASE/archives/a1.jar!d1/include.config:2) \ No newline at end of file
diff --git a/test/configuration/resource/configurationRoot/home/home.config b/test/configuration/resource/configurationRoot/home/home.config
new file mode 100644
index 00000000..4a190b56
--- /dev/null
+++ b/test/configuration/resource/configurationRoot/home/home.config
@@ -0,0 +1 @@
+lombok.accessors.prefix += h_ \ No newline at end of file
diff --git a/test/configuration/resource/configurationRoot/out.txt b/test/configuration/resource/configurationRoot/out.txt
index 19dc1e2d..bcb468c2 100644
--- a/test/configuration/resource/configurationRoot/out.txt
+++ b/test/configuration/resource/configurationRoot/out.txt
@@ -51,15 +51,23 @@ clear lombok.accessors.chain
# 3: clear lombok.accessors.chain
# Strip this field prefix, like 'f' or 'm_', from the names of generated getters and setters.
+lombok.accessors.prefix += e_
+lombok.accessors.prefix += h_
lombok.accessors.prefix += z_
lombok.accessors.prefix += f
lombok.accessors.prefix += m_
# BASE/d1/d11/lombok.config (stopped bubbling):
# 5: lombok.accessors.prefix += f
#
+# BASE/e1/environment.config (imported from BASE/d1/d11/d111/import1.config:6):
+# 1: lombok.accessors.prefix += e_
+#
+# BASE/home/home.config (imported from BASE/d1/d11/d111/import1.config:7):
+# 1: lombok.accessors.prefix += h_
+#
# BASE/d1/d11/d111/import1.config (imported from BASE/d1/d11/d111/lombok.config:1):
-# 5: lombok.accessors.prefix += z_
-# 6: lombok.accessors.prefix += f
+# 8: lombok.accessors.prefix += z_
+# 9: lombok.accessors.prefix += f
#
# BASE/d1/d11/d111/lombok.config:
# 4: lombok.accessors.prefix += m_