104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# File 'lib/maptool/dependency/dependency.rb', line 104
def parsing_class(products)
puts "\n分析文件内容...".green
log = ""
all_frameworks = []
for project in products.values
puts project.name
templog = ""
hlog = self.parsing_content(project.h_path, all_frameworks, products) if project.h_path
templog << hlog if hlog
mlog = self.parsing_content(project.m_path, all_frameworks, products) if project.m_path
templog << mlog if mlog
mmlog = self.parsing_content(project.mm_path, all_frameworks, products) if project.mm_path
templog << mmlog if mmlog
log << "\n#{project.name}\n#{templog}" unless templog.empty?
end
all_frameworks.uniq!
all_frameworks.sort!
return "外部依赖汇总:#{all_frameworks.size} #{all_frameworks.to_s}\n\n" + log
end
|