in src/main/scala/com/googlesource/gerrit/plugins/support/SupportBundle.scala [38:48]
def apply(bundleFilename: String): Try[File] = {
val bundleMatched = bundleFilename match {
case BundleName(filename) => Success(filename)
case _ => Failure(new IllegalArgumentException(s"Invalid bundle name '$bundleFilename'"))
}
bundleMatched.map(pluginData.resolve).map(_.toFile).flatMap {
case f if f.exists => Success(f)
case f => Failure(new FileNotFoundException(s"Bundle file $f does not exists"))
}
}