Skip to content

Commit d3461a7

Browse files
committed
devonfw#238: improve logging of ToolRepositoryMock as suggested by ndemirca
1 parent 194a993 commit d3461a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/src/test/java/com/devonfw/tools/ide/repo/ToolRepositoryMock.java

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public Path download(String tool, String edition, VersionIdentifier version) {
5757
Path editionFolder = this.repositoryFolder.resolve(tool).resolve(edition);
5858
Path versionFolder = editionFolder.resolve(version.toString());
5959
if (!Files.isDirectory(versionFolder)) {
60+
this.context.debug("Could not find version {} so using 'default' for {}/{}", version, tool, edition);
6061
versionFolder = editionFolder.resolve("default");
6162
}
6263
if (!Files.isDirectory(versionFolder)) {
@@ -74,6 +75,8 @@ public Path download(String tool, String edition, VersionIdentifier version) {
7475
Path child = iterator.next();
7576
if (Files.isRegularFile(child) && child.getFileName().startsWith("content.")) {
7677
contentArchive = child;
78+
this.context.debug("Using compressed archive {} for mock download of {}/{}", child.getFileName(), tool,
79+
edition);
7780
} else {
7881
break;
7982
}

0 commit comments

Comments
 (0)