예제 #1
0
	def setProjectFileBaseName( self, projectFileBaseName ):
		"""Set the project file base name for this builder

		\param projectFileBaseName 'project' in a path like /path/to/source/project.pro"""

		check_for_nonempty_string_or_none( projectFileBaseName, "Project file base name must be a valid string" )
		self.__projectFileBaseName = projectFileBaseName
예제 #2
0
def getPathsFromRegistry( keys, pathsSuffix = None ):
	paths = []
	check_for_list_of_strings( keys, "keys must be a list of strings" )
	check_for_nonempty_string_or_none( pathsSuffix, "pathsSuffix must be a non-empty string or None" )
	for key in keys:
		path = getPathFromRegistry( key )
		if path:
			if pathsSuffix:
				path = os.path.normpath( os.path.join( path, pathsSuffix ) )
			paths.append( path )
	return paths
예제 #3
0
	def setTag( self, tag ):
		check_for_nonempty_string_or_none( tag, 'The tag should be a string!' )
		self.__tag = tag
예제 #4
0
	def setBranch( self, branch ):
		check_for_nonempty_string_or_none( branch, 'The branch should be a string!' )
		self.__branch = branch
예제 #5
0
	def setProjectName( self, name ):
		check_for_nonempty_string_or_none( name, 'The project name should not be empty!' )
		self.__projectName = name
예제 #6
0
	def setStep( self, step ):
		check_for_nonempty_string_or_none( step, 'The step must be a non-empty string that is a step name, or None.' )
		self.__step = step
예제 #7
0
	def setFilename( self, filename ):
		check_for_nonempty_string_or_none( filename, 'The filename has to be a non-empty string, or None!' )
		self.__filename = filename
예제 #8
0
	def setObjectDescription( self, description ):
		'''The description is a more detailed message about the object.
		The description is used in reports and in describe output. If it is None, it will be ignored.'''
		check_for_nonempty_string_or_none( description, 'The object status needs to be a string or None!' )
		self.__description = description
예제 #9
0
	def setObjectStatus( self, status ):
		'''The status is a short string message about the status of the object.
		The status is used in reports and in describe output. If it is None, it will be ignored.'''
		check_for_nonempty_string_or_none( status, 'The object status needs to be a string or None!' )
		self.__status = status
예제 #10
0
	def _setBaseDir( self, folder ):
		check_for_nonempty_string_or_none( folder, 'The instructions base directory must be a folder name, or None!' )
		self.__baseDir = folder