public override void Run() { string sDirectory = ExpandMacros(m_sDirectory); string sCommand = ""; switch (m_eAction) { case SVNAction.SVNRevert: m_oBuilder.Log("Reverting " + sDirectory + "...\r\n", true); sCommand = "revert -R " + sDirectory; break; case SVNAction.SVNUpdate: m_oBuilder.Log("Updating " + sDirectory + "...\r\n", true); sCommand = "update " + sDirectory; break; default: throw new Exception("Failed. Unknown action."); } ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += new ProcessLauncher.OutputDelegate(launcher_Output); string output; launcher.LaunchProcess(ExpandMacros(m_oBuilder.ParameterSubversionPath), ExpandMacros(sCommand), out output); if (output.IndexOf("svn help cleanup") > 0) { throw new Exception("Failed"); } }
public override void Run() { m_oBuilder.Log("Compiling " + ExpandMacros(m_sProject) + "...\r\n", true); string arguments = "\"" + ExpandMacros(m_sProject) + "\" /rebuild \"" + ExpandMacros(m_sConfiguration) + "\""; if (!m_sProject.ToLower().EndsWith(".sln")) { arguments += " /project \"" + ExpandMacros(m_sProject) + "\""; } ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += new ProcessLauncher.OutputDelegate(launcher_Output); string output; int exitCode = launcher.LaunchProcess(m_oBuilder.ExpandMacros(m_oBuilder.ParameterVSPath), arguments, out output); if (exitCode != 0) { throw new Exception("Failed"); } if (output.IndexOf("0 succeeded") >= 0) { throw new Exception("Failed"); } }
public override void Run() { m_oBuilder.Log("Running application " + m_sExecutable + "...\r\n", true); ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += new ProcessLauncher.OutputDelegate(launcher_Output); string output; int exitCode = launcher.LaunchProcess(ExpandMacros(m_sExecutable), ExpandMacros(m_sArguments), out output); if (exitCode != 0) throw new Exception("Failed"); }
public override void Run() { m_oBuilder.Log("Running application " + m_sExecutable + "...\r\n", true); ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += launcher_Output; string output; int exitCode = launcher.LaunchProcess(ExpandMacros(m_sExecutable), ExpandMacros(m_sArguments), out output); if (exitCode != 0) throw new Exception(string.Format("Running of application failed. Exit code: {0}", exitCode)); }
public override void Run() { m_oBuilder.Log("Running application " + m_sExecutable + "...\r\n", true); ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += new ProcessLauncher.OutputDelegate(launcher_Output); string output; int exitCode = launcher.LaunchProcess(ExpandMacros(m_sExecutable), ExpandMacros(m_sArguments), out output); if (exitCode != 0) { throw new Exception("Failed"); } }
public override void Run() { m_oBuilder.Log("Compiling " + ExpandMacros(m_sProject) + "...\r\n", true); string arguments = "\"" + ExpandMacros(m_sProject) + "\" /t:rebuild /p:Configuration=" + ExpandMacros(m_sConfiguration) + ""; ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += new ProcessLauncher.OutputDelegate(launcher_Output); string output; int exitCode = launcher.LaunchProcess(m_oBuilder.ExpandMacros(m_oBuilder.ParameterMSBuildPath), arguments, out output); if (exitCode != 0) throw new Exception("Failed"); if (output.IndexOf("0 succeeded") >= 0) throw new Exception("Failed"); }
public override void Run() { m_oBuilder.Log("Compiling " + ExpandMacros(m_sProject) + "...\r\n", true); string arguments = "\"" + ExpandMacros(m_sProject) + "\" /rebuild \"" + ExpandMacros(m_sConfiguration) + "\""; if (!m_sProject.ToLower().EndsWith(".sln")) arguments += " /project \"" + ExpandMacros(m_sProject) + "\""; ProcessLauncher launcher = new ProcessLauncher(); launcher.Output +=new ProcessLauncher.OutputDelegate(launcher_Output); string output; int exitCode = launcher.LaunchProcess(m_oBuilder.ExpandMacros(m_oBuilder.ParameterVS8Path), arguments, out output); if (exitCode != 0) throw new Exception(string.Format("Compilation failed. Exit code: {0}", exitCode)); if (output.IndexOf("0 succeeded") >= 0) throw new Exception("Compilation failed."); }
public override void Run() { m_oBuilder.Log("Compiling " + ExpandMacros(m_sProject) + "...\r\n", true); string arguments = "\"" + ExpandMacros(m_sProject) + "\" /t:rebuild /p:Configuration=" + ExpandMacros(m_sConfiguration) + ""; ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += new ProcessLauncher.OutputDelegate(launcher_Output); string output; int exitCode = launcher.LaunchProcess(m_oBuilder.ExpandMacros(m_oBuilder.ParameterMSBuildPath), arguments, out output); if (exitCode != 0) { throw new Exception("Failed"); } if (output.IndexOf("0 succeeded") >= 0) { throw new Exception("Failed"); } }
public override void Run() { string sDirectory = ExpandMacros(m_sDirectory); string sCommand = ""; switch (m_eAction) { case SVNAction.SVNRevert: m_oBuilder.Log("Reverting " + sDirectory + "...\r\n", true); sCommand = "revert -R " + sDirectory; break; case SVNAction.SVNUpdate: m_oBuilder.Log("Updating " + sDirectory + "...\r\n", true); sCommand = "update "+ sDirectory; break; default: throw new Exception("Failed. Unknown action."); } ProcessLauncher launcher = new ProcessLauncher(); launcher.Output += new ProcessLauncher.OutputDelegate(launcher_Output); string output; launcher.LaunchProcess(ExpandMacros(m_oBuilder.ParameterSubversionPath), ExpandMacros(sCommand), out output); if (output.IndexOf("svn help cleanup") > 0) throw new Exception("SVN command failed."); }