Include source directories into class path when running TeaVM from

Eclipse so that TeaVM can read resources.
This commit is contained in:
konsoletyper 2015-01-24 20:13:14 +04:00
parent b731687c3e
commit b71ba395fd

View File

@ -605,6 +605,11 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder {
if (srcContainer != null) { if (srcContainer != null) {
srcCollector.addContainer(srcContainer); srcCollector.addContainer(srcContainer);
sourceFileCollector.addFile(srcContainer.getLocation()); sourceFileCollector.addFile(srcContainer.getLocation());
try {
collector.addPath(srcContainer.getLocation());
} catch (MalformedURLException e) {
TeaVMEclipsePlugin.logError(e);
}
} }
break; break;
case IClasspathEntry.CPE_PROJECT: { case IClasspathEntry.CPE_PROJECT: {