mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Maven: correctly excluding output folders (IDEA-20803)
This commit is contained in:
+2
-4
@@ -116,10 +116,8 @@ public class MavenFoldersImporter {
|
||||
myModel.useModuleOutput(myMavenProject.getOutputDirectory(),
|
||||
myMavenProject.getTestOutputDirectory());
|
||||
}
|
||||
else {
|
||||
myModel.addExcludedFolder(myMavenProject.getOutputDirectory());
|
||||
myModel.addExcludedFolder(myMavenProject.getTestOutputDirectory());
|
||||
}
|
||||
myModel.addExcludedFolder(myMavenProject.getOutputDirectory());
|
||||
myModel.addExcludedFolder(myMavenProject.getTestOutputDirectory());
|
||||
}
|
||||
|
||||
private void configExcludedFolders() {
|
||||
|
||||
+4
-1
@@ -588,7 +588,10 @@ public class FoldersImportingTest extends MavenImportingTestCase {
|
||||
|
||||
assertModules("project");
|
||||
|
||||
assertExcludes("project", "targetCustom");
|
||||
assertExcludes("project",
|
||||
"targetCustom",
|
||||
"outputCustom",
|
||||
"testCustom");
|
||||
assertModuleOutput("project",
|
||||
getProjectPath() + "/outputCustom",
|
||||
getProjectPath() + "/testCustom");
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import org.jetbrains.idea.maven.importing.MavenRootModelAdapter;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class MavenFoldersConfiguratorTest extends MavenImportingTestCase {
|
||||
public class MavenFoldersImporterTest extends MavenImportingTestCase {
|
||||
public void testUpdatingExternallyCreatedFolders() throws Exception {
|
||||
importProject("<groupId>test</groupId>" +
|
||||
"<artifactId>project</artifactId>" +
|
||||
Reference in New Issue
Block a user