Hi,
i am new to groovy language. I was wondering if there will be anyone who will be able to help me understand the below code.
static analyzeAPI(pkgname) {
def refs = Yaml.load(new File(output_base + "/${pkgname}_PackageRefs.yml").text)
refs.Classes.each {
analyzeClassRef(pkgname, it.name)
}
}
static analyzeClassRef(pkgname, name) {
println "=== Analyze class ${pkgname} ${name}"
def filename = pkgname ? "${pkgname}/${name}.xml" : "${name}.xml"
def page = readXml(filename)
assert page.head.title == "${name} | Android Developers"
}
Gratly appreciate a reply
thanks you