File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ import org.junit.Test
9
9
class ScannerTest extends DottyTest {
10
10
11
11
val blackList = List (
12
- " ../scala/src /scaladoc/scala/tools/nsc/doc/html/page/Index.scala" ,
13
- " ../scala/src /scaladoc/scala/tools/nsc/doc/html/page/Template.scala"
12
+ " /scaladoc/scala/tools/nsc/doc/html/page/Index.scala" ,
13
+ " /scaladoc/scala/tools/nsc/doc/html/page/Template.scala"
14
14
)
15
15
16
16
def scan (name : String ): Unit = scan(new PlainFile (name))
@@ -31,12 +31,12 @@ class ScannerTest extends DottyTest {
31
31
def scanDir (path : String ): Unit = scanDir(Directory (path))
32
32
33
33
def scanDir (dir : Directory ): Unit = {
34
- if (blackList contains dir.jfile.toString)
34
+ if (blackList exists ( dir.jfile.toString endsWith _) )
35
35
println(s " blacklisted package: ${dir.jfile.getAbsolutePath}" )
36
36
else
37
37
for (f <- dir.files)
38
38
if (f.name.endsWith(" .scala" ))
39
- if (blackList contains f.jfile.toString)
39
+ if (blackList exists ( f.jfile.toString endsWith _) )
40
40
println(s " blacklisted file: ${f.jfile.getAbsolutePath}" )
41
41
else
42
42
scan(new PlainFile (f))
You can’t perform that action at this time.
0 commit comments