Skip to content

Commit

Permalink
fix: generate the pom into target/dspot/ instead of at the root of th…
Browse files Browse the repository at this point in the history
…e project under amplification Fix STAMP-project#896
  • Loading branch information
danglotb committed Oct 1, 2019
1 parent 9ec53b5 commit 8b84bc5
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public class DSpotPOMCreator {
GENERAL
*/

private static final String DIRECTORY_FOR_GENERATED_POM = "target/dspot/";

public static final String POM_FILE = "pom.xml";

private static final String PROJECT = "project";
Expand Down Expand Up @@ -227,7 +229,7 @@ private boolean hasArtifactId(Node node, String artifactId) {
}

public static String getParallelPOMName() {
return DSPOT_PARALLEL_POM_FILE + (InputConfiguration.get().isJUnit5() ? SUFFIX_JUNIT5 : "") + POM_FILE;
return DIRECTORY_FOR_GENERATED_POM + DSPOT_PARALLEL_POM_FILE + (InputConfiguration.get().isJUnit5() ? SUFFIX_JUNIT5 : "") + POM_FILE;
}

private Node findChildByArtifactId(Node node, String artifactId) {
Expand All @@ -243,11 +245,11 @@ private boolean hasDependencyByArtifactId(Node dependencies, String artifactId)
}

public static String getPOMName() {
return DSPOT_POM_FILE + (InputConfiguration.get().isJUnit5() ? SUFFIX_JUNIT5 : "") + POM_FILE;
return DIRECTORY_FOR_GENERATED_POM + DSPOT_POM_FILE + (InputConfiguration.get().isJUnit5() ? SUFFIX_JUNIT5 : "") + POM_FILE;
}

public String getPOMName(boolean isJUnit5) {
return DSPOT_POM_FILE + (isJUnit5 ? SUFFIX_JUNIT5 : "") + POM_FILE;
return DIRECTORY_FOR_GENERATED_POM + DSPOT_POM_FILE + (isJUnit5 ? SUFFIX_JUNIT5 : "") + POM_FILE;
}

/*
Expand Down

0 comments on commit 8b84bc5

Please sign in to comment.