From e6ad46cbfbe7e4de592d580038529a850965ac16 Mon Sep 17 00:00:00 2001 From: Valera V Harseko Date: Tue, 19 Mar 2024 16:41:06 +0300 Subject: [PATCH] Add build.yml fix range cache --- .../framework/local/AsyncLocalConnectorInfoManager.java | 4 ++++ .../framework/local/AsyncLocalConnectorInfoManagerTest.java | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManager.java b/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManager.java index 956dbad3..920acfec 100644 --- a/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManager.java +++ b/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManager.java @@ -65,13 +65,16 @@ public void addConnectorInfo(LocalConnectorInfoImpl connectorInfo) { } public void addConnectorBundle(Collection connectorBundleURLs) { + logger.info("add {0}",connectorBundleURLs); final List workingInfo = new ArrayList(); for (URL url : connectorBundleURLs) { WorkingBundleInfo info = null; try { if ("file".equals(url.getProtocol())) { final File file = new File(url.toURI()); + logger.info("file {0}",file); if (file.isDirectory()) { + logger.info("isDirectory {0}",file); info = processDirectory(file); } } @@ -81,6 +84,7 @@ public void addConnectorBundle(Collection connectorBundleURLs) { } catch (URISyntaxException e) { throw new ConfigurationException("Invalid bundleURL: " + url.toExternalForm(), e); } + logger.info("workingInfo {0}",info); workingInfo.add(info); } WorkingBundleInfo.resolve(workingInfo); diff --git a/OpenICF-java-framework/connector-framework-server/src/test/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManagerTest.java b/OpenICF-java-framework/connector-framework-server/src/test/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManagerTest.java index a3463738..76e72a98 100644 --- a/OpenICF-java-framework/connector-framework-server/src/test/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManagerTest.java +++ b/OpenICF-java-framework/connector-framework-server/src/test/java/org/forgerock/openicf/framework/local/AsyncLocalConnectorInfoManagerTest.java @@ -164,8 +164,6 @@ public void testConnectorBundleRange() throws Exception { "org.identityconnectors.testconnector.TstConnector").setBundleVersion( "[1.0,2.0)").build()); System.out.println("2"); - System.out.println(manager); - System.out.println(bundle10); manager.addConnectorBundle(bundle10); System.out.println("3"); Assert.assertFalse(keyRangePromise.isCancelled());