-
Notifications
You must be signed in to change notification settings - Fork 50
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
feat(QTDI-693): manage nested jars #969
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Analysis Details0 IssuesCoverage and DuplicationsProject ID: org.talend.sdk.component:component-runtime |
.filter(Files::exists) | ||
.orElseGet(() -> PathFactory.get(System.getProperty("user.home")).resolve(".m2/repository")); | ||
// if we've defaulted to user home m2 (fallback), we want to check if we're in running in a fatjar | ||
if (PathFactory.get(System.getProperty("user.home")).resolve(".m2/repository").equals(rootRepo)) { |
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.
M2 repository path can be ovewritten by in settings.xml file
=> ${user.home}/.m2/repository might not be a path to the repository.
new BufferedReader(new InputStreamReader(url.openStream()))) { | ||
config.load(reader); | ||
filter = createScanningFilter(config); | ||
alreadyScannedClasses = config.getProperty("classes.list"); |
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.
should we "break" when we find the nested resource and create "filter" and "alreadyScannedClasses"?
because otherwise in case if we find more, the previous values will be overwritten
should we accumulate it maybe?
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.
left comments
https://qlik-dev.atlassian.net/browse/QTDI-693