internal override void InternalExecute() { BuildArgs(); string compilerWithoutExtentions = Compiler.Substring(0, Compiler.IndexOf(".")); Defaults.Logger.Write(compilerWithoutExtentions, String.Format("Compiling {0} files to '{1}'", _sources.Count, _outputFileLocation)); var pathToCompiler = Defaults.FrameworkVersion.GetPathToFrameworkInstall() + "\\" + Compiler; Defaults.Logger.WriteDebugMessage("Compile Using: " + pathToCompiler + " " + _argumentBuilder.Build()); _actionExcecutor.Execute((Action <Executable>)(x => x.ExecutablePath(pathToCompiler).UseArgumentBuilder(_argumentBuilder))); Defaults.Logger.WriteDebugMessage("Done Compiling"); }
internal override void InternalExecute() { if (String.IsNullOrEmpty(_projectOrSolutionFilePath)) { throw new ArgumentException("ProjectOrSolutionFilePath was not set"); } string pathToMsBuild = Defaults.FrameworkVersion.GetPathToFrameworkInstall() + "\\MsBuild.exe"; AddSetFieldsToArgumentBuilder(); //update the arg builder with all the fields _actionExcecutor.Execute <Executable>(x => x.ExecutablePath(pathToMsBuild).UseArgumentBuilder(_argumentBuilder)); }
public FileSet Execute() { string resGenExecutable = GetPathToResGenExecutable(); var outputFiles = new FileSet(); foreach (string resourceFileName in Files.Files) { string outputFileName = Prefix + Path.GetFileNameWithoutExtension(resourceFileName) + ".resources"; outputFileName = Path.Combine(OutputFolder, outputFileName); outputFiles.Include(outputFileName); var builder = new ArgumentBuilder(); builder.StartOfEntireArgumentString = "\"" + resourceFileName + "\" \"" + outputFileName + "\""; _actionExcecutor.Execute <Executable>(x => x.ExecutablePath(resGenExecutable).UseArgumentBuilder(builder)); } return(outputFiles); }
public void Ftp(Action<Ftp> args) { _excecutor.Execute(args); }
public void ToGoogleCode(Action <GoogleCode> args) { _excecutor.Execute(args); }
public void Compress(Action <ZipCompress> args) { _actionExcecutor.Execute(args); }
/// <summary> /// Creates a BuildTask using MSBuild /// </summary> public void MsBuild(Action <MsBuildTask> args) { _actionExcecutor.Execute(args); }
/// <summary> /// Generate using C# /// </summary> public void CSharp(Action <IAssemblyInfoDetails> args) { _executor.Execute <AssemblyInfoDetails, CSharpAssemblyInfoBuilder>(args, new CSharpAssemblyInfoBuilder()); }
/// <summary> /// Builds a library assembly (i.e. a dll) /// </summary> public void Library(Action <BuildTask> args) { _actionExcecutor.Execute(args, _compiler, "library"); }