diff -r 1248e8f6a72d -r db59fc762214 buildframework/helium/tools/logging/logging.ant.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buildframework/helium/tools/logging/logging.ant.xml Thu Mar 18 15:06:42 2010 +0000 @@ -0,0 +1,443 @@ + + + + + + Targets related to log parsing, rendaring, upload to diamonds etc. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + End of filtering @{log} for passwords + + + + + + + + + + + os.path.getmtime(targetfile)): + self.getProject().log("Converting %s..." % inputfile) + log2xml.convert(inputfile, targetfile, False, config) + else: + self.getProject().log("Extracted log is uptodate: %s" % inputfile) + +config = log2xml.DEFAULT_CONFIGURATION +logfilterset = elements.get("logfilterset") +if logfilterset != None and logfilterset.size() > 0: + # if any logfilterset are dfined then + # it override the default configuration + config = {} + for filtersetid in range(logfilterset.size()): + filterset = logfilterset.get(filtersetid) + if filterset.isReference(): + filterset = filterset.getRefid().getReferencedObject(project) + filters = filterset.getFilters() + for filterid in range(filters.size()): + if not filters.get(filterid).getCategory() in config: + config[filters.get(filterid).getCategory()] = [] + config[filters.get(filterid).getCategory()].append(str(filters.get(filterid).getRegex())) + +fileset = elements.get("fileset") +outputfile = attributes.get("outputfile") +if fileset != None and fileset.size() > 0: + for filesetid in range(fileset.size()): + dirscanner = fileset.get(filesetid).getDirectoryScanner(project) + for filename in dirscanner.getIncludedFiles(): + inputfile = str(java.io.File(dirscanner.getBasedir(), str(filename)).getAbsolutePath()) + convertFile(inputfile, outputfile, config) +elif attributes.get("file") != None: + inputfile = str(java.io.File(str(attributes.get("file"))).getAbsolutePath()) + convertFile(inputfile, outputfile, config) +else: + self.log("No input specified.") + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbPath: ${metadata.dbfile} + log: ${log.name} + ant: antProperties() + + + + + + + + + + + + + + + + + + + Merging all *.log.xml files + + + + + ]]> + + + + + + + + + + + + + Inserting @{file} into summary. + + + + + + + + Summary XML log file does not need updating. + + + + + + + + + + + + + + + + macro: ${helium.dir}/tools/common/templates/macro + + + dbPath: ${metadata.dbfile} + loginfo: xml(${build.log.dir}/${build.id}_info.log.xml) + ant: antProperties() + + + + + + + + + + + + + + + + + + + doc: xml(${build.summary.file}) + ant: antProperties() + + + + + + + + + + + doc: xml(${build.summary.file}) + ant: antProperties() + + + + + + + + + + + dbPath: ${metadata.dbfile} + ant: antProperties() + + + + + + + + + + + + + + + + + + + + \ No newline at end of file