Skip to content

Commit

Permalink
[#53] More file extensions excluded from classpath
Browse files Browse the repository at this point in the history
.xml and .orbit - quick workaround.
  • Loading branch information
szpak committed Nov 14, 2017
1 parent c86fed6 commit a451945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PitestPlugin implements Plugin<Project> {
public final static String PITEST_CONFIGURATION_NAME = 'pitest'

private final static List<String> DYNAMIC_LIBRARY_EXTENSIONS = ['so', 'dll', 'dylib']
private final static List<String> FILE_EXTENSIONS_TO_FILTER_FROM_CLASSPATH = ['pom'] + DYNAMIC_LIBRARY_EXTENSIONS
private final static List<String> FILE_EXTENSIONS_TO_FILTER_FROM_CLASSPATH = ['pom', 'xml', 'orbit'] + DYNAMIC_LIBRARY_EXTENSIONS

private final static Logger log = Logging.getLogger(PitestPlugin)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PitestPluginClasspathFilteringSpec extends BasicProjectBuilderSpec {
expect:
!task.createTaskArgumentMap()['classPath'].contains(libFileName)
where:
libFileName << ['lib.so', 'win.dll', 'dyn.dylib'] //TODO: Add test with more than one element
libFileName << ['lib.so', 'win.dll', 'dyn.dylib', "my.xml", "strange.orbit"] //TODO: Add test with more than one element
}

def "should filter .pom file"() {
Expand Down

0 comments on commit a451945

Please sign in to comment.