Skip to content

Commit

Permalink
Add platform loader to Maven Mojo provided class file locator.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Aug 9, 2023
1 parent 4a5bdc0 commit e72c091
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ private Plugin.Engine.Summary apply(File root,
EntryPoint entryPoint = (initialization == null ? new Initialization() : initialization).getEntryPoint(classLoaderResolver, project.getGroupId(), project.getArtifactId(), managed == null ? project.getVersion() : managed, project.getPackaging());
getLog().info("Resolved entry point: " + entryPoint);
List<ClassFileLocator> classFileLocators = new ArrayList<ClassFileLocator>(classPath.size());
classFileLocators.add(ClassFileLocator.ForClassLoader.ofPlatformLoader());
for (String target : classPath) {
File artifact = new File(target);
classFileLocators.add(artifact.isFile() ? ClassFileLocator.ForJarFile.of(artifact) : new ClassFileLocator.ForFolder(artifact));
Expand Down

0 comments on commit e72c091

Please sign in to comment.