File tree Expand file tree Collapse file tree 7 files changed +32
-8
lines changed
test/java/com/mageddo/dnsproxyserver/sandbox Expand file tree Collapse file tree 7 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 1- ## 5.4 .0
1+ ## 5.5 .0
22* Releasing JRE Docker Image Version
3+ * Enabling DPS to run on any JRE 21+
34
45## 5.3.0
56* Docker Solver: Specify Preferred Networks to use when solving container IP #662
Original file line number Diff line number Diff line change 1- version =5.4 .0-snapshot
1+ version =5.5 .0-snapshot
Original file line number Diff line number Diff line change 33import java .nio .file .Files ;
44import java .nio .file .Path ;
55
6+ import com .mageddo .graalvm .ImageInfo ;
67import com .mageddo .utils .Runtime ;
78
89import org .apache .commons .exec .CommandLine ;
910import org .apache .commons .lang3 .Validate ;
10- import org .graalvm .nativeimage .ImageInfo ;
1111
1212import lombok .SneakyThrows ;
1313import lombok .extern .slf4j .Slf4j ;
Original file line number Diff line number Diff line change 1+ package com .mageddo .graalvm ;
2+
3+ public class ImageInfo {
4+
5+ public static boolean inImageRuntimeCode () {
6+ return "runtime" .equals (System .getProperty ("org.graalvm.nativeimage.imagecode" ));
7+ }
8+
9+ }
Original file line number Diff line number Diff line change 1+ package com .mageddo .graalvm ;
2+
3+ import java .nio .file .Path ;
4+ import java .nio .file .Paths ;
5+
6+ import static org .graalvm .nativeimage .ProcessProperties .getExecutableName ;
7+
8+ public class ProcessProperties {
9+ public static Path getRunningPath () {
10+ return Paths .get (getExecutableName ())
11+ .getParent ();
12+ }
13+ }
Original file line number Diff line number Diff line change 44import java .nio .file .Path ;
55import java .nio .file .Paths ;
66
7+ import com .mageddo .graalvm .ImageInfo ;
8+ import com .mageddo .graalvm .ProcessProperties ;
9+
710import org .apache .commons .lang3 .ObjectUtils ;
8- import org .graalvm .nativeimage .ImageInfo ;
9- import org .graalvm .nativeimage .ProcessProperties ;
1011
1112import lombok .SneakyThrows ;
1213
@@ -33,8 +34,7 @@ public static Path getRunningPath() {
3334
3435 public static Path getRunningDir () {
3536 if (ImageInfo .inImageRuntimeCode ()) {
36- return Paths .get (ProcessProperties .getExecutableName ())
37- .getParent ();
37+ return ProcessProperties .getRunningPath ();
3838 }
3939 final var path = getRunningPath ();
4040 if (isJar (path )) {
Original file line number Diff line number Diff line change 11package com .mageddo .dnsproxyserver .sandbox ;
22
3- import org .graalvm .nativeimage .ImageInfo ;
3+ import com .mageddo .graalvm .ImageInfo ;
4+
45import org .junit .jupiter .api .Test ;
56
67import static org .junit .jupiter .api .Assertions .assertTrue ;
You can’t perform that action at this time.
0 commit comments