Skip to content

Commit abd6179

Browse files
committed
fixed issue with processFileList file path
1 parent dd62b81 commit abd6179

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Upcoming changes...
1313

14+
## [0.5.5] - 2023-10-25
15+
### Fixed
16+
- Fixed issue with `processFileList` file path
17+
1418
## [0.5.4] - 2023-10-23
1519
### Added
1620
- Added extra debug information to scanning
@@ -58,3 +62,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5862
[0.5.2]: https://github.com/scanoss/scanoss.java/compare/v0.5.1...v0.5.2
5963
[0.5.3]: https://github.com/scanoss/scanoss.java/compare/v0.5.2...v0.5.3
6064
[0.5.4]: https://github.com/scanoss/scanoss.java/compare/v0.5.3...v0.5.4
65+
[0.5.5]: https://github.com/scanoss/scanoss.java/compare/v0.5.4...v0.5.5

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.scanoss</groupId>
88
<artifactId>scanoss</artifactId>
9-
<version>0.5.4</version>
9+
<version>0.5.5</version>
1010
<packaging>jar</packaging>
1111
<name>scanoss.java</name>
1212
<url>https://github.com/scanoss/scanoss.java</url>

src/main/java/com/scanoss/Scanner.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,9 @@ public List<String> processFileList(@NonNull String root, @NonNull List<String>
316316
Path fullPath = Path.of(root, file);
317317
File f = fullPath.toFile();
318318
if (f.exists() && f.isFile() && f.length() > 0 && ! Files.isSymbolicLink(fullPath)) {
319-
log.debug("Adding file to processing list: {}", file);
320-
Future<String> future = executorService.submit(() -> processor.process(file, stripDirectory(root, file)));
319+
String filename = f.toString();
320+
log.debug("Adding file to processing list: {} - {}", file, filename);
321+
Future<String> future = executorService.submit(() -> processor.process(filename, stripDirectory(root, filename)));
321322
futures.add(future);
322323
}
323324
}

0 commit comments

Comments
 (0)