private void analysisProject(string projectPath)
        {
            ConfigMiddleLogs configMiddleLogs = new ConfigMiddleLogs();
            var allFiles    = FileHelper.getDictories(projectPath);
            var configPaths = allFiles.Where(x => (x.IndexOf(".config", StringComparison.OrdinalIgnoreCase) >= 0 && x.IndexOf("online", StringComparison.OrdinalIgnoreCase) >= 0) ||
                                             x.IndexOf("application-online.properties", StringComparison.OrdinalIgnoreCase) >= 0 ||
                                             x.IndexOf("application-online.yml", StringComparison.OrdinalIgnoreCase) >= 0
                                             ).ToList();

            configMiddleLogs.gitPath = gitAddress(allFiles);


            foreach (var config in configPaths)
            {
                configMiddleLogs.path        = config;
                configMiddleLogs.dbItems     = getConfigs(config, ConfigType.db);
                configMiddleLogs.rabbitItems = getConfigs(config, ConfigType.rabbitMq);
                configMiddleLogs.httpItems   = getConfigs(config, ConfigType.http);
                configMiddleLogs.codisItems  = getConfigs(config, ConfigType.codis);
                configMiddleLogs.kylinItems  = getConfigs(config, ConfigType.kylin);
                configMiddleLogs.hbaseItems  = getConfigs(config, ConfigType.hbase);
                configMiddleLogs.ftpItems    = getConfigs(config, ConfigType.ftp);
            }
            saveLogs(configMiddleLogs);
        }
        private void saveLogs(ConfigMiddleLogs log)
        {
            var fs = new FileStream(@"d:\tmp\middle.txt", FileMode.OpenOrCreate | FileMode.Append);
            var sw = new StreamWriter(fs);

            saveItems(sw, log.codisItems, log.gitPath);
            saveItems(sw, log.rabbitItems, log.gitPath);
            saveItems(sw, log.httpItems, log.gitPath);
            saveItems(sw, log.dbItems, log.gitPath);
            saveItems(sw, log.ftpItems, log.gitPath);
            saveItems(sw, log.kylinItems, log.gitPath);
            saveItems(sw, log.hbaseItems, log.gitPath);
            sw.WriteLine();
            sw.Close();
        }