コード例 #1
0
 public static void basic_putenv(Object name, Object value) {
   String name_string = SmartEiffelRuntime.NullTerminatedBytesToString(name);
   String value_string = SmartEiffelRuntime.NullTerminatedBytesToString(value);
   Properties props = System.getProperties();
   props.put(name_string, value_string);
   System.setProperties(props);
   return;
 }
コード例 #2
0
 public static int basic_system_execute_command(Object system_command_line) {
   String scl = SmartEiffelRuntime.NullTerminatedBytesToString(system_command_line);
   Process process;
   try {
     process = Runtime.getRuntime().exec(scl);
     process.waitFor();
   } catch (Exception e) {
     System.err.print("SmartEiffelRuntime: basic_system_execute_command(\"");
     System.err.print(scl);
     System.err.println("\") failed.");
     SmartEiffelRuntime.print_run_time_stack();
     System.err.println("Try to continue execution.");
   }
   return 0;
 }