Skip to content

Commit

Permalink
fixed issue with processFileList file path
Browse files Browse the repository at this point in the history
  • Loading branch information
eeisegn committed Oct 25, 2023
1 parent dd62b81 commit abd6179
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Upcoming changes...

## [0.5.5] - 2023-10-25
### Fixed
- Fixed issue with `processFileList` file path

## [0.5.4] - 2023-10-23
### Added
- Added extra debug information to scanning
Expand Down Expand Up @@ -58,3 +62,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[0.5.2]: https://github.com/scanoss/scanoss.java/compare/v0.5.1...v0.5.2
[0.5.3]: https://github.com/scanoss/scanoss.java/compare/v0.5.2...v0.5.3
[0.5.4]: https://github.com/scanoss/scanoss.java/compare/v0.5.3...v0.5.4
[0.5.5]: https://github.com/scanoss/scanoss.java/compare/v0.5.4...v0.5.5
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.scanoss</groupId>
<artifactId>scanoss</artifactId>
<version>0.5.4</version>
<version>0.5.5</version>
<packaging>jar</packaging>
<name>scanoss.java</name>
<url>https://github.com/scanoss/scanoss.java</url>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/scanoss/Scanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ public List<String> processFileList(@NonNull String root, @NonNull List<String>
Path fullPath = Path.of(root, file);
File f = fullPath.toFile();
if (f.exists() && f.isFile() && f.length() > 0 && ! Files.isSymbolicLink(fullPath)) {
log.debug("Adding file to processing list: {}", file);
Future<String> future = executorService.submit(() -> processor.process(file, stripDirectory(root, file)));
String filename = f.toString();
log.debug("Adding file to processing list: {} - {}", file, filename);
Future<String> future = executorService.submit(() -> processor.process(filename, stripDirectory(root, filename)));
futures.add(future);
}
}
Expand Down

0 comments on commit abd6179

Please sign in to comment.