From 38e9eb5487a71effc1d636bd5ed6ff030149aade Mon Sep 17 00:00:00 2001 From: rzaitov Date: Wed, 30 Oct 2013 16:27:00 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=84=D0=B8=D0=BA=D1=81=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B=20=D0=BF=D0=B0=D1=82?= =?UTF-8?q?=D1=87=D0=B8=D0=BD=D0=B3=D0=B0=20csproj=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BuildSample/BuildSample/CoolApp.csproj | 2 +- scripts/CommandBuilders/PatchCsprojCommandBuilder.py | 2 +- scripts/ManualTests/csproj_test.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/BuildSample/BuildSample/CoolApp.csproj b/BuildSample/BuildSample/CoolApp.csproj index 8076130..cca0400 100644 --- a/BuildSample/BuildSample/CoolApp.csproj +++ b/BuildSample/BuildSample/CoolApp.csproj @@ -29,7 +29,7 @@ full true - bin\iPhoneSimulator\Release + Output prompt 4 None diff --git a/scripts/CommandBuilders/PatchCsprojCommandBuilder.py b/scripts/CommandBuilders/PatchCsprojCommandBuilder.py index 248cc00..f3a727d 100644 --- a/scripts/CommandBuilders/PatchCsprojCommandBuilder.py +++ b/scripts/CommandBuilders/PatchCsprojCommandBuilder.py @@ -22,7 +22,7 @@ class PatchCsprojCommandBuilder: key = result[1] value = self.__valueProvider.getValueFor(result[2]) - csprojAbsPath = self.__valueProvider.resolveAbsPath(relPath) + csprojAbsPath = self.__pathProvider.resolveAbsPath(relPath) slnConfig = self.__config['sln_config'] command = PatchCsprojCommand(csprojAbsPath, key, value, slnConfig) diff --git a/scripts/ManualTests/csproj_test.py b/scripts/ManualTests/csproj_test.py index bc79d8d..ec8d68d 100644 --- a/scripts/ManualTests/csproj_test.py +++ b/scripts/ManualTests/csproj_test.py @@ -2,7 +2,7 @@ from CommandBuilders.PatchCsprojCommandBuilder import PatchCsprojCommandBuilder from ManualTests.path_provider import PathProvider from commands.ValueProvider import ValueProvider -config = {} +config = {'sln_config' : 'Release|iPhone'} line = "inside 'BuildSample/BuildSample/CoolApp.csproj' set OutputPath to 'Output'" base_dir = '../' @@ -10,4 +10,5 @@ path_provider = PathProvider(base_dir) value_provider = ValueProvider(config) builder = PatchCsprojCommandBuilder(config, path_provider, value_provider) -command = builder.getCommandFor(line) \ No newline at end of file +command = builder.getCommandFor(line) +command.execute() \ No newline at end of file