From a11275f9cddd7e9aa45af0f802e937197282ae07 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Tue, 10 Dec 2013 14:21:53 +0400 Subject: [PATCH] Refactored dotnet-builder-wrapper --- BuildServer/lib/tasks/dotnetbuild.js | 5 +++-- BuildServer/lib/tasks/dotnetbuilderwrapper.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/BuildServer/lib/tasks/dotnetbuild.js b/BuildServer/lib/tasks/dotnetbuild.js index af225c7..2fe2d0e 100644 --- a/BuildServer/lib/tasks/dotnetbuild.js +++ b/BuildServer/lib/tasks/dotnetbuild.js @@ -4,7 +4,8 @@ var dotNetBuilderWrapper = require('./dotnetbuilderwrapper'); module.exports = function (params, processor) { return dotNetBuilderWrapper({ - "SolutionPath": processor.context.exported + "/" + params.solution, - "OutputPath": processor.context.release + "/" + params.solution + "/" + command: "compile", + SolutionPath: processor.context.exported + "/" + params.solution//, +// OutputPath: processor.context.release + "/" + params.solution + "/" }, processor); }; diff --git a/BuildServer/lib/tasks/dotnetbuilderwrapper.js b/BuildServer/lib/tasks/dotnetbuilderwrapper.js index 5ecabad..59ca963 100644 --- a/BuildServer/lib/tasks/dotnetbuilderwrapper.js +++ b/BuildServer/lib/tasks/dotnetbuilderwrapper.js @@ -7,7 +7,7 @@ module.exports = function (params, processor) { process: function () { var result = "", error = "", - builder = spawn("../DotNetBuilder/bin/Debug/MicroBuildServer.DotNetBuilder.exe", ["compile"]); + builder = spawn("../DotNetBuilder/bin/Debug/MicroBuildServer.DotNetBuilder.exe", [params.command]); builder.stdout.on('data', function (data) { result += data;