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

Update JarFileLoader.java #8

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public JarTree loadDependencyTree(File sourceFile, File origionalSourceFile) thr
// if we loaded the jar details then we will use them later, but if we didn't
// then fall back to trying to get them from the pom
if (jarFileIdentifiedJarVerion == null) {
if (pomXMLEntry.isEmpty()) {
if (!pomXMLEntry.isPresent()) {
throw new JarFIleProcessorException("Unfortunately jar file " + sourceFile.getPath()
+ " does not containe a usable pom.properties file or pom.xml file, cannot process this jar file");
}
Expand All @@ -131,7 +131,7 @@ public JarTree loadDependencyTree(File sourceFile, File origionalSourceFile) thr
}
// have to check for the pom file directly as we may have gotten the info from
// the pom.properties file
if (pomXMLEntry.isEmpty()) {
if (!pomXMLEntry.isPresent()) {
throw new JarFIleProcessorException("Unfortunately jar file " + sourceFile.getPath()
+ " does not containe a pom.xml file, cannot process this jar file");
}
Expand Down