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:
malte_langkabel
2017-07-10 18:12:52 +02:00
parent b4166be89b
commit 9bcde198a5
23 changed files with 404 additions and 99 deletions
+10 -1
View File
@@ -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(