Ejemplo n.º 1
0
        /// <summary>
        /// Execute the task.
        /// </summary>
        protected override void ExecuteTask()
        {
            IList <string> list = ListManager.GetList(ListName);

            foreach (string val in list)
            {
                if (ValueProperty != null)
                {
                    NAntUtility.AddOrOverwriteProperty(Project, ValueProperty, val);
                }

                // Base execute handles executing all child tasks.
                base.ExecuteTask();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Execute the task.
        /// </summary>
        protected override void ExecuteTask()
        {
            IDictionary <string, string> dict = DictionaryManager.GetDictionary(DictionaryName);

            foreach (string key in dict.Keys)
            {
                if (KeyProperty != null)
                {
                    NAntUtility.AddOrOverwriteProperty(Project, KeyProperty, key);
                }
                if (ValueProperty != null)
                {
                    NAntUtility.AddOrOverwriteProperty(Project, ValueProperty, dict[key]);
                }

                // Base execute handles executing all child tasks.
                base.ExecuteTask();
            }
        }