Skip to content

Commit

Permalink
[FIX] missaved
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanael smiechowski committed Oct 28, 2024
1 parent 45a3850 commit 2115483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uml4net.xmi.Tests/UMLXmiReaderTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion uml4net.xmireader/Cache/ExternalReferenceResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2115483

Please sign in to comment.