Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

undx
Copy link
Member

@undx undx commented Dec 17, 2024

This comment has been minimized.

Copy link

sonar-eks bot commented Jan 9, 2025

Failed

  • 66.67% Coverage on New Code (is less than 80.00%)

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage 66.67% Coverage (55.20% Estimated after merge)
  • Duplications 0.00% Duplicated Code (1.30% Estimated after merge)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

.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)) {
Copy link
Contributor

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");
Copy link
Contributor

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?

Copy link
Contributor

@ozhelezniak-talend ozhelezniak-talend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants