HACK add option to launch without a main jar

This commit is contained in:
Petr Mrázek
2019-02-22 03:01:46 +01:00
parent d5d710b89e
commit 2bcd255909
6 changed files with 32 additions and 7 deletions

View File

@@ -45,7 +45,11 @@ void LibrariesTask::executeTask()
QList<LibraryPtr> libArtifactPool;
libArtifactPool.append(profile->getLibraries());
libArtifactPool.append(profile->getNativeLibraries());
libArtifactPool.append(profile->getMainJar());
auto mainJar = profile->getMainJar();
if(mainJar)
{
libArtifactPool.append(mainJar);
}
processArtifactPool(libArtifactPool, failedLocalLibraries, inst->getLocalLibraryPath());
QStringList failedLocalJarMods;