예제 #1
0
        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");
        }
예제 #2
0
        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));
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void Ftp(Action<Ftp> args)
 {
     _excecutor.Execute(args);
 }
예제 #5
0
 public void ToGoogleCode(Action <GoogleCode> args)
 {
     _excecutor.Execute(args);
 }
예제 #6
0
 public void Compress(Action <ZipCompress> args)
 {
     _actionExcecutor.Execute(args);
 }
예제 #7
0
 /// <summary>
 /// Creates a BuildTask using MSBuild
 /// </summary>
 public void MsBuild(Action <MsBuildTask> args)
 {
     _actionExcecutor.Execute(args);
 }
예제 #8
0
 /// <summary>
 /// Generate using C#
 /// </summary>
 public void CSharp(Action <IAssemblyInfoDetails> args)
 {
     _executor.Execute <AssemblyInfoDetails, CSharpAssemblyInfoBuilder>(args, new CSharpAssemblyInfoBuilder());
 }
예제 #9
0
 /// <summary>
 /// Builds a library assembly (i.e. a dll)
 /// </summary>
 public void Library(Action <BuildTask> args)
 {
     _actionExcecutor.Execute(args, _compiler, "library");
 }