Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit faf5d068 authored by Harald Martini's avatar Harald Martini
Browse files

Changed paths in Primary & Interim to relative paths

parent 4e0dea94
No related branches found
No related tags found
No related merge requests found
......@@ -293,8 +293,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
FileVersion = JSONJobHeader.PrimaryAndInterimVersion
},
Body = new JSONJobBody() {
PrimaryVehicle = PrimaryInputPath,
InterimStage = StageInputPath
PrimaryVehicle = PathHelper.GetRelativePath(path, PrimaryInputPath),
InterimStage = PathHelper.GetRelativePath(path, StageInputPath)
}
};
......
{
"Header": {
"CreatedBy": "Harry",
"Date": "2021-08-02T00:00:00+02:00",
"Date": "2021-08-03T00:00:00+02:00",
"AppVersion": "Vecto3GUI2020",
"FileVersion": 10
},
"Body": {
"PrimaryVehicle": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\vecto_vehicle-primary_heavyBus-sample_Diesel.xml",
"InterimStage": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-stage_input_full-sample_final_noNG.xml",
"PrimaryVehicle": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\vecto_vehicle-primary_heavyBus-sample_Diesel.xml",
"InterimStage": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-stage_input_full-sample_final_noNG.xml",
"Completed": false
}
}
\ No newline at end of file
{
"Header": {
"CreatedBy": "Harry",
"Date": "2021-08-02T00:00:00+02:00",
"Date": "2021-08-03T00:00:00+02:00",
"AppVersion": "Vecto3GUI2020",
"FileVersion": 10
},
"Body": {
"PrimaryVehicle": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\vecto_vehicle-primary_heavyBus-sample.xml",
"InterimStage": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-stage_input_full-sample_final.xml",
"PrimaryVehicle": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\vecto_vehicle-primary_heavyBus-sample.xml",
"InterimStage": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-stage_input_full-sample_final.xml",
"Completed": false
}
}
\ No newline at end of file
{
"Header": {
"CreatedBy": "Harry",
"Date": "2021-07-28T00:00:00+02:00",
"Date": "2021-08-03T00:00:00+02:00",
"AppVersion": "Vecto3GUI2020",
"FileVersion": 10
},
"Body": {
"PrimaryVehicle": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\exempted_primary_heavyBus.xml",
"InterimStage": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-exempted_input_full-sample.xml",
"PrimaryVehicle": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\exempted_primary_heavyBus.xml",
"InterimStage": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-exempted_input_full-sample.xml",
"Completed": false
}
}
\ No newline at end of file
{
"Header": {
"CreatedBy": "Harry",
"Date": "2021-07-15T00:00:00+02:00",
"Date": "2021-08-03T00:00:00+02:00",
"AppVersion": "Vecto3GUI2020",
"FileVersion": 10
},
"Body": {
"PrimaryVehicle": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\vecto_vehicle-primary_heavyBus-sample.xml",
"InterimStage": "C:\\Users\\Harry\\source\\repos\\vecto-dev\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-stage_input_full-sample.xml",
"PrimaryVehicle": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.6_Buses\\vecto_vehicle-primary_heavyBus-sample_Diesel.xml",
"InterimStage": "..\\..\\VectoCore\\VectoCoreTest\\TestData\\XML\\XMLReaderDeclaration\\SchemaVersion2.8\\vecto_vehicle-stage_input_full-sample.xml",
"Completed": false
}
}
\ No newline at end of file
......@@ -1164,7 +1164,9 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
_primaryVehicleInputDataPath = Body.GetEx<string>(JsonKeys.PrimaryVehicle);
_primaryVehicleInputDataPath = PathHelper.GetAbsolutePath(filename, _primaryVehicleInputDataPath);
_stageInputDataPath = Body.GetEx<string>(JsonKeys.InterimStage);
_stageInputDataPath = PathHelper.GetAbsolutePath(filename, _stageInputDataPath);
_completed = Body.GetValueOrDefault<bool>(JsonKeys.Completed);
}
......
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