예제 #1
0
 def _set_pack_exclusions(self, exclusions):
     exclusions = var_to_list(exclusions)
     self.data['exclusions'] = []
     for exclusion in exclusions:
         if maven.is_valid_id(exclusion):
             if '*' in exclusion:
                 if not self.__is_valid_maven_id_with_wildcards(exclusion):
                     console.warning('%s: Invalid maven id with wildcards %s. '
                                     'Ignored. The valid id could be: '
                                     'group:artifact:*, group:*:*, *:*:*' %
                                     (self.fullname, exclusion))
                     continue
             self.data['exclusions'].append(exclusion)
         else:
             console.warning('%s: Exclusions only support maven id '
                             'group:artifact:version. Ignore %s' % (
                             self.fullname, exclusion))
예제 #2
0
 def _set_pack_exclusions(self, exclusions):
     exclusions = var_to_list(exclusions)
     self.data['exclusions'] = []
     for exclusion in exclusions:
         if maven.is_valid_id(exclusion):
             if '*' in exclusion:
                 if not self.__is_valid_maven_id_with_wildcards(exclusion):
                     console.warning('%s: Invalid maven id with wildcards %s. '
                                     'Ignored. The valid id could be: '
                                     'group:artifact:*, group:*:*, *:*:*' %
                                     (self.fullname, exclusion))
                     continue
             self.data['exclusions'].append(exclusion)
         else:
             console.warning('%s: Exclusions only support maven id '
                             'group:artifact:version. Ignore %s' % (
                             self.fullname, exclusion))