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:
@@ -184,7 +184,7 @@ std::vector<FilePath> SourceGroupJava::getClassPath()
|
||||
|
||||
std::vector<FilePath> classPath;
|
||||
|
||||
for (const FilePath& classpath: m_settings->getClasspathsExpandedAndAbsolute())
|
||||
for (const FilePath& classpath: m_settings->getClasspathExpandedAndAbsolute())
|
||||
{
|
||||
if (classpath.exists())
|
||||
{
|
||||
@@ -193,6 +193,15 @@ std::vector<FilePath> SourceGroupJava::getClassPath()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_settings->getUseJreSystemLibrary())
|
||||
{
|
||||
for (const FilePath& systemLibraryPath: ApplicationSettings::getInstance()->getJreSystemLibraryPathsExpanded())
|
||||
{
|
||||
LOG_INFO("Adding JRE system library path to classpath: " + systemLibraryPath.str());
|
||||
classPath.push_back(systemLibraryPath);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_settings->getMavenDependenciesDirectoryExpandedAndAbsolute().exists())
|
||||
{
|
||||
std::vector<FilePath> mavenJarPaths = FileSystem::getFilePathsFromDirectory(
|
||||
|
||||
Reference in New Issue
Block a user