22 lines
639 B
Python
22 lines
639 B
Python
from commands.ShellCommandBase import ShellCommandBase
|
|
|
|
|
|
class CleanBuildCommandBase(ShellCommandBase):
|
|
def __init__(self, commandPattern, pathToBuildUtil, slnPath, slnConfig):
|
|
ShellCommandBase.__init__(self)
|
|
|
|
assert commandPattern is not None
|
|
assert pathToBuildUtil is not None
|
|
assert slnPath is not None
|
|
assert slnConfig is not None
|
|
|
|
self.__commandPattern = commandPattern
|
|
self.__pathToBuildUtil = pathToBuildUtil
|
|
self.__slnPath = slnPath
|
|
self.__slnConfig = slnConfig
|
|
|
|
def execute(self):
|
|
cmdText = self.__commandPattern.format(self.__pathToBuildUtil, self.__slnConfig, self.__slnPath)
|
|
|
|
self.executeShell(cmdText)
|