Exemple #1
0
 /// <summary>
 /// </summary>
 /// <param name="target"></param>
 public IBSharpProject SafeOverrideProject(IBSharpProject target)
 {
     foreach (string overrideAttribute in overrideAttributes)
     {
         if (ContainsKey(overrideAttribute) && this[overrideAttribute].ToBool())
         {
             target.Set(overrideAttribute, this[overrideAttribute]);
         }
     }
     return(target);
 }
Exemple #2
0
        /// <summary>
        /// </summary>
        protected virtual void PrepareTasks()
        {
            IBSharpProject _realproject = Project;

            if (Project.IsFullyQualifiedProject || string.IsNullOrWhiteSpace(Project.ProjectName))
            {
                Log.Trace("load prepared project");
                PrepareTasksFromProject(Project);
            }
            else
            {
                Log.Trace("start compile projects");
                _realproject = Project.SafeOverrideProject(CompileRealProject());
                _realproject.SetParent(Project);
                Project.Set("_real_project", _realproject);
                Project = _realproject;
                PrepareTasksFromProject(_realproject);
                Log.Trace("internal project loaded");
            }
        }