Skip to content

Commit

Permalink
Merge pull request #25 from nrainer/features/fix_skip_modules
Browse files Browse the repository at this point in the history
Fix module skipping
  • Loading branch information
Caroline Landry authored Sep 3, 2018
2 parents b8959f8 + 618e42e commit 6bf3e0d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/org/pitest/maven/PmpMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public void setSkippedModules(ArrayList<String> newClasses)
}

// **********
public boolean isInSkippedModules(MavenProject module)
{
return isInSkippedModules(module.getArtifactId());
}

public boolean isInSkippedModules(String name)
{
boolean result = false;
Expand Down Expand Up @@ -170,7 +175,13 @@ public void updateTargetClasses()
moduleList = PmpContext.getInstance().getDependingModules(getProject());
for (int i = 0; i < moduleList.size(); i++)
{
classList = PmpContext.getClasses(moduleList.get(i));
MavenProject module = moduleList.get(i);

if (isInSkippedModules(module)) {
continue;
}

classList = PmpContext.getClasses(module);
if (! classList.isEmpty())
{
PmpContext.addNewStrings(targetClasses, classList);
Expand Down

0 comments on commit 6bf3e0d

Please sign in to comment.