Esempio n. 1
0
 def __init__(self, mode='Release', exclude=[]):
     if mode is None:
         mode = 'Release'
     FileFilter.__init__(self,
                         include=['*Tests.dll'],
                         folderPattern='*\\bin\\' + mode + '\\*',
                         exclude=exclude)
Esempio n. 2
0
 def __init__(self):
     FileFilter.__init__(self,
                         exclude=[
                             '*\\.svn\\*', '*uploads', '*Test.dll',
                             '*Test.dll.config', '*Tests.dll',
                             '*Tests.dll.config', '*Test.exe',
                             '*_accessor.dll', '*.pdb', '*.nlp'
                         ])
Esempio n. 3
0
 def __init__(self):
     FileFilter.__init__(self,
                         exclude=[
                             '*\\.svn\\*', '*\\testdata\\*',
                             '*\\install\\*', '*\\docs\\*', '*\\pub\\*',
                             '*\\libs\\*', '*\\bld\\*', 'test_*',
                             '*_publish.py', '*_test.py', '*.pyc', '*.wpr'
                         ])
Esempio n. 4
0
 def __init__(self, srcDir, destDir, fileFilter=None):
     super(CopyTask, self).__init__()
     self.destDir = destDir
     self.srcDir = srcDir
     if fileFilter is None:
         self.fileFilter = FileFilter()
     else:
         self.fileFilter = fileFilter
Esempio n. 5
0
 def __init__(self, srcDir, destDir, fileFilter=None):
     TaskBase().__init__()
     self.destDir = destDir
     self.srcDir = srcDir
     if fileFilter is None:
         self.fileFilter = FileFilter()
     else:
         self.fileFilter = fileFilter
Esempio n. 6
0
 def __init__(self):
     FileFilter.__init__(
         self,
         exclude=[
             "*\\.svn\\*",
             "*\\testdata\\*",
             "*\\install\\*",
             "*\\docs\\*",
             "*\\pub\\*",
             "*\\libs\\*",
             "*\\bld\\*",
             "test_*",
             "*_publish.py",
             "*_test.py",
             "*.pyc",
             "*.wpr",
         ],
     )
Esempio n. 7
0
    def do(self):
        self.__zf = zipfile.ZipFile(self.__zipName, 'w', zipfile.ZIP_DEFLATED)
        self.__fileFilter = FileFilter(exclude=self.__exclude).Filter(self.__dirName)
        rootlen = len(self.__dirName) + 1

        for item in self.__fileFilter:
            fn = item
            self.__zf.write(fn, fn[rootlen:])

        return True
Esempio n. 8
0
 def __init__( self ):
     FileFilter.__init__( self, include = ['*.doc','*.pdf'])
Esempio n. 9
0
 def __init__(self, mode='Release', exclude=[]):
     if mode is None:
         mode = 'Release'
     FileFilter.__init__(self, include=['*Tests.dll'], folderPattern='*\\bin\\'+mode+'\\*', exclude=exclude)
Esempio n. 10
0
 def __init__(self):
     FileFilter.__init__(self, include=['*.doc', '*.pdf'])
Esempio n. 11
0
 def __init__( self ):
     FileFilter.__init__( self, exclude = ['*\\.svn\\*', '*uploads', '*Test.dll', '*Test.dll.config', '*Tests.dll',
                                           '*Tests.dll.config', '*Test.exe', '*_accessor.dll', '*.pdb', '*.nlp'])
Esempio n. 12
0
 def __init__( self ):
     FileFilter.__init__( self, include = ['*.jar'])
Esempio n. 13
0
 def __init__(self):
     FileFilter.__init__(self, include=['*.jar'])
Esempio n. 14
0
 def __init__( self ):
     FileFilter.__init__( self, exclude = ['*\\.svn\\*', '*\\testdata\\*', '*\\install\\*', '*\\docs\\*',
                                           '*\\pub\\*', '*\\libs\\*', '*\\bld\\*', 'test_*', '*_publish.py',
                                           '*_test.py', '*.pyc', '*.wpr'] )