Through this utility some functions that are also available in the F12 debug option menu, are now directly callable thourgh the command line.
Supports:
"""
Available commands:
EXPORT_LOCATIONSETS - Export location sets as csv files
LOG_UNUSED_FILES - Log unused workflow and module config files
LOG_OBSOLETE_MODULES - Log obsolete modules and explorer plugins
LOG_DUPLICATE_KEYSTROKES - Log keystrokes in explorer tasks used elsewhere
VALIDATE_CONFIG_FILES - Validate config files (similar to WFN)"""
"""
Usage: FewsCLI regionpath=<path or name of region folder>
[systemtime=<system time (yyyy-MM-dd HH:mm:ssZ)>] [loglevel=<debug, info, warn, error>]
COMMAND
"""
N.B.: Regionpath is expected to contain a path to a .zip file containing only the Config dir.
%BINPATH%\windows\Delft-FEWSc.exe -Xmx1G "-Wclasspath.1=%BATCHDIR%\patch.jar" "-Wclasspath.2=%BINPATH%\*.jar" -Wmain.class=nl.wldelft.fews.tools.FewsConfigCLI ARGS
Tested with:
C:\FEWS\main\bin\windows\Delft-FEWSc.exe -Xmx1G -Wclasspath.1=C:\FEWS_omgevingen\FEWS-Conform\patch.jar -Wclasspath.2=C:\FEWS\main\bin\*.jar -Wmain.class=nl.wldelft.fews.tools.FewsConfigCLI regionpath=C:\FEWS_omgevingen\FEWS-Conform\Fews-Conform-Config.zip LOG_DUPLICATE_KEYSTROKES