@@ -490,7 +490,7 @@ private String[] getExecutableList() {
490
490
}
491
491
exec_list .add ("-classpath" );
492
492
exec_list .add (System .getProperty ("java.class.path" ));
493
- exec_list .add (GraalPythonMain . class . getName ());
493
+ exec_list .add (getMainClass ());
494
494
if (relaunchArgs != null ) {
495
495
exec_list .addAll (relaunchArgs );
496
496
}
@@ -1026,7 +1026,7 @@ private static void setupTerminal(ConsoleHandler consoleHandler) {
1026
1026
* Some system properties have already been read at this point, so to change them, we just
1027
1027
* re-execute the process with the additional options.
1028
1028
*/
1029
- private static void subExec (List <String > args , List <String > subProcessDefs ) {
1029
+ private void subExec (List <String > args , List <String > subProcessDefs ) {
1030
1030
List <String > cmd = getCmdline (args , subProcessDefs );
1031
1031
try {
1032
1032
System .exit (new ProcessBuilder (cmd .toArray (new String [0 ])).inheritIO ().start ().waitFor ());
@@ -1037,7 +1037,7 @@ private static void subExec(List<String> args, List<String> subProcessDefs) {
1037
1037
}
1038
1038
}
1039
1039
1040
- static List <String > getCmdline (List <String > args , List <String > subProcessDefs ) {
1040
+ private List <String > getCmdline (List <String > args , List <String > subProcessDefs ) {
1041
1041
List <String > cmd = new ArrayList <>();
1042
1042
if (isAOT ()) {
1043
1043
cmd .add (ProcessProperties .getExecutableName ());
@@ -1064,7 +1064,7 @@ static List<String> getCmdline(List<String> args, List<String> subProcessDefs) {
1064
1064
assert subProcArg .startsWith ("D" ) || subProcArg .startsWith ("agent" );
1065
1065
cmd .add ("-" + subProcArg );
1066
1066
}
1067
- cmd .add (GraalPythonMain . class . getName ());
1067
+ cmd .add (getMainClass ());
1068
1068
}
1069
1069
1070
1070
cmd .addAll (args );
0 commit comments