Exemplo n.º 1
0
        private RepositoryAnalyserConfiguration CreateEmptyConfiguration()
        {
            RepositoryAnalyserConfiguration configuration = new RepositoryAnalyserConfiguration();

            XmlSerializeHelper <RepositoryAnalyserConfiguration> .InitEmptyProperties(configuration);

            configuration.CurrentLanguage      = "en-EN";
            configuration.CloneAllBranches     = true;
            configuration.DynamicFiltering     = true;
            configuration.SavingRepositoryPath = LocalizationConstants.DefaultRepositorySavingPath;

            if (!ZetaLongPaths.ZlpIOHelper.DirectoryExists(LocalizationConstants.ProgramDataApplicationDirectory))
            {
                ZetaLongPaths.ZlpIOHelper.CreateDirectory(LocalizationConstants.ProgramDataApplicationDirectory);
            }

            XmlSerializeHelper <RepositoryAnalyserConfiguration> .Serialize(configuration, LocalizationConstants.ConfigFilePath);

            return(configuration);
        }