logic: add auto-detection for JRE System Library
* fixed error columns are not saved to database correctly * implemented setting JRE System Library paths in app settings * added detector for JRE System Library that not use Java Runtime specified in AppSettings but detects JRE on its own by reusing the JavaPathDetector. * added option to use JRE System Library in JavaSourceGroup
This commit is contained in:
@@ -276,6 +276,21 @@ void ApplicationSettings::setJavaMaximumMemory(int size)
|
||||
setValue<int>("indexing/java/java_maximum_memory", size);
|
||||
}
|
||||
|
||||
std::vector<FilePath> ApplicationSettings::getJreSystemLibraryPaths() const
|
||||
{
|
||||
return getPathValues("indexing/java/jre_system_library_paths/jre_system_library_path");
|
||||
}
|
||||
|
||||
std::vector<FilePath> ApplicationSettings::getJreSystemLibraryPathsExpanded() const
|
||||
{
|
||||
return expandPaths(getJreSystemLibraryPaths());
|
||||
}
|
||||
|
||||
bool ApplicationSettings::setJreSystemLibraryPaths(const std::vector<FilePath>& jreSystemLibraryPaths)
|
||||
{
|
||||
return setPathValues("indexing/java/jre_system_library_paths/jre_system_library_path", jreSystemLibraryPaths);
|
||||
}
|
||||
|
||||
FilePath ApplicationSettings::getMavenPath() const
|
||||
{
|
||||
return FilePath(getValue<std::string>("indexing/java/maven_path", ""));
|
||||
|
||||
Reference in New Issue
Block a user