build: renaming to sourcetrail

This commit is contained in:
Andreas Stallinger
2017-04-07 13:19:09 +02:00
parent 8391a6da57
commit 045a259b2e
224 changed files with 885 additions and 4271 deletions
@@ -23,23 +23,23 @@ CommandLineParser::CommandLineParser(int argc, char** argv, const std::string& v
std::string projectfile_db;
std::string licensefile;
std::string licensetext;
po::options_description desc("Coati");
po::options_description desc("Sourcetrail");
desc.add_options()
("help,h", "Print this help message")
("version,v", "Version of Coati")
("project,p", "Load Coati with a Coatiprojectfile")
("version,v", "Version of Sourcetrail")
("project,p", "Load Sourcetrail with a Sourcetrailprojectfile")
;
po::positional_options_description positionalOption;
positionalOption.add("project-file", 1);
po::options_description hidden_desc("hidden commandlineflags");
hidden_desc.add_options()
("force,f", "Force coati to parse if database exists")
("force,f", "Force sourcetrail to parse if database exists")
("licenseFile,z", po::value<std::string>(&licensefile), "Enter license via Licensefile")
("license,l", po::value<std::string>(&licensetext), "Enter licenes via commandline")
("hidden", "Print this help message with hidden arguments")
("database,d", "Start coati to parse a Coati projectfile to get a coatidatabase")
("project-file", po::value<std::string>(&projectfile), "Coati project file");
("database,d", "Start sourcetrail to parse a Sourcetrail projectfile to get a sourcetraildatabase")
("project-file", po::value<std::string>(&projectfile), "Sourcetrail project file");
;
po::options_description all("Allowed options");
all.add(desc).add(hidden_desc);
@@ -87,7 +87,7 @@ CommandLineParser::CommandLineParser(int argc, char** argv, const std::string& v
if (vm.count("version"))
{
std::cout << "Coati Version " << version << std::endl;
std::cout << "Sourcetrail Version " << version << std::endl;
m_quit = true;
}
@@ -159,7 +159,7 @@ void CommandLineParser::processProjectfile(const std::string& file)
return;
}
if (projectfile.extension() != ".coatiproject")
if (projectfile.extension() != ".srctrlprj" && projectfile.extension() != ".coatiproject")
{
m_errorString = errorstring + " has a wrong fileending";
return;
@@ -177,7 +177,8 @@ void CommandLineParser::processProjectfile(const std::string& file)
void CommandLineParser::projectLoad()
{
if (m_projectFile.exists() && m_projectFile.extension() == ".coatiproject")
if (m_projectFile.exists() &&
(m_projectFile.extension() == ".srctrlprj" || m_projectFile.extension() == ".coatiproject"))
{
MessageLoadProject(m_projectFile.str(), m_force).dispatch();
}
@@ -8,7 +8,7 @@
#include "InterprocessUtility.h"
#include "SharedQueue.h"
std::string InterprocessDataManager::m_sharedArgumentQueueName = "coati_parser_arguments";
std::string InterprocessDataManager::m_sharedArgumentQueueName = "sourcetrail_parser_arguments";
InterprocessDataManager::InterprocessDataManager(const bool isOwner)
: m_isOwner(isOwner)
@@ -35,9 +35,9 @@ protected:
std::string m_containerName;
};
const std::string SharedContainer::m_memoryNamePrefix("coati_memory_");
const std::string SharedContainer::m_memoryNamePrefix("sourcetrail_memory_");
const std::string SharedContainer::m_containerNamePrefix("coati_container_");
const std::string SharedContainer::m_containerNamePrefix("sourcetrail_container_");
std::string SharedContainer::getMemoryNamePrefix()
{
+1 -1
View File
@@ -31,7 +31,7 @@ void LogManager::setLoggingEnabled(bool enabled)
{
if (enabled)
{
LOG_INFO("Enabled logging for Coati " + Version::getApplicationVersion().toDisplayString());
LOG_INFO("Enabled logging for Sourcetrail " + Version::getApplicationVersion().toDisplayString());
MessageStatus("Enabled console and file logging.").dispatch();
}
else