-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add finding BlockFactory feature in model loading #805
Conversation
Codecov Report
@@ Coverage Diff @@
## master #805 +/- ##
============================================
+ Coverage 70.27% 70.37% +0.10%
- Complexity 4963 4991 +28
============================================
Files 486 486
Lines 21793 21873 +80
Branches 2263 2277 +14
============================================
+ Hits 15314 15394 +80
Misses 5279 5279
Partials 1200 1200
Continue to review full report at Codecov.
|
// we only consider .class files and skip .java files | ||
List<Path> jarFiles = | ||
Files.list(path) | ||
.filter(p -> p.toString().endsWith(".jar")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it it possible we have some other type of file as well ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only scan on the .class files. These mostly only live in Java jars.
Change-Id: I87e2c31443a7f2c21874b16991f91e539832a2b7
Description
Support BlockFactory searching and loading in the current Model directory. This method should work on:
We will scan through this and figure out if there is a class implements BlockFactory.