IDEA: fix copying sources from dependant modules

This commit is contained in:
Alexey Andreev 2018-08-30 11:10:51 +03:00
parent 50573f4f06
commit 773d40aa37

View File

@ -489,6 +489,9 @@ class TeaVMBuild {
if (dependencyOutput != null) {
classPathEntries.add(dependencyOutput.getPath());
}
for (JpsModuleSourceRoot sourceRoot : moduleDependency.getModule().getSourceRoots()) {
buildStrategy.addSourcesDirectory(sourceRoot.getFile().getAbsolutePath());
}
} else if (dependency instanceof JpsLibraryDependency) {
JpsLibrary library = ((JpsLibraryDependency) dependency).getLibrary();
if (library == null) {