You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it is assumed that the returned URL contains a file path. However, the class may have been loaded from another source. Unfortunately, there is no getParent in URL but perhaps you could use toURI().resolve("../../..") instead.
The text was updated successfully, but these errors were encountered:
Hello @moritz-bruder, could you add some background context on what issue this piece of code is causing. Perhaps with a reproducible example? This code may or may not have issues and I haven't paid detailed attention to it, but knowing the context will help us understand if there are better ways to deal with it.
We are trying to make Quarkus work on JamaicaVM. However, the code source for builtin classes is not a URL with the file protocol in our case. The code in QuarkusEntryPoint seems to get the working directory through the code source (the path of the jar in this case). Am I right in that assumption? I am afraid it may not be easy to provide an example to you.
Would it be possible to check if the protocol is file and if not use a fallback path? For example, the current working directory or a property.
In
quarkus/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/QuarkusEntryPoint.java
Lines 30 to 32 in cac51a6
URL
contains a file path. However, the class may have been loaded from another source. Unfortunately, there is nogetParent
inURL
but perhaps you could usetoURI().resolve("../../..")
instead.The text was updated successfully, but these errors were encountered: