Beispiel #1
0
        public static void AddFileInfoToFolderConfiguration(ProjectFolderConfiguration config)
        {
            config.ExcludePatterns.Add("**.back");
            config.ExcludePatterns.Add("**.js");
            config.ExcludePatterns.Add("**.bak");
            ProjectFolderConfiguration.AddExcludedVideoExtensions(config);             // For now at least.

            config.IncludePatterns.Add("**.html");
            config.IncludePatterns.Add("**.htm");
            config.IncludePatterns.Add("**.png");
            config.IncludePatterns.Add("**.jpg");
            config.IncludePatterns.Add("**.css");
            config.IncludePatterns.Add("**.txt");
            config.IncludePatterns.Add("*.bloomCollection");
        }
Beispiel #2
0
        public static void AddLiftFileInfoToFolderConfiguration(ProjectFolderConfiguration config)
        {
            config.ExcludePatterns.Add(Path.Combine("**", "cache"));
            config.ExcludePatterns.Add(Path.Combine("**", "Cache"));
            config.ExcludePatterns.Add("autoFonts.css");
            config.ExcludePatterns.Add("autoLayout.css");
            config.ExcludePatterns.Add("defaultDictionary.css");
            config.ExcludePatterns.Add("*.old");
            config.ExcludePatterns.Add("*.WeSayUserMemory");
            config.ExcludePatterns.Add("*.tmp");
            config.ExcludePatterns.Add("*.bak");
            config.ExcludePatterns.Add("**.log");
            config.ExcludePatterns.Add("*-ImportLog.htm");
            config.ExcludePatterns.Add(Path.Combine("export", "*.lift"));
            config.ExcludePatterns.Add(Path.Combine("export", "*.plift"));
            config.ExcludePatterns.Add(Path.Combine("export", "*.pdf"));
            config.ExcludePatterns.Add(Path.Combine("export", "*.html"));
            config.ExcludePatterns.Add(Path.Combine("export", "*.odt"));
            config.ExcludePatterns.Add(Path.Combine("export", "*.xml"));
            config.ExcludePatterns.Add("*.ldml");                          // Supposed to be in 'WritingSystems' folder now.
            config.ExcludePatterns.Add("*.orig");                          // Lift Bridge creates this backup, which ought to be excluded.

            ProjectFolderConfiguration.AddExcludedVideoExtensions(config); // For now at least.

            config.IncludePatterns.Add("*.lift");
            config.IncludePatterns.Add("*.lift-ranges");
            config.IncludePatterns.Add(Path.Combine("audio", "**.*"));            // Including nested folders/files
            config.IncludePatterns.Add(Path.Combine("pictures", "**.*"));         // Including nested folders/files
            config.IncludePatterns.Add(Path.Combine("others", "**.*"));           // Including nested folders/files
            config.IncludePatterns.Add(Path.Combine("SharedSettings", "*.ulsx")); // Including user lexion settings
            config.IncludePatterns.Add(Path.Combine("SharedSettings", "*.plsx")); // Including project lexicon settings
            config.IncludePatterns.Add(Path.Combine("WritingSystems", "*.ldml"));
            config.IncludePatterns.Add("**.xml");                                 //hopefully the days of files ending in "xml" are numbered
            config.IncludePatterns.Add(".hgIgnore");

            config.IncludePatterns.Add(Path.Combine("export", "*.lpconfig"));            //lexique pro
            config.IncludePatterns.Add(Path.Combine("export", "custom*.css"));           //stylesheets
            config.IncludePatterns.Add(Path.Combine("export", "multigraphs.txt"));       //list of multigraphs

            //review (jh,jh): should these only be added when WeSay is the client?  Dunno.
            config.IncludePatterns.Add("**.WeSayConfig");
            config.IncludePatterns.Add("**.WeSayUserConfig");
        }
Beispiel #3
0
        public static void ConfigureChorusProjectFolder(ProjectFolderConfiguration projectFolderConfiguration)
        {
            // Exclude has precedence, but these are redundant as long as we're using the policy
            // that we explicitly include all the files we understand. At least someday, when these
            // affect what happens in a more persistent way (e.g. be stored in the hgrc), these would protect
            // us a bit from other apps that might try to do a *.* include.
            projectFolderConfiguration.ExcludePatterns.Add("**" + Utilities.FwXmlExtension);
            projectFolderConfiguration.ExcludePatterns.Add("**" + Utilities.FwXmlExtension + "-replaced");
            projectFolderConfiguration.ExcludePatterns.Add("**" + Utilities.FwXmlExtension + "-x");
            projectFolderConfiguration.ExcludePatterns.Add("**" + Utilities.FwDb4oExtension);
            projectFolderConfiguration.ExcludePatterns.Add("**.bad");
            projectFolderConfiguration.ExcludePatterns.Add("**.bak");
            projectFolderConfiguration.ExcludePatterns.Add("**.flextext");
            projectFolderConfiguration.ExcludePatterns.Add("**.fwbackup");
            projectFolderConfiguration.ExcludePatterns.Add("**.fwstub");
            projectFolderConfiguration.ExcludePatterns.Add("**.lint");
            projectFolderConfiguration.ExcludePatterns.Add("**.log");
            projectFolderConfiguration.ExcludePatterns.Add("**.orig");
            projectFolderConfiguration.ExcludePatterns.Add("**.oxekt");
            projectFolderConfiguration.ExcludePatterns.Add("**.oxes");
            projectFolderConfiguration.ExcludePatterns.Add("**.oxesa");
            projectFolderConfiguration.ExcludePatterns.Add("**.tmp");
            projectFolderConfiguration.ExcludePatterns.Add("**.xml");
            projectFolderConfiguration.ExcludePatterns.Add("**.zip");
            projectFolderConfiguration.ExcludePatterns.Add("**" + SharedConstants.FwXmlLockExtension);
            projectFolderConfiguration.ExcludePatterns.Add("**." + SharedConstants.dupid);
            projectFolderConfiguration.ExcludePatterns.Add(Path.Combine("Temp", "**.*"));
            projectFolderConfiguration.ExcludePatterns.Add(Path.Combine("BackupSettings", "**.*"));
            projectFolderConfiguration.ExcludePatterns.Add(Path.Combine("WritingSystemStore", "trash", "**.*"));
            projectFolderConfiguration.ExcludePatterns.Add(Path.Combine("WritingSystemStore", "WritingSystemsToIgnore.xml.ChorusNotes"));
            projectFolderConfiguration.ExcludePatterns.Add(Path.Combine(Utilities.OtherRepositories, "**.*"));             // Folder for contined LIFT and PT-FLEx repos.
            if (!projectFolderConfiguration.ExcludePatterns.Contains("**.NewChorusNotes"))
            {
                projectFolderConfiguration.ExcludePatterns.Add("**.NewChorusNotes");                 // Not really needed, since Chorus adds them. But, knows for how long?
            }
            ProjectFolderConfiguration.AddExcludedVideoExtensions(projectFolderConfiguration);

            projectFolderConfiguration.IncludePatterns.Add("FLExProject.ModelVersion");             // Hope this forces the version file to be done first.
            projectFolderConfiguration.IncludePatterns.Add("FLExProject.CustomProperties");         // Hope this forces the custom props to be done next.

            // Overhead files.
            projectFolderConfiguration.IncludePatterns.Add("do_not_share_project.txt");
            projectFolderConfiguration.IncludePatterns.Add(".hgignore");

            // Common at all levels.
            if (!projectFolderConfiguration.IncludePatterns.Contains("**.ChorusNotes"))
            {
                projectFolderConfiguration.IncludePatterns.Add("**.ChorusNotes");                 // Not really needed, since Chorus adds them. But, knows for how long?
            }
            projectFolderConfiguration.IncludePatterns.Add("**.list");
            projectFolderConfiguration.IncludePatterns.Add("**.style");

            // Misc required files.
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("ConfigurationSettings", "*.fwlayout"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("ConfigurationSettings", "**.fwdictconfig"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("ConfigurationSettings", "**Overrides.css"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("WritingSystemStore", "*.ldml"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("LinkedFiles", "AudioVisual", "**.*"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("LinkedFiles", "Others", "**.*"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("LinkedFiles", "Pictures", "**.*"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("SupportingFiles", "**.*"));

            // Linguistics
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "Reversals", "**.reversal"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "Lexicon", "*.lexdb"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "TextCorpus", "*.textincorpus"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "Inventory", "*.inventory"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "Discourse", SharedConstants.DiscourseChartFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "**.featsys"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "MorphologyAndSyntax", SharedConstants.AnalyzingAgentsFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "MorphologyAndSyntax", SharedConstants.MorphAndSynDataFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Linguistics", "Phonology", SharedConstants.PhonologicalDataFilename));

            // Anthropology
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Anthropology", SharedConstants.DataNotebookFilename));

            // Scripture
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Other", SharedConstants.ScriptureReferenceSystemFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Other", "*.ArchivedDraft"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Other", SharedConstants.ScriptureTransFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Other", SharedConstants.ImportSettingsFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Other", "Books", "*.bookannotations"));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("Other", "Books", "*.book"));

            // Leftovers
            // Style file and user-defined lists ought to be covered, above.
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("General", SharedConstants.FLExFiltersFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("General", SharedConstants.FLExAnnotationsFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("General", SharedConstants.LanguageProjectFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("General", SharedConstants.FLExUnownedPicturesFilename));
            projectFolderConfiguration.IncludePatterns.Add(Path.Combine("General", SharedConstants.FLExVirtualOrderingFilename));
        }