Пример #1
0
 def record_stats(self, stats, javac_commands, jars):
     stats['source_files'] = sum(
         [len(cmd['java_files']) for cmd in javac_commands])
     stats['class_files'] = sum(
         [len(cmdtools.get_class_files(cmd)) for cmd in javac_commands])
     stats['javac_invocations'] = len(javac_commands)
     stats['built_jars'] = len(jars)
     stats['executable_jars'] = len([jar for jar in jars if 'main' in jar])
Пример #2
0
 def record_stats(self, stats, javac_commands, jars):
     stats['source_files'] = sum([len(cmd['java_files']) for cmd in javac_commands])
     stats['class_files'] = sum([len(cmdtools.get_class_files(cmd)) for cmd in javac_commands])
     stats['javac_invocations'] = len(javac_commands)
     stats['built_jars'] = len(jars)
     stats['executable_jars'] = len([jar for jar in jars if 'main' in jar])