Skip to content
Snippets Groups Projects
Commit cd4ac295 authored by Jean Meurice's avatar Jean Meurice
Browse files

autopilots->softwares rename fix

parent 743eee97
No related branches found
No related tags found
1 merge request!13autopilots->softwares rename fix
Pipeline #218222 passed
......@@ -59,9 +59,9 @@ public class RMIServer {
return;
}
File autopilot_folder = new File(options.containsKey("autopilots_folder") ? options.get("autopilots_folder") : "autopilots");
if (!autopilot_folder.exists()){
System.out.printf("The autopilot folder %s does not exist\n", autopilot_folder);
File softwares_folder = new File(options.containsKey("softwares_folder") ? options.get("softwares_folder") : "autopilots");
if (!softwares_folder.exists()){
System.out.printf("The autopilot folder %s does not exist\n", softwares_folder);
return;
}
......@@ -71,10 +71,10 @@ public class RMIServer {
SoftwareSimulatorConfig manager_config = new SoftwareSimulatorConfig();
try {// Load AutopilotAdapter.dll from libraryPath
manager_config.set_softwares_folder(autopilot_folder.getCanonicalPath());
manager_config.set_softwares_folder(softwares_folder.getCanonicalPath());
} catch (IOException e) {
e.printStackTrace();
System.out.println("Could not resolve the SoftwareSimulator's software folder path. ("+autopilot_folder+")");
System.out.println("Could not resolve the SoftwareSimulator's software folder path. ("+softwares_folder+")");
}
int port_id = Integer.valueOf(port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment