mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Minor bugfixes
This commit is contained in:
parent
da4e548d38
commit
871667cacb
|
@ -459,7 +459,11 @@ public class TeaVM implements TeaVMHost, ServiceRepository {
|
|||
}
|
||||
int index = 0;
|
||||
for (String className : dependency.getAchievableClasses()) {
|
||||
ClassHolder cls = ModelUtils.copyClass(dependency.getClassSource().get(className));
|
||||
ClassReader clsReader = dependency.getClassSource().get(className);
|
||||
if (clsReader == null) {
|
||||
continue;
|
||||
}
|
||||
ClassHolder cls = ModelUtils.copyClass(clsReader);
|
||||
cutClasses.putClassHolder(cls);
|
||||
missingItemsProcessor.processClass(cls);
|
||||
linker.link(dependency, cls);
|
||||
|
|
|
@ -92,7 +92,6 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder {
|
|||
if ((kind == AUTO_BUILD || kind == INCREMENTAL_BUILD) && !shouldBuild(profile)) {
|
||||
return;
|
||||
}
|
||||
removeMarkers(profile);
|
||||
IStringVariableManager varManager = VariablesPlugin.getDefault().getStringVariableManager();
|
||||
TeaVMTool tool = new TeaVMTool();
|
||||
tool.setClassLoader(classLoader);
|
||||
|
@ -127,6 +126,7 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder {
|
|||
monitor.beginTask("Running TeaVM", 10000);
|
||||
tool.generate();
|
||||
if (!tool.wasCancelled()) {
|
||||
removeMarkers(profile);
|
||||
putMarkers(tool.getDependencyInfo().getCallGraph(), tool.getProblemProvider().getProblems(),
|
||||
profile);
|
||||
setClasses(profile, classesToResources(tool.getClasses()));
|
||||
|
|
Loading…
Reference in New Issue
Block a user