From 13bf58372a01ad0d5e275c3e20e0d4c27f1478ae Mon Sep 17 00:00:00 2001 From: Manu Evans Date: Fri, 10 Apr 2015 10:53:04 +1000 Subject: [PATCH] Made the clean functions overridable. --- src/actions/vstudio/vs2010.lua | 17 ++++++++++++----- src/actions/vstudio/vs2012.lua | 12 +++++++++--- src/actions/vstudio/vs2013.lua | 12 +++++++++--- src/actions/vstudio/vs2015.lua | 12 +++++++++--- 4 files changed, 39 insertions(+), 14 deletions(-) diff --git a/src/actions/vstudio/vs2010.lua b/src/actions/vstudio/vs2010.lua index deb7c179..50cec2ff 100644 --- a/src/actions/vstudio/vs2010.lua +++ b/src/actions/vstudio/vs2010.lua @@ -127,12 +127,19 @@ onProject = function(prj) vstudio.vs2010.generateProject(prj) end, + onRule = function(rule) + vstudio.vs2010.generateRule(rule) + end, - onRule = vstudio.vs2010.generateRule, - - onCleanSolution = vstudio.cleanSolution, - onCleanProject = vstudio.cleanProject, - onCleanTarget = vstudio.cleanTarget, + onCleanSolution = function(sln) + vstudio.cleanSolution(sln) + end, + onCleanProject = function(prj) + vstudio.cleanProject(prj) + end, + onCleanTarget = function(prj) + vstudio.cleanTarget(prj) + end, pathVars = vstudio.pathVars, diff --git a/src/actions/vstudio/vs2012.lua b/src/actions/vstudio/vs2012.lua index be0fcf35..def49f25 100644 --- a/src/actions/vstudio/vs2012.lua +++ b/src/actions/vstudio/vs2012.lua @@ -44,9 +44,15 @@ vstudio.vs2010.generateProject(prj) end, - onCleanSolution = vstudio.cleanSolution, - onCleanProject = vstudio.cleanProject, - onCleanTarget = vstudio.cleanTarget, + onCleanSolution = function(sln) + vstudio.cleanSolution(sln) + end, + onCleanProject = function(prj) + vstudio.cleanProject(prj) + end, + onCleanTarget = function(prj) + vstudio.cleanTarget(prj) + end, pathVars = vstudio.pathVars, diff --git a/src/actions/vstudio/vs2013.lua b/src/actions/vstudio/vs2013.lua index 16161eeb..5c14f5ea 100644 --- a/src/actions/vstudio/vs2013.lua +++ b/src/actions/vstudio/vs2013.lua @@ -46,9 +46,15 @@ vstudio.vs2010.generateProject(prj) end, - onCleanSolution = vstudio.cleanSolution, - onCleanProject = vstudio.cleanProject, - onCleanTarget = vstudio.cleanTarget, + onCleanSolution = function(sln) + vstudio.cleanSolution(sln) + end, + onCleanProject = function(prj) + vstudio.cleanProject(prj) + end, + onCleanTarget = function(prj) + vstudio.cleanTarget(prj) + end, pathVars = vstudio.pathVars, diff --git a/src/actions/vstudio/vs2015.lua b/src/actions/vstudio/vs2015.lua index d6bd2601..6c6bf761 100644 --- a/src/actions/vstudio/vs2015.lua +++ b/src/actions/vstudio/vs2015.lua @@ -46,9 +46,15 @@ vstudio.vs2010.generateProject(prj) end, - onCleanSolution = vstudio.cleanSolution, - onCleanProject = vstudio.cleanProject, - onCleanTarget = vstudio.cleanTarget, + onCleanSolution = function(sln) + vstudio.cleanSolution(sln) + end, + onCleanProject = function(prj) + vstudio.cleanProject(prj) + end, + onCleanTarget = function(prj) + vstudio.cleanTarget(prj) + end, pathVars = vstudio.pathVars,