Ejemplo n.º 1
0
 protected override void Initialize()
 {
     base.Initialize();
     if (DefaultExcludes)
     {
         // add default exclude patterns
         Excludes.Add("**/.svn");
         Excludes.Add("**/.svn/**");
         Excludes.Add("**/_svn");
         Excludes.Add("**/_svn/**");
         Excludes.Add("**/.git");
         Excludes.Add("**/.git/**");
         Excludes.Add("**/.git*"); // eg .gitignore
         Excludes.Add("**/.hg");
         Excludes.Add("**/.hg/**");
         Excludes.Add("**/.hg*"); // eg .hgignore
         Excludes.Add("**/SCCS");
         Excludes.Add("**/SCCS/**");
         Excludes.Add("**/vssver.scc");
         Excludes.Add("**/vssver2.scc");
         Excludes.Add("**/_vti_cnf/**");
         Excludes.Add("**/*~");
         Excludes.Add("**/#*#");
         Excludes.Add("**/.#*");
         Excludes.Add("**/%*%");
         Excludes.Add("**/CVS");
         Excludes.Add("**/CVS/**");
         Excludes.Add("**/.cvsignore");
         Excludes.Add("**/._*");
         Excludes.Add("**/.bzr");
         Excludes.Add("**/.bzr/**");
         Excludes.Add("**/.bzr*");
         Excludes.Add("**/.DS_Store");
     }
 }
Ejemplo n.º 2
0
 protected override void Initialize()
 {
     base.Initialize();
     if (DefaultExcludes)
     {
         // add default exclude patterns
         Excludes.Add("**/*.nupkg");
         Excludes.Add("**/*.nuspec");
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize the <see cref="CvsFileSet"/> object and locate the .cvsignore
        /// files to add to the exclude list.
        /// </summary>
        protected override void Initialize()
        {
            if (UseCvsIgnore)
            {
                ArrayList ignoreFiles = new ArrayList();
                this.ScanCvsIgnores(base.BaseDirectory, ignoreFiles);

                foreach (string ignoreFile in ignoreFiles)
                {
                    Excludes.Add(ignoreFile);
                }
            }

            base.Initialize();
        }
Ejemplo n.º 4
0
        private async Task Exclude(CancellationToken token)
        {
            var root = Root
                       .TrimEnd('\\')
                       .TrimEnd('/');

            var pathWithOutRoot = SelectedItem.FullPath
                                  .Replace(root, string.Empty)
                                  .Trim('\\')
                                  .Trim('/');

            await Excludes.Add(new Pattern(CommandBuilder, CommandManager, this, $"**/{pathWithOutRoot}")).ConfigureAwait(false);

            await Remove().ConfigureAwait(false);
        }
Ejemplo n.º 5
0
 protected override void ReadXmlElements(XmlReader reader)
 {
     base.ReadXmlElements(reader);
     while (reader.IsStartElement(Include.XmlElementName))
     {
         Include include = new Include();
         (include as IXmlSerializable).ReadXml(reader);
         Includes.Add(include);
     }
     while (reader.IsStartElement(Exclude.XmlElementName))
     {
         Exclude exclude = new Exclude();
         (exclude as IXmlSerializable).ReadXml(reader);
         Excludes.Add(exclude);
     }
 }
Ejemplo n.º 6
0
        public override bool handleOption(string key, string value)
        {
            switch (key)
            {
            case "exclude":
                Excludes.Add(value);
                return(true);

            case "references":
                DllDirs.Add(value);
                return(true);

            default:
                return(base.handleOption(key, value));
            }
        }
Ejemplo n.º 7
0
 public override void Init()
 {
     Excludes.Add(typeof(OutsiderProfile));
     Mapper.Class <Client>(x => x.Schema("Customers"));
     Mapper.Class <User>(x => { x.Schema("Customers"); });
     Mapper.Class <Outsider>(x => {
         x.Schema("Customers");
         x.Table("webftpoutsiders");
     });
     Mapper.Class <Admin>(x => {
         x.Schema("AccessRight");
         x.Table("RegionalAdmins");
         x.Id(y => y.Id, y => y.Column("RowId"));
         x.Property(o => o.Login, om => om.Column("UserName"));
         x.Property(o => o.Name, om => om.Column("ManagerName"));
     });
     base.Init();
 }
Ejemplo n.º 8
0
 protected override void InitializeElement(XmlNode elementNode)
 {
     if (DefaultExcludes)
     {
         // add default exclude patterns
         Excludes.Add("**/*~");
         Excludes.Add("**/#*#");
         Excludes.Add("**/.#*");
         Excludes.Add("**/%*%");
         Excludes.Add("**/CVS");
         Excludes.Add("**/CVS/**");
         Excludes.Add("**/.svn");
         Excludes.Add("**/.svn/**");
         Excludes.Add("**/_svn");
         Excludes.Add("**/_svn/**");
         Excludes.Add("**/.cvsignore");
         Excludes.Add("**/SCCS");
         Excludes.Add("**/SCCS/**");
         Excludes.Add("**/vssver.scc");
         Excludes.Add("**/_vti_cnf/**");
     }
     base.InitializeElement(elementNode);
 }
Ejemplo n.º 9
0
 protected override void Initialize()
 {
     base.Initialize();
     if (DefaultExcludes)
     {
         // add default exclude patterns
         Excludes.Add("**/*~");
         Excludes.Add("**/#*#");
         Excludes.Add("**/.#*");
         Excludes.Add("**/%*%");
         Excludes.Add("**/CVS");
         Excludes.Add("**/CVS/**");
         Excludes.Add("**/.svn");
         Excludes.Add("**/.svn/**");
         Excludes.Add("**/_svn");
         Excludes.Add("**/_svn/**");
         Excludes.Add("**/.cvsignore");
         Excludes.Add("**/SCCS");
         Excludes.Add("**/SCCS/**");
         Excludes.Add("**/vssver.scc");
         Excludes.Add("**/vssver2.scc");
         Excludes.Add("**/_vti_cnf/**");
     }
 }
Ejemplo n.º 10
0
        public BaseVariables(IWalkerResult result, string output, AttributeParser[] attributes)
        {
            Filename = result.FilePath;
            OUTPUT   = output;
            var flags    = GetMacroVar("MacroFlags", attributes);
            var vars     = GetMacroVar("MacroVars", attributes);
            var values   = GetMacroVar("MacroValues", attributes);
            var includes = GetMacroVar("MacroInclude", attributes);
            var excludes = GetMacroVar("MacroExclude", attributes);

            Flags.AddBulk(flags);
            foreach (var varline in vars)
            {
                var v = varline.StripQuote();
                if (String.IsNullOrEmpty(v))
                {
                    continue;
                }
                var(vari, value) = v.GetAsign();
                if (!String.IsNullOrEmpty(vari))
                {
                    Variables.Set(vari, value);
                }
            }

            foreach (var varline in values)
            {
                var v = varline.StripQuote();
                if (String.IsNullOrEmpty(v))
                {
                    continue;
                }
                var(vari, value) = v.GetAsign();
                if (String.IsNullOrEmpty(vari))
                {
                    continue;
                }
                if (!Int32.TryParse(value, out var i))
                {
                    continue;
                }
                Values.Set(vari, i);
            }

            foreach (var varline in includes)
            {
                var v = varline.StripQuote();
                if (String.IsNullOrEmpty(v))
                {
                    continue;
                }
                Includes.Add(v);
            }

            foreach (var varline in excludes)
            {
                var v = varline.StripQuote();
                if (String.IsNullOrEmpty(v))
                {
                    continue;
                }
                Excludes.Add(v);
            }
        }
Ejemplo n.º 11
0
        public override void Init()
        {
            Excludes.Add(typeof(ClientOrderItem));
            Excludes.Add(typeof(ClientOrder));
            Excludes.Add(typeof(ProducerPromotion));

            Configuration.AddInputStream(HbmSerializer.Default.Serialize(Assembly.Load("Common.Models")));
            Configuration.AddInputStream(HbmSerializer.Default.Serialize(typeof(SmartOrderRule).Assembly));

            Mapper.Class <Stock>(m => {
                m.Schema("Inventory");
                m.Version(x => x.Version, _ => {});
                m.Property(x => x.Timestamp, p => {
                    p.Insert(false);
                    p.Update(false);
                });
            });
            Mapper.Class <AnalitfNetData>(m => {
                m.Schema("Customers");
                m.Id(p => p.Id, c => {
                    c.Generator(Generators.Foreign <AnalitfNetData>(d => d.User));
                    c.Column("UserId");
                });
                m.OneToOne(p => p.User, c => c.ForeignKey("Id"));
            });

            Mapper.Class <UserSettings>(m => {
                m.Schema("Customers");
                m.Table("Users");
            });
            Mapper.Class <Promotion>(m => {
                m.Schema("UserSettings");
                m.Table("SupplierPromotions");
            });

            Mapper.Class <ClientSettings>(m => {
                m.Schema("Usersettings");
                m.Table("RetClientsSet");
                m.Id(e => e.Id, c => c.Column("ClientCode"));
            });

            Mapper.Class <ClientAppLog>(m => {
                m.Property(p => p.Text, c => c.Length(10000));
            });

            Mapper.Class <UserPrice>(m => {
                m.Schema("Customers");
                m.ComposedId(i => {
                    i.Property(p => p.RegionId);
                    i.ManyToOne(p => p.Price);
                    i.ManyToOne(p => p.User);
                });
                m.ManyToOne(p => p.Price);
                m.ManyToOne(p => p.User);
                m.Property(p => p.RegionId);
            });

            Mapper.Class <Attachment>(m => m.Schema("Documents"));

            Mapper.Class <DocumentLog>(m => {
                m.Table("Document_Logs");
                m.Id(l => l.Id, i => i.Column("RowId"));
                m.ManyToOne(l => l.Supplier, i => i.Column("FirmCode"));
            });

            Mapper.AfterMapClass += (i, t, c) => {
                if (t.Name.EndsWith("Log"))
                {
                    c.Schema("Logs");
                }
            };

            base.Init();
        }