logic: Added SourceGroupCustomCommand to use with SourcetrailDB binaries

* Added new Source Group type SourceGroupCustomCommand to UI and ProjectSettings
* The Source Group executes a specified command on every source file
* The variables $SOURCE_PATH, $PROJECT_PATH, $DB_PATH, $STORAGE_VERSION can be passed
* The commands are executed after all other source groups finished indexing
* The command is executed with working directory set to project directory
* Errors during command execution are shown as status update and in the Status View
* SourceGroupCustomCommand cannot be partially cleared, when one file needs clearing the project must be fully re-indexed
This commit is contained in:
Eberhard Graether
2018-12-11 14:05:26 +01:00
parent 21d947ed6c
commit 6d5a3c047d
101 changed files with 1108 additions and 235 deletions
+11
View File
@@ -174,6 +174,8 @@ add_files(
data/indexer/IndexerBase.h
data/indexer/IndexerCommand.cpp
data/indexer/IndexerCommand.h
data/indexer/IndexerCommandCustom.cpp
data/indexer/IndexerCommandCustom.h
data/indexer/IndexerCommandProvider.cpp
data/indexer/IndexerCommandProvider.h
data/indexer/IndexerCommandType.cpp
@@ -185,6 +187,8 @@ add_files(
data/indexer/MemoryIndexerCommandProvider.h
data/indexer/TaskBuildIndex.cpp
data/indexer/TaskBuildIndex.h
data/indexer/TaskExecuteCustomCommands.cpp
data/indexer/TaskExecuteCustomCommands.h
data/indexer/TaskFillIndexerCommandQueue.cpp
data/indexer/TaskFillIndexerCommandQueue.h
@@ -298,10 +302,14 @@ add_files(
project/RefreshInfoGenerator.cpp
project/SourceGroup.cpp
project/SourceGroup.h
project/SourceGroupCustomCommand.cpp
project/SourceGroupCustomCommand.h
project/SourceGroupFactory.cpp
project/SourceGroupFactory.h
project/SourceGroupFactoryModule.cpp
project/SourceGroupFactoryModule.h
project/SourceGroupFactoryModuleCustom.cpp
project/SourceGroupFactoryModuleCustom.h
settings/migration/SettingsMigration.cpp
settings/migration/SettingsMigration.h
@@ -325,12 +333,15 @@ add_files(
settings/Settings.h
settings/SourceGroupSettings.cpp
settings/SourceGroupSettings.h
settings/SourceGroupSettingsBase.h
settings/SourceGroupSettingsCxx.cpp
settings/SourceGroupSettingsCxx.h
settings/SourceGroupSettingsCEmpty.cpp
settings/SourceGroupSettingsCEmpty.h
settings/SourceGroupSettingsCppEmpty.cpp
settings/SourceGroupSettingsCppEmpty.h
settings/SourceGroupSettingsCustomCommand.cpp
settings/SourceGroupSettingsCustomCommand.h
settings/SourceGroupSettingsCxxCdb.cpp
settings/SourceGroupSettingsCxxCdb.h
settings/SourceGroupSettingsCxxCdbVs.cpp