From 2115483f68c7e97388a01c24a3e0be5a7f076305 Mon Sep 17 00:00:00 2001 From: nathanael smiechowski Date: Mon, 28 Oct 2024 16:57:25 +0100 Subject: [PATCH] [FIX] missaved --- uml4net.xmi.Tests/UMLXmiReaderTestFixture.cs | 2 +- uml4net.xmireader/Cache/ExternalReferenceResolver.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uml4net.xmi.Tests/UMLXmiReaderTestFixture.cs b/uml4net.xmi.Tests/UMLXmiReaderTestFixture.cs index 2a19a30f..3266b0a6 100644 --- a/uml4net.xmi.Tests/UMLXmiReaderTestFixture.cs +++ b/uml4net.xmi.Tests/UMLXmiReaderTestFixture.cs @@ -67,7 +67,7 @@ public void Verify_that_UML_XMI_can_be_read() var rootPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "TestData"); using var reader = XmiReaderBuilder.Create() - .UsingSettings(x => x.RootDirectoryPath = rootPath) + .UsingSettings(x => x.LocalReferenceBasePath = rootPath) .WithLogger(this.loggerFactory) .Build(); diff --git a/uml4net.xmireader/Cache/ExternalReferenceResolver.cs b/uml4net.xmireader/Cache/ExternalReferenceResolver.cs index a1815a2b..61527c91 100644 --- a/uml4net.xmireader/Cache/ExternalReferenceResolver.cs +++ b/uml4net.xmireader/Cache/ExternalReferenceResolver.cs @@ -147,7 +147,7 @@ private Stream ResolveStream(string key, string context) private Stream ResolveRemoteResource(Uri uri, string context) { logger.LogWarning("The resource {resource} is a reference to a remote resource which is unsupported by the Uml4Net library. An attempt to load the resource locally will be made", context); - var localPath = Path.Combine(settings.RootDirectoryPath, Path.GetFileName(uri.AbsolutePath)); + var localPath = Path.Combine(settings.LocalReferenceBasePath, Path.GetFileName(uri.AbsolutePath)); return File.Exists(localPath) ? File.OpenRead(localPath) : null; }