Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
simulators
RMIModelServer
Commits
cd4ac295
Commit
cd4ac295
authored
Dec 12, 2019
by
Jean Meurice
Browse files
autopilots->softwares rename fix
parent
743eee97
Pipeline
#218222
passed with stage
in 3 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/rwth/monticore/EmbeddedMontiArc/simulators/rmimodelserver/RMIServer.java
View file @
cd4ac295
...
...
@@ -59,9 +59,9 @@ public class RMIServer {
return
;
}
File
autopilot
_folder
=
new
File
(
options
.
containsKey
(
"
autopilot
s_folder"
)
?
options
.
get
(
"
autopilot
s_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
(
"
software
s_folder"
)
?
options
.
get
(
"
software
s_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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment