Skip to content

Instantly share code, notes, and snippets.

@loverdos
Created September 11, 2009 13:03
Show Gist options
  • Save loverdos/185282 to your computer and use it in GitHub Desktop.
Save loverdos/185282 to your computer and use it in GitHub Desktop.
(if(args.isEmpty) Array("build.xml") else args) foreach { file =>
try {
print(file + ": ")
println(scala.xml.XML.loadFile(file) \ "target" map (target => target \ "@name") filter (!_.isEmpty) mkString ", ")
} catch {
case e => println(e.getClass + ": " + e.getMessage)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment