Skip to content

Commit

Permalink
Use UTF-8 constant in QuarkusEntryPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jan 4, 2024
1 parent 5aeb2ed commit 2248e39
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 2248e39

Please sign in to comment.