From f00418b4c2e139ac318cfd7b9e87a8da51c017d5 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 1 Oct 2023 10:51:25 -0700 Subject: [PATCH] Revert unwanted previous commit --- .../java/rife/bld/dependencies/ArtifactRetriever.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/rife/bld/dependencies/ArtifactRetriever.java b/src/main/java/rife/bld/dependencies/ArtifactRetriever.java index cf74e3b..7364fac 100644 --- a/src/main/java/rife/bld/dependencies/ArtifactRetriever.java +++ b/src/main/java/rife/bld/dependencies/ArtifactRetriever.java @@ -189,13 +189,7 @@ public abstract class ArtifactRetriever { } private static URLConnection openUrlConnection(RepositoryArtifact artifact) throws IOException { - String location; - if (artifact.location().matches("[a-z][a-z0-9+\\-.]*://.*")) { - location = artifact.location(); - } else { - location = new File(artifact.location()).toURI().toString(); - } - var connection = new URL(location).openConnection(); + var connection = new URL(artifact.location()).openConnection(); connection.setUseCaches(false); connection.setRequestProperty("User-Agent", "bld " + BldVersion.getVersion()); return connection;