Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2012 22:39
Show Gist options
  • Save anonymous/4289288 to your computer and use it in GitHub Desktop.
Save anonymous/4289288 to your computer and use it in GitHub Desktop.
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