From 091d14bd73e4da1d2b3e34f0648eaa63473c3b1c Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 15 Jan 2020 00:53:20 +0100 Subject: Config import: Allow imports in lombok.config --- test/core/src/lombok/LombokTestSource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/core/src') diff --git a/test/core/src/lombok/LombokTestSource.java b/test/core/src/lombok/LombokTestSource.java index ba0aa972..d7d86a1b 100644 --- a/test/core/src/lombok/LombokTestSource.java +++ b/test/core/src/lombok/LombokTestSource.java @@ -41,6 +41,7 @@ import org.junit.Assert; import lombok.core.LombokImmutableList; import lombok.core.configuration.BubblingConfigurationResolver; +import lombok.core.configuration.ConfigurationParser.Context; import lombok.core.configuration.ConfigurationProblemReporter; import lombok.core.configuration.ConfigurationResolver; import lombok.core.configuration.StringConfigurationSource; @@ -244,7 +245,7 @@ public class LombokTestSource { } }; - this.configuration = new BubblingConfigurationResolver(Collections.singleton(StringConfigurationSource.forString(conf, reporter, file.getAbsolutePath()))); + this.configuration = new BubblingConfigurationResolver(Collections.singleton(StringConfigurationSource.forString(conf, reporter, Context.fromFile(file)))); this.formatPreferences = Collections.unmodifiableMap(formats); } -- cgit