[LOG4J2-1320] Custom plugins are not loaded, URL protocol vfs is not supported. Tweaks.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/e0330275 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/e0330275 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/e0330275 Branch: refs/heads/LOG4J2-1528 Commit: e0330275af40bd7e36b085ff03e108e9c5ed886c Parents: 4157ef8 Author: Gary Gregory <ggreg...@apache.org> Authored: Thu Aug 25 13:16:52 2016 -0700 Committer: Gary Gregory <ggreg...@apache.org> Committed: Thu Aug 25 13:16:52 2016 -0700 ---------------------------------------------------------------------- .../log4j/core/config/plugins/util/ResolverUtilTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e0330275/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/util/ResolverUtilTest.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/util/ResolverUtilTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/util/ResolverUtilTest.java index 76ab740..92e6ee9 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/util/ResolverUtilTest.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/util/ResolverUtilTest.java @@ -182,18 +182,18 @@ public class ResolverUtilTest { static File compile(String suffix) throws IOException { final File orig = new File("target/test-classes/customplugin/FixedStringLayout.java.source"); final File workDir = new File("target/resolverutil" + suffix); - final File javaFile = new File(workDir, "customplugin" + suffix + "/FixedString" + suffix + "Layout.java"); - final File parent = javaFile.getParentFile(); + final File f = new File(workDir, "customplugin" + suffix + "/FixedString" + suffix + "Layout.java"); + final File parent = f.getParentFile(); if (!parent.exists()) { - assertTrue("Create customplugin" + suffix + " folder KO", javaFile.getParentFile().mkdirs()); + assertTrue("Create customplugin" + suffix + " folder KO", f.getParentFile().mkdirs()); } String content = new String(Files.readAllBytes(orig.toPath())) .replaceAll("FixedString", "FixedString" + suffix) .replaceAll("customplugin", "customplugin" + suffix); - Files.write(javaFile.toPath(), content.getBytes()); + Files.write(f.toPath(), content.getBytes()); - PluginManagerPackagesTest.compile(javaFile); + PluginManagerPackagesTest.compile(f); return workDir; }