logic: fix jar not found exception

not found jars or classpath items are not handed forward to the java indexer because the java code throws exceptions when attempting to create a jar type solver for these.
This commit is contained in:
malte_langkabel
2016-08-22 10:34:26 +02:00
parent c43e074c9e
commit 98eb3f124d
+5 -2
View File
@@ -55,12 +55,15 @@ std::shared_ptr<Task> JavaProject::createIndexerTask(
for (FilePath classpath: m_projectSettings->getAbsoluteClasspaths())
{
arguments.javaClassPaths.push_back(classpath.str());
if (classpath.exists())
{
arguments.javaClassPaths.push_back(classpath.str());
}
}
for (FilePath sourcePath: m_projectSettings->getAbsoluteSourcePaths())
{
if (sourcePath.extension().empty())
if (sourcePath.extension().empty() && sourcePath.exists())
{
arguments.javaClassPaths.push_back(sourcePath.str());
}