Created
December 14, 2012 22:39
-
-
Save anonymous/4289288 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blacklist: List[String] = List() | |
def setup(context: Context) { | |
val path = new Path(context.getConfiguration.get("blacklist.file")) | |
val fileSystem = FileSystem.get(path.toUri, context.getConfiguration) | |
blacklist = scala.io.Source.fromInputStream(fileSystem.open(path)).getLines.toList | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment