mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Include source directories into class path when running TeaVM from
Eclipse so that TeaVM can read resources.
This commit is contained in:
parent
b731687c3e
commit
b71ba395fd
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user