예제 #1
0
        /// <summary>
        ///     Clones this instance.
        /// </summary>
        /// <returns>A duplicated project.</returns>
        public ConfuserProject Clone()
        {
            var ret = new ConfuserProject
            {
                Seed            = Seed,
                Debug           = Debug,
                OutputDirectory = OutputDirectory,
                BaseDirectory   = BaseDirectory,
                Packer          = Packer == null ? null : Packer.Clone(),
                ProbePaths      = new List <string>(ProbePaths),
                PluginPaths     = new List <string>(PluginPaths)
            };

            foreach (var module in this)
            {
                ret.Add(module.Clone());
            }

            foreach (var r in Rules)
            {
                ret.Rules.Add(r);
            }

            return(ret);
        }
예제 #2
0
        /// <summary>
        ///     Clones this instance.
        /// </summary>
        /// <returns>A duplicated project.</returns>
        public ConfuserProject Clone()
        {
            var ret = new ConfuserProject();

            ret.Seed            = Seed;
            ret.Debug           = Debug;
            ret.OutputDirectory = OutputDirectory;
            ret.BaseDirectory   = BaseDirectory;
            ret.Packer          = Packer == null ? null : Packer.Clone();
            ret.ProbePaths      = new List <string>(ProbePaths);
            ret.PluginPaths     = new List <string>(PluginPaths);
            foreach (var module in this)
            {
                ret.Add(module.Clone());
            }
            foreach (var r in Rules)
            {
                ret.Rules.Add(r);
            }
            return(ret);
        }