buildframework/helium/tools/quality/mmp-to-target.ant.xml
changeset 646 a010554f8551
parent 645 b8d81fa19e7d
equal deleted inserted replaced
644:01667c882e63 646:a010554f8551
    59     ds = elements.get("fileset").get(int(eid)).getDirectoryScanner(project)
    59     ds = elements.get("fileset").get(int(eid)).getDirectoryScanner(project)
    60     ds.scan()
    60     ds.scan()
    61     for filename in ds.getIncludedFiles():
    61     for filename in ds.getIncludedFiles():
    62         filename = os.path.join(str(ds.getBasedir()), str(filename))
    62         filename = os.path.join(str(ds.getBasedir()), str(filename))
    63         project.log("Analysing %s" % filename, 4)
    63         project.log("Analysing %s" % filename, 4)
    64         input = open(filename, 'r')
    64         inputfile = open(filename, 'r')
    65         for line in input.readlines():
    65         for line in inputfile.readlines():
    66             m = match_target.match(line)
    66             m = match_target.match(line)
    67             # do not match resource files.
    67             # do not match resource files.
    68             if m != None and os.path.splitext(m.group(1))[1].lower() != ".rsc":            
    68             if m != None and os.path.splitext(m.group(1))[1].lower() != ".rsc":            
    69                 output.write("%s : %s\n" % (os.path.splitdrive(filename)[1], m.group(1)))
    69                 output.write("%s : %s\n" % (os.path.splitdrive(filename)[1], m.group(1)))
       
    70         inputfile.close()
    70 output.close()
    71 output.close()
    71         ]]>
    72         ]]>
    72     </scriptdef>
    73     </scriptdef>
    73 
    74 
    74 
    75