diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-10-13 16:30:28 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-10-13 16:30:28 +0000 |
commit | 143ecef34b96f3e7ab5797b31bea15f3a9f74feb (patch) | |
tree | 82edb340016175187de43905a9cd45c6f8728cf7 /src | |
parent | 19f4c0652bc32d982453390fac43d411463fc218 (diff) | |
download | scala-143ecef34b96f3e7ab5797b31bea15f3a9f74feb.tar.gz scala-143ecef34b96f3e7ab5797b31bea15f3a9f74feb.tar.bz2 scala-143ecef34b96f3e7ab5797b31bea15f3a9f74feb.zip |
Fixed build.
Diffstat (limited to 'src')
-rw-r--r-- | src/partest/scala/tools/partest/PartestTask.scala | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/src/partest/scala/tools/partest/PartestTask.scala b/src/partest/scala/tools/partest/PartestTask.scala index 56e9c29f4a..f62cd732bf 100644 --- a/src/partest/scala/tools/partest/PartestTask.scala +++ b/src/partest/scala/tools/partest/PartestTask.scala @@ -85,27 +85,14 @@ class PartestTask extends Task { private var scalacOpts: Option[String] = None private var timeout: Option[String] = None - private def getFilesAndDirs(fileSet: Option[FileSet]): Array[File] = - if (!fileSet.isEmpty) { - val files = fileSet.get - val dir = files.getDir(getProject) - val singleFileTests = (files.getDirectoryScanner(getProject).getIncludedFiles map { fs => - new File(dir, fs) }) - // add directories - val dirTests = dir.listFiles(new java.io.FileFilter { - def accept(file: File) = - file.isDirectory && (!file.getName().equals(".svn")) && - (!file.getName().endsWith(".obj")) - }) - (dirTests ++ singleFileTests).toArray + private def getPosFiles: Array[File] = + if (!posFiles.isEmpty) { + val files = posFiles.get + (files.getDirectoryScanner(getProject).getIncludedFiles map { fs => new File(files.getDir(getProject), fs) }) } else Array() - - private def getPosFiles: Array[File] = - getFilesAndDirs(posFiles) - private def getNegFiles: Array[File] = if (!negFiles.isEmpty) { val files = negFiles.get @@ -115,7 +102,12 @@ class PartestTask extends Task { Array() private def getRunFiles: Array[File] = - getFilesAndDirs(runFiles) + if (!runFiles.isEmpty) { + val files = runFiles.get + (files.getDirectoryScanner(getProject).getIncludedFiles map { fs => new File(files.getDir(getProject), fs) }) + } + else + Array() private def getResidentFiles: Array[File] = if (!residentFiles.isEmpty) { |