From b71ba395fd265b51efd80e98ea7d5ddedc6dca0f Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Sat, 24 Jan 2015 20:13:14 +0400 Subject: [PATCH] Include source directories into class path when running TeaVM from Eclipse so that TeaVM can read resources. --- .../src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java b/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java index 92c0cc186..6bc699010 100644 --- a/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java +++ b/teavm-eclipse/teavm-eclipse-plugin/src/main/java/org/teavm/eclipse/TeaVMProjectBuilder.java @@ -605,6 +605,11 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder { if (srcContainer != null) { srcCollector.addContainer(srcContainer); sourceFileCollector.addFile(srcContainer.getLocation()); + try { + collector.addPath(srcContainer.getLocation()); + } catch (MalformedURLException e) { + TeaVMEclipsePlugin.logError(e); + } } break; case IClasspathEntry.CPE_PROJECT: {