Changed all files with hard-coded paths to a config-driven configuration
This commit is contained in:
@@ -7,18 +7,24 @@ Application settings are loaded from classpath properties files in `src/main/res
|
||||
| Key | Purpose | Current Default |
|
||||
|---|---|---|
|
||||
| `app.mode` | Generic mode flag | `test` |
|
||||
| `streaming.url` | Initial URL for pixel streaming view | `http://localhost` |
|
||||
| `python.path` | Python interpreter for simulator process | `C:\\Program Files\\PyManager\\python.exe` |
|
||||
| `mqtt.broker.url` | MQTT broker connection URL | `tcp://localhost:1883` |
|
||||
| `mqtt.client.id` | MQTT client identifier | `JavaClientPublisherSubscriber` |
|
||||
| `mqtt.topic` | MQTT topic to subscribe to | `PREDICTION` |
|
||||
| `mqtt_sim.enabled` | Enables simulator startup | `false` |
|
||||
| `mqtt_sim.script` | Simulator script path | `src/main/resources/scripts/mqtt_simulator.py` |
|
||||
| `animation.output.path` | Generated animation state file path | `data/animation.json` |
|
||||
| `unreal.enabled` | Enables Unreal startup flow | `true` |
|
||||
| `unreal.executable` | PowerShell script to start Unreal process | absolute path |
|
||||
| `unreal.signalling_server.script` | Signalling server BAT file path | absolute path |
|
||||
| `unreal.pid.file` | Unreal PID file for shutdown cleanup | absolute path |
|
||||
| `unreal.signalling.pid.file` | Signalling PID file for shutdown cleanup | absolute path |
|
||||
|
||||
Notes:
|
||||
|
||||
- MQTT broker host/port are currently hardcoded in Java (`MqttClientService`): `tcp://localhost:1883`.
|
||||
- Several Unreal-related paths are absolute and environment-specific.
|
||||
- Paths can be provided with or without wrapping quotes; startup sanitizes surrounding quotes.
|
||||
- Unreal-related defaults are environment-specific and should be replaced per machine.
|
||||
|
||||
## `logger.properties`
|
||||
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
# Known Issues
|
||||
|
||||
## 1. Hardcoded Environment Paths
|
||||
## 1. Environment-Specific Defaults
|
||||
|
||||
Several runtime paths are absolute and machine-specific:
|
||||
Configuration is now path-driven, but several default values in `application.properties` are still machine-specific:
|
||||
|
||||
- animation output file path in `AnimationFileService`
|
||||
- Unreal process script paths in `application.properties`
|
||||
- PID file cleanup paths in `ProcessManagerService`
|
||||
- Unreal startup script paths
|
||||
- Unreal/signalling PID file paths
|
||||
|
||||
Impact:
|
||||
|
||||
- project is not portable across machines without local path edits
|
||||
- configuration updates are required before first run on a different machine
|
||||
|
||||
## 2. Database Deleted on Shutdown
|
||||
|
||||
|
||||
Reference in New Issue
Block a user