def __ValidatePath(self, rErrorRecordList: List[ErrorRecord], installationPath: Optional[str], command: XmlRecipeValidateCommandPath) -> bool: result, value = self.__DoValidatePath(rErrorRecordList, installationPath, command) if self.__Log.Verbosity >= 1: self.__Log.LogPrint("Validating path '{0}' '{1}': {2}".format( command.Name, BuildRecipeValidateMethod.TryToString(command.Method, True), result)) if self.__Log.Verbosity >= 2: self.__Log.LogPrint(" '{0}'".format(value)) return result
def __ValidateEnvironmentVariable( self, rErrorRecordList: List[ErrorRecord], command: XmlRecipeValidateCommandEnvironmentVariable) -> bool: result, value = self.__DoValidateEnvironmentVariable( rErrorRecordList, command) if self.__BasicConfig.Verbosity >= 1: self.__BasicConfig.LogPrint( "Validating environment variable '{0}' '{1}': {2}".format( command.Name, BuildRecipeValidateMethod.TryToString( command.Method, True), result)) if self.__BasicConfig.Verbosity >= 2: self.__BasicConfig.LogPrint(" '{0}'".format(value)) return result