Skip to content

Commit

Permalink
Merge pull request quarkusio#38017 from geoand/entrypoint-charset
Browse files Browse the repository at this point in the history
Use UTF-8 constant in QuarkusEntryPoint
  • Loading branch information
geoand authored Jan 4, 2024
2 parents 2e6fe10 + 2248e39 commit 99212ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.net.URL;
import java.net.URLClassLoader;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
Expand Down Expand Up @@ -39,7 +40,7 @@ public static void main(String... args) throws Throwable {
private static void doRun(Object args) throws IOException, ClassNotFoundException, IllegalAccessException,
InvocationTargetException, NoSuchMethodException {
String path = QuarkusEntryPoint.class.getProtectionDomain().getCodeSource().getLocation().getPath();
String decodedPath = URLDecoder.decode(path, "UTF-8");
String decodedPath = URLDecoder.decode(path, StandardCharsets.UTF_8);
Path appRoot = new File(decodedPath).toPath().getParent().getParent().getParent();

if (Boolean.parseBoolean(System.getenv("QUARKUS_LAUNCH_DEVMODE"))) {
Expand Down

0 comments on commit 99212ba

Please sign in to comment.