From 773d40aa378cf870ced3059fd0582f57083083de Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 30 Aug 2018 11:10:51 +0300 Subject: [PATCH] IDEA: fix copying sources from dependant modules --- .../src/main/java/org/teavm/idea/jps/TeaVMBuild.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java b/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java index a44e5059e..dd63a7119 100644 --- a/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java +++ b/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java @@ -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) {