Add() public method

public Add ( BuildStep bs ) : void
bs BuildStep
return void
示例#1
0
        private void AddActionMSBuild(Builder oBuilder, XmlNode oNode)
        {
            string sFile          = oNode.Attributes["filename"].Value;
            string sConfiguration = oNode.Attributes["configuration"].Value;

            oBuilder.Add(new BuildStepMSBuild(oBuilder,
                                              sFile, sConfiguration));
        }
示例#2
0
        private void AddActionWriteIni(Builder oBuilder, XmlNode oNode)
        {
            string sFile    = oNode.Attributes["filename"].Value;
            string sSection = oNode.Attributes["section"].Value;
            string sKey     = oNode.Attributes["key"].Value;
            string sValue   = oNode.Attributes["value"].Value;

            oBuilder.Add(new BuildStepWriteINI(oBuilder, sFile, sSection, sKey, sValue));
        }
示例#3
0
        private void AddActionWritefile(Builder oBuilder, XmlNode oNode)
        {
            string sFile  = oNode.Attributes["filename"].Value;
            string sValue = oNode.Attributes["value"].Value;

            sValue = sValue.Replace("\\r\\n", Environment.NewLine);

            oBuilder.Add(new BuildStepWriteFile(oBuilder, sFile, sValue));
        }
示例#4
0
        private void AddActionCopyFile(Builder oBuilder, XmlNode oNode)
        {
            string sFrom = oNode.Attributes["from"].Value;
            string sTo   = oNode.Attributes["to"].Value;

            bool         bOverwrite = false;
            XmlAttribute oAttr      = oNode.Attributes["overwrite"];

            if (oAttr != null)
            {
                bOverwrite = oAttr.Value == "true";
            }

            oBuilder.Add(new BuildStepCopyFile(oBuilder, sFrom, sTo, bOverwrite));
        }
示例#5
0
        private void AddActionSubversion(Builder oBuilder, XmlNode oNode)
        {
            string sAction    = oNode.Attributes["action"].Value;
            string sDirectory = oNode.Attributes["directory"].Value;

            BuildStepSubversion.SVNAction svnaction;

            if (sAction == "revert")
            {
                svnaction = BuildStepSubversion.SVNAction.SVNRevert;
            }
            else if (sAction == "update")
            {
                svnaction = BuildStepSubversion.SVNAction.SVNUpdate;
            }
            else
            {
                throw new Exception("Incorrect SubVersion configuration");
            }

            oBuilder.Add(new BuildStepSubversion(oBuilder, svnaction, sDirectory));
        }
示例#6
0
        private void AddActionCopyFile(Builder oBuilder, XmlNode oNode)
        {
            string sFrom = oNode.Attributes["from"].Value;
            string sTo = oNode.Attributes["to"].Value;

            bool bOverwrite = false;
            XmlAttribute oAttr = oNode.Attributes["overwrite"];

            if (oAttr != null)
                bOverwrite = oAttr.Value == "true";

            oBuilder.Add(new BuildStepCopyFile(oBuilder, sFrom, sTo, bOverwrite));
        }
示例#7
0
        private void AddActionCompileVS(Builder oBuilder, XmlNode oNode)
        {
            string sFile = oNode.Attributes["filename"].Value;
             string sConfiguration = oNode.Attributes["configuration"].Value;

             oBuilder.Add(new BuildStepCompileVSNet(oBuilder,
                        sFile, sConfiguration));
        }
示例#8
0
        private void AddActionCompileInnoSetup(Builder oBuilder, XmlNode oNode)
        {
            string sFilename = oNode.Attributes["filename"].Value;

            oBuilder.Add(new BuildStepInnoSetup(oBuilder, sFilename));
        }
示例#9
0
        private void AddActionClearDirectory(Builder oBuilder, XmlNode oAction)
        {
            string directory = oAction.Attributes["directory"].Value;

            oBuilder.Add(new BuildStepClearDirectory(oBuilder, directory));
        }
示例#10
0
        private void AddActionWriteIni(Builder oBuilder, XmlNode oNode)
        {
            string sFile = oNode.Attributes["filename"].Value;
            string sSection = oNode.Attributes["section"].Value;
            string sKey = oNode.Attributes["key"].Value;
            string sValue = oNode.Attributes["value"].Value;

            oBuilder.Add(new BuildStepWriteINI(oBuilder, sFile, sSection, sKey, sValue));
        }
示例#11
0
        private void AddActionWritefile(Builder oBuilder, XmlNode oNode)
        {
            string sFile = oNode.Attributes["filename"].Value;
            string sValue = oNode.Attributes["value"].Value;
            sValue = sValue.Replace("\\r\\n", Environment.NewLine);

            oBuilder.Add(new BuildStepWriteFile(oBuilder, sFile, sValue));
        }
示例#12
0
        private void AddActionSubversion(Builder oBuilder, XmlNode oNode)
        {
            string sAction = oNode.Attributes["action"].Value;
            string sDirectory = oNode.Attributes["directory"].Value;

            BuildStepSubversion.SVNAction svnaction;

            if (sAction == "revert")
                svnaction = BuildStepSubversion.SVNAction.SVNRevert;
            else if (sAction == "update")
                svnaction = BuildStepSubversion.SVNAction.SVNUpdate;
            else
                throw new Exception("Incorrect SubVersion configuration");

            oBuilder.Add(new BuildStepSubversion(oBuilder,svnaction, sDirectory));
        }
示例#13
0
 private void AddActionRunApplication(Builder oBuilder, XmlNode oNode)
 {
     string sFile = oNode.Attributes["filename"].Value;
     string sParameters = oNode.Attributes["parameters"].Value;
     oBuilder.Add(new BuildStepRunApplication(oBuilder, sFile, sParameters));
 }
示例#14
0
        private void AddActionClearDirectory(Builder oBuilder, XmlNode oAction)
        {
            string directory = oAction.Attributes["directory"].Value;

            oBuilder.Add(new BuildStepClearDirectory(oBuilder, directory));
        }
示例#15
0
        private void AddActionCompileInnoSetup(Builder oBuilder, XmlNode oNode)
        {
            string sFilename = oNode.Attributes["filename"].Value;

            oBuilder.Add(new BuildStepInnoSetup(oBuilder, sFilename));
        }