Exemple #1
0
 def load_targets(self):
     """Load the targets. """
     console.info('loading BUILDs...')
     (self.__direct_targets, self.__all_command_targets,
      self.__build_targets) = load_targets(self.__command_targets,
                                           self.__root_dir, self)
     console.info('loading done.')
     return self.__direct_targets, self.__all_command_targets  # For test
Exemple #2
0
 def load_targets(self):
     """Load the targets. """
     console.info('loading BUILDs...')
     (self.__direct_targets, self.__all_command_targets,
      self.__build_targets) = load_targets(self.__load_targets,
                                           self.__root_dir, self)
     if self.__command_targets != self.__load_targets:
         # In query dependents mode, we must use command targets to execute query
         self.__all_command_targets = self._expand_command_targets()
     console.info('loading done.')
     return self.__direct_targets, self.__all_command_targets  # For test
Exemple #3
0
 def load_targets(self):
     """Load the targets. """
     console.info('loading BUILDs...')
     if self.__command == 'query' and getattr(self.__options, 'depended',
                                              False):
         # For query depended command, always start from root with target ...
         # that is scanning the whole tree
         working_dir = self.__root_dir
     else:
         working_dir = self.__working_dir
     (self.__direct_targets, self.__all_command_targets,
      self.__build_targets) = load_targets(self.__command_targets,
                                           working_dir, self.__root_dir,
                                           self)
     console.info('loading done.')
     return self.__direct_targets, self.__all_command_targets  # For test
Exemple #4
0
    def load_targets(self):
        """Load the targets. """
        console.info("loading BUILDs...")
        if self.kwargs.get('blade_command', '') == 'query':
            working_dir = self.current_source_path

            if '...' not in self.command_targets:
                new_target_list = []
                for target in self.command_targets:
                    new_target_list.append("%s:%s" %
                                           self._get_normpath_target(target))
                self.command_targets = new_target_list
        else:
            working_dir = self.working_dir
        (self.direct_targets, self.all_command_targets) = load_targets(
            self.command_targets, working_dir, self.current_source_path, self)
        console.info("loading done.")
        return self.direct_targets, self.all_command_targets
Exemple #5
0
 def load_targets(self):
     """Load the targets. """
     console.info('loading BUILDs...')
     if self.__command == 'query' and getattr(self.__options,
         'depended', False):
         # For query depended command, always start from root with target ...
         # that is scanning the whole tree
         working_dir = self.__root_dir
     else:
         working_dir = self.__working_dir
     (self.__direct_targets,
      self.__all_command_targets,
      self.__build_targets) = load_targets(self.__command_targets,
                                               working_dir,
                                               self.__root_dir,
                                               self)
     console.info('loading done.')
     return self.__direct_targets, self.__all_command_targets  # For test
Exemple #6
0
    def load_targets(self):
        """Load the targets. """
        console.info('loading BUILDs...')
        if self.__command == 'query':
            working_dir = self.__root_dir

            if '...' not in self.__command_targets:
                new_target_list = []
                for target in self.__command_targets:
                    new_target_list.append('%s:%s' %
                                           self._get_normpath_target(target))
                self.__command_targets = new_target_list
        else:
            working_dir = self.__working_dir
        (self.__direct_targets, self.__all_command_targets,
         self.__build_targets) = load_targets(self.__command_targets,
                                              working_dir, self.__root_dir,
                                              self)
        console.info('loading done.')
        return self.__direct_targets, self.__all_command_targets  # For test
Exemple #7
0
    def load_targets(self):
        """Load the targets. """
        console.info("loading BUILDs...")
        if self.kwargs.get('blade_command', '') == 'query':
            working_dir = self.current_source_path

            if '...' not in self.command_targets:
                new_target_list = []
                for target in self.command_targets:
                    new_target_list.append("%s:%s" %
                            self._get_normpath_target(target))
                self.command_targets = new_target_list
        else:
            working_dir = self.working_dir
        (self.direct_targets,
         self.all_command_targets) = load_targets(self.command_targets,
                                                  working_dir,
                                                  self.current_source_path,
                                                  self)
        console.info("loading done.")
        return self.direct_targets, self.all_command_targets
Exemple #8
0
    def load_targets(self):
        """Load the targets. """
        console.info('loading BUILDs...')
        if self.__command == 'query':
            working_dir = self.__root_dir

            if '...' not in self.__command_targets:
                new_target_list = []
                for target in self.__command_targets:
                    new_target_list.append('%s:%s' %
                            self._get_normpath_target(target))
                self.__command_targets = new_target_list
        else:
            working_dir = self.__working_dir
        (self.__direct_targets,
         self.__all_command_targets,
         self.__build_targets) = load_targets(self.__command_targets,
                                                  working_dir,
                                                  self.__root_dir,
                                                  self)
        console.info('loading done.')
        return self.__direct_targets, self.__all_command_targets  # For test