Maven: correctly excluding output folders (IDEA-20803)

This commit is contained in:
Anton.Makeev
2010-02-10 18:17:22 +03:00
parent dfacd997ba
commit 4ee4cdfeca
3 changed files with 7 additions and 6 deletions
@@ -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() {
@@ -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");
@@ -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>" +