logic: maven project setup
* added option to create a Coati project from a Maven POM file * show list of indexed file paths in maven project setup * use FileManager to detect indexed files in project setup (except cdb) * added Maven path to preferences window and added path detectors. * fixed: QtDialogView::hideStatusDialog now also hides loader in status bar. * refactored ProjectType fortune cookie message = If you continually give, you will continually have.
This commit is contained in:
+23
-3
@@ -9,8 +9,6 @@
|
||||
#include "data/indexer/IndexerFactoryModuleCxxCdb.h"
|
||||
#include "data/indexer/IndexerFactoryModuleCxxManual.h"
|
||||
|
||||
|
||||
|
||||
#include "includes.h" // defines 'void setup(int argc, char *argv[])'
|
||||
#include "LicenseChecker.h"
|
||||
#include "qt/network/QtNetworkFactory.h"
|
||||
@@ -66,7 +64,27 @@ void prefillJavaRuntimePath()
|
||||
else
|
||||
{
|
||||
MessageStatus("Run Java runtime path detection, no path found.");
|
||||
std::cout << "no javapath" << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void prefillMavenExecutablePath()
|
||||
{
|
||||
std::shared_ptr<ApplicationSettings> settings = ApplicationSettings::getInstance();
|
||||
if (settings->getMavenPath().empty())
|
||||
{
|
||||
std::shared_ptr<CombinedPathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector();
|
||||
std::vector<FilePath> paths = mavenPathDetector->getPaths();
|
||||
if (!paths.empty())
|
||||
{
|
||||
MessageStatus("Run Maven executable path detection, found: " + paths.front().str());
|
||||
|
||||
settings->setMavenPath(paths.front().str());
|
||||
settings->save();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageStatus("Run Maven executable path detection, no path found.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -142,6 +160,7 @@ int main(int argc, char *argv[])
|
||||
});
|
||||
|
||||
prefillJavaRuntimePath();
|
||||
prefillMavenExecutablePath();
|
||||
prefillCxxHeaderPaths();
|
||||
prefillCxxFrameworkPaths();
|
||||
|
||||
@@ -203,6 +222,7 @@ int main(int argc, char *argv[])
|
||||
});
|
||||
|
||||
prefillJavaRuntimePath();
|
||||
prefillMavenExecutablePath();
|
||||
prefillCxxHeaderPaths();
|
||||
prefillCxxFrameworkPaths();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user