Example #1
0
        /// <summary>
        /// Returns a summary of the operation results
        /// </summary>
        /// <returns>
        /// Summary of results
        /// </returns>
        public override string ToString()
        {
            string r;

            if (OperationSuccessful)
            {
                r = "Build of " + ProjectTargetName + " Successful!";
            }
            else
            {
                StringBuilder b = new StringBuilder();
                if (ProjectTargetName.Length < ProjectMaxLength)
                {
                    for (Int32 i = ProjectTargetName.Length; i < ProjectMaxLength; i++)
                    {
                        b.Append(" ");
                    }
                }
                r = ProjectTargetName + ": " + b.ToString() +
                    Build.ToString() + " " +
                    ModifyVersion.ToString() + " " +
                    RevertVersion.ToString() + " " +
                    SignXap.ToString() + " " +
                    LicenseXap.ToString();
            }
            return(r);
        }
Example #2
0
        /// <summary>
        /// Generates the results summary.
        /// </summary>
        /// <returns></returns>
        public List <string> GenerateResultsSummary()
        {
            List <string> r = new List <string>();

            r.Add("WpdtVersion = " + WpdtVersion);
            r.Add("YdrVersion = " + YdrVersion);
            r.Add("PublishShare = " + (String.IsNullOrEmpty(PublishShare) ? "" : PublishShare));
            r.Add("PublishLogShare = " + (String.IsNullOrEmpty(PublishLogShare) ? "" : PublishLogShare));
            r.Add("PublishSourceShare = " + (String.IsNullOrEmpty(PublishSourceShare) ? "" : PublishSourceShare));
            r.Add(EnlistmentSync.ToString());
            r.Add(UninstallWdpt.ToString());
            r.Add(InstallWdpt.ToString());
            r.Add(ModifyWdpt.ToString());
            for (Int32 i = 0; i < BuildTargets.Length; i++)
            {
                r.Add(BuildTargets[i].ToString());
            }
            return(r);
        }