Issues.00328 - lordmundi/wikidoctest GitHub Wiki
00328: config file preprocessing and flattening capability
Summary: config file preprocessing and flattening capability
Created: 2011–03–21 12:35
Status: Released
Category: Request
From: frankie
Version: 2.1
Released_In: 2.2
Description:
this is a request for a pre-processing stage on config files such that all of the config files are pulled together and merged with all DEFINES ironed out into a final single file, which can be printed out or saved somewhere for debugging (i think i prefer printing to the console and also being able to see it under help→config file).
This would allow us to see the final flattened and merged config file before all other processing is done. Further, the internal functions that plugins call to get the list of config files could now be redirected to only return the one config file if the file I/O can be worked out. This would give more consistent behavior of plugins since they wouldn't all be doing their own config file processing.
The flattened config file could also have some sort of "#" comment at the end of each line with a number which maps to a filename using a legend at the top so that users can see what file provided which lines.
Comments
brad March 23, 2011, at 10:56 AM This has been implemented as the command line option "-config_out filename" that will output a composited and commented config file that includes all the input from all the config files used during a run. Each line in the ouput will have a comment appended to it indicating what line from which config file the line comes from with all embedded macros fully expanded.
Associated Commits
| commit | f51eab684b9d1055063711b98b93d6e4b6e1d1f9
link6 |
||
| Author: | Brad Bell
|
| Date: | Wed Mar 23 10:53:28 2011 -0500
|
| Message: | [@Issue 00328: Added the command line option '-config_out outfile' that will
write out a flattened commented config file @] |
Affected Files:
bin_Darwin/doug | Bin 1837412 -> 1842680 bytes
bin_Darwin/dsp_manager | Bin 528196 -> 529232 bytes
bin_Darwin/dsp_package | Bin 258408 -> 258408 bytes
bin_Darwin/dsp_server | Bin 360140 -> 365284 bytes
bin_Darwin/dsp_viewer | Bin 1230260 -> 1235412 bytes
bin_Linux_FC3/broadcaster2 | Bin 729646 -> 734611 bytes
bin_Linux_FC3/doug | Bin 675466 -> 675614 bytes
bin_Linux_FC3/dsp_manager | Bin 87518 -> 87518 bytes
bin_Linux_FC3/dsp_server | Bin 136329 -> 136329 bytes
bin_Linux_FC3/dsp_viewer | Bin 70063 -> 70063 bytes
bin_Win32/doug.exe | Bin 1814692 -> 1814887 bytes
bin_Win32/dsp_manager.exe | Bin 786127 -> 786639 bytes
bin_Win32/dsp_package.exe | Bin 867999 -> 867999 bytes
lib_Darwin/libd_comm_tc.a | Bin 484960 -> 484960 bytes
lib_Darwin/libdsp.a | Bin 948128 -> 957000 bytes
lib_Darwin/libviewer.a | Bin 1217232 -> 1217152 bytes
lib_Linux_FC3/libd_comm_tc.a | Bin 468596 -> 468596 bytes
lib_Linux_FC3/libd_comm_tc_s.so | Bin 322912 -> 322884 bytes
lib_Linux_FC3/libdsp.a | Bin 976640 -> 984386 bytes
lib_Linux_FC3/libdsp_s.so | Bin 817820 -> 825169 bytes
lib_Linux_FC3/libviewer.a | Bin 1079704 -> 1079680 bytes
lib_Linux_FC3/libviewer_s.so | Bin 911169 -> 911169 bytes
lib_Linux_FC3_x86_64/libd_comm_tc.a | Bin 1674760 -> 585400 bytes
lib_Linux_FC3_x86_64/libd_comm_tc_s.so | Bin 1095984 -> 385474 bytes
lib_Linux_FC3_x86_64/libdsp.a | Bin 1180360 -> 1192094 bytes
lib_Linux_FC3_x86_64/libdsp_s.so | Bin 651019 -> 658704 bytes
lib_Win32/libd_comm_tc.dll | Bin 592830 -> 592830 bytes
lib_Win32/libdsp.dll | Bin 2411443 -> 2436471 bytes
lib_Win32/libviewer.dll | Bin 2378380 -> 2411148 bytes
29 files changed, 0 insertions(+), 0 deletions(-)