Skip to content

Commit

Permalink
Ignore all files that aren't class files.
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrets committed Mar 26, 2020
1 parent a4241a7 commit 509dc3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

def mainClass = "no.stide.fling.Main"
version = "1.1.0"
version = "1.1.1"

repositories {
flatDir {
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/no/stide/fling/TestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ public void run() throws TestFailedException {

for (String classpath : this.classpaths) {
try {
Files.walk(Paths.get(classpath)).filter(Files::isRegularFile).forEach(path -> {
Files.walk(Paths.get(classpath)).filter(Files::isRegularFile).forEach((Path path) -> {
if (!path.toString().endsWith(".class")) {
return;
}
try {
Boolean process = false;
for (PathMatcher pm : includeMatchers) {
Expand Down

0 comments on commit 509dc3f

Please sign in to comment.