Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
olpaw committed Dec 5, 2023
1 parent 5c0bfba commit e7ee334
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2110,12 +2110,17 @@ private void addImageClasspathEntry(LinkedHashSet<Path> destination, Path classp

Path classpathEntryFinal = useBundle() ? bundleSupport.substituteClassPath(classpathEntry) : classpathEntry;
if (!imageClasspath.contains(classpathEntryFinal) && !customImageClasspath.contains(classpathEntryFinal)) {
/*
* Maintain correct order by adding entry before processing its potential "Class-Path"
* attributes from META-INF/MANIFEST.MF (in case the entry is a jar-file).
*/
boolean added = destination.add(classpathEntryFinal);
if (ClasspathUtils.isJar(classpathEntryFinal)) {
processJarManifestMainAttributes(classpathEntryFinal, (jarFilePath, attributes) -> handleClassPathAttribute(destination, jarFilePath, attributes));
}
boolean ignore = processClasspathNativeImageMetaInf(classpathEntryFinal);
if (added && ignore) {
boolean forcedOnModulePath = processClasspathNativeImageMetaInf(classpathEntryFinal);
if (added && forcedOnModulePath) {
/* Entry makes use of ForceOnModulePath. Undo adding to classpath. */
destination.remove(classpathEntryFinal);
}
}
Expand Down

0 comments on commit e7ee334

Please sign in to comment.