Skip to content

Commit

Permalink
Merge pull request #25226 from dmatej/rar
Browse files Browse the repository at this point in the history
Fixed RarHandler - non-absolute URL to File conversion
  • Loading branch information
arjantijms authored Nov 25, 2024
2 parents db858ae + 27af2f9 commit 8e8c3e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation
* Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -150,7 +150,7 @@ private boolean isEmbedded(DeploymentContext context) {
public List<URI> getClassPathURIs(ReadableArchive archive) {
List<URI> uris = super.getClassPathURIs(archive);
try {
File archiveFile = new File(archive.getURI());
File archiveFile = new File(archive.getURI().getSchemeSpecificPart());
if (archiveFile.exists() && archiveFile.isDirectory()) {
// add top level jars
uris.addAll(ASClassLoaderUtil.getLibDirectoryJarURIs(archiveFile));
Expand Down

0 comments on commit 8e8c3e3

Please sign in to comment.