Exemplo n.º 1
0
 def is_valid_type(self):
     """
     :return: whether the type is valid or not
     :rtype: bool
     """
     if self._build_type is None:
         return False
     return util.get_project_type_subclass(self._build_type) is not None
Exemplo n.º 2
0
 def is_valid_type(self):
     """
     :return: whether the type is valid or not
     :rtype: bool
     """
     if self._build_type is None:
         return False
     return util.get_project_type_subclass(self._build_type) is not None
Exemplo n.º 3
0
    def required_parameters(self):
        """
        :return: a list of the required parameters for this type of build
        :rtype: list[str]
        """
        project_type_class = util.get_project_type_subclass(self._build_type)
        if project_type_class:
            return project_type_class.required_constructor_argument_names()

        return []