Don't consider a directory to be a package if there's a .java or .class file with the same name in its parent directory

#KT-12664 Fixed
This commit is contained in:
Dmitry Jemerov
2016-11-17 15:44:57 +01:00
parent 7dbcbeb794
commit 5a533a521b
7 changed files with 39 additions and 6 deletions
@@ -155,7 +155,7 @@ public class MockLibraryUtil {
}
}
private static File createJarFile(File contentDir, File dirToAdd, String sourcesPath, String jarName, boolean addSources) throws IOException {
public static File createJarFile(File contentDir, File dirToAdd, String sourcesPath, String jarName, boolean addSources) throws IOException {
File jarFile = new File(contentDir, jarName + ".jar");
ZipOutputStream zip = new ZipOutputStream(new FileOutputStream(jarFile));