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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
private void AddActionCompileInnoSetup(Builder oBuilder, XmlNode oNode) { string sFilename = oNode.Attributes["filename"].Value; oBuilder.Add(new BuildStepInnoSetup(oBuilder, sFilename)); }
private void AddActionClearDirectory(Builder oBuilder, XmlNode oAction) { string directory = oAction.Attributes["directory"].Value; oBuilder.Add(new BuildStepClearDirectory(oBuilder, directory)); }
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)); }
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)); }