Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New maven plugin parameter: additionalClasspathElements #99

Merged
merged 1 commit into from
Feb 28, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public ReportOptions convert() {

addOwnDependenciesToClassPath(classPath);

classPath.addAll(this.mojo.getAdditionalClasspathElements());

return parseReportOptions(classPath);

}
Expand Down
12 changes: 12 additions & 0 deletions pitest-maven/src/main/java/org/pitest/maven/PitMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ public class PitMojo extends AbstractMojo {
*/
private String mutationEngine;

/**
* List of additional classpath entries to use when looking for tests and mutable code.
* These will be used in addition to the classpath with which PIT is launched.
*
* @parameter expression="${additionalClasspathElements}"
*/
private ArrayList<String> additionalClasspathElements;

/**
* <i>Internal</i>: Project to interact with.
*
Expand Down Expand Up @@ -466,4 +474,8 @@ public void setJavaExecutable(String javaExecutable) {
this.jvm = javaExecutable;
}

public List<String> getAdditionalClasspathElements() {
return additionalClasspathElements;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ protected void configurePitMojo(final PitMojo pitMojo, final String config)

setVariableValueToObject(pitMojo, "project", this.project);

ArrayList<String> elements = new ArrayList<String>();
setVariableValueToObject(pitMojo, "additionalClasspathElements", elements);

}

}