diff -r b6f8d38305f2 -r 5ad27ebafc22 buildframework/helium/tools/common/common.antlib.xml --- a/buildframework/helium/tools/common/common.antlib.xml Thu Mar 25 12:47:55 2010 +0000 +++ b/buildframework/helium/tools/common/common.antlib.xml Thu Mar 25 14:10:11 2010 +0000 @@ -20,6 +20,7 @@ ============================================================================ --> + @@ -92,12 +93,12 @@ --> - + + + + + + + + + + + + + + + + + @@ -152,90 +218,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Start of filtering ${build.log} for passwords - - - - - - - - - - - - - - - - - - - - - - - - - - - - End of filtering @{log} for passwords - - - @@ -404,15 +386,12 @@ raise Exception("No entry found for Type: %s" % str(attributes.get("type"))) (n_username, n_account, n_password) = netrc_info if attributes.get('output-prop') != None: - self.log("Output: %s" % attributes.get('output-prop')) project.setProperty(str(attributes.get('output-prop')), str(n_password)) except Exception, e: result = "-1" - print "ERROR: %s" % e + print "Warning: %s" % e if attributes.get('result-prop') != None: - self.log("Result: %s" % attributes.get('result-prop')) project.setProperty(str(attributes.get('result-prop')), str(result)) - self.log("%s: %s" % (attributes.get('result-prop'), project.getProperty(str(attributes.get('result-prop'))))) ]]> @@ -433,16 +412,12 @@ raise Exception("No entry found for Type: %s" % str(attributes.get("type"))) (n_username, n_account, n_password) = netrc_info if attributes.get('output-prop') != None: - self.log("Output: %s" % attributes.get('output-prop')) project.setProperty(str(attributes.get('output-prop')), str(n_username)) except Exception, e: result = "-1" - print "ERROR: %s" % e + print "Warning: %s" % e if attributes.get('result-prop') != None: - - self.log("Result: %s" % attributes.get('result-prop')) project.setProperty(str(attributes.get('result-prop')), str(result)) - self.log("%s: %s" % (attributes.get('result-prop'), project.getProperty(str(attributes.get('result-prop'))))) ]]> @@ -482,7 +457,8 @@ session = provider.get(username, password, database=database, reuse=False) else: session = provider.get(username, password, engine, dbpath, reuse=False) - del(session) + session.close() + provider.close() except Exception, e: print "ERROR: %s" % e if str(e).find("access denied") != -1: @@ -494,133 +470,16 @@ ]]> - - - - - - - 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.") - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -638,81 +497,34 @@ + + + + + + signal.log.dir = ${signal.log.dir} + + + + + + - + + + + + - - - - - - - - - - - Stopping recording to main Ant build log. - - - - - - - - - - - - - - - - - - - Starting recording to main Ant build log again. - - - - - - - - - - - - - - - - - - - - - dbPath: ${metadata.dbfile} - log: ${log.name} - ant: antProperties() - - - - -