def manuallyCopyFilesProcessing(self, sourcedir, targetdir, filename):
     job03class = RetrieveJavaSourceRelateToPGMs()
     filesset = teocommon_operation.readFileToSet(filename)
     relatedjavafoundset = job03class.retrieveJavaFilesFromPackagefilenameList(
         sourcedir, filesset)
     self.copyFromPackageFilenameList(source_dir, target_dir,
                                      relatedjavafoundset)
    def manuallyCopyDirsProcessing(self, sourcedir, targetdir, packdirsset):
        teocommon_operation.copyDirs(sourcedir, targetdir, packdirsset)
        # solve the consequences for the above command
        job03class = RetrieveJavaSourceRelateToPGMs()
        javafoundset = set()
        for packdir in packdirsset:
            fulldirpath = sourcedir+'\\'+packdir.replace('.','\\')
            if os.path.isdir(fulldirpath):
                filesList = teo_find.findFilesInDirectory(fulldirpath,'.java')
                for file in filesList:
                    packagefilename = job03class.convertFullpathToPackageFileName(file)
                    javafoundset.add(packagefilename)

        relatedjavafoundset = job03class.retrieveJavaFilesFromPackagefilenameList(sourcedir, javafoundset)
        self.copyFromPackageFilenameList(sourcedir,targetdir,relatedjavafoundset)
    def manuallyCopyDirsProcessing(self, sourcedir, targetdir, packdirsset):
        teocommon_operation.copyDirs(sourcedir, targetdir, packdirsset)
        # solve the consequences for the above command
        job03class = RetrieveJavaSourceRelateToPGMs()
        javafoundset = set()
        for packdir in packdirsset:
            fulldirpath = sourcedir + '\\' + packdir.replace('.', '\\')
            if os.path.isdir(fulldirpath):
                filesList = teo_find.findFilesInDirectory(fulldirpath, '.java')
                for file in filesList:
                    packagefilename = job03class.convertFullpathToPackageFileName(
                        file)
                    javafoundset.add(packagefilename)

        relatedjavafoundset = job03class.retrieveJavaFilesFromPackagefilenameList(
            sourcedir, javafoundset)
        self.copyFromPackageFilenameList(sourcedir, targetdir,
                                         relatedjavafoundset)
 def manuallyCopyFilesProcessing(self, sourcedir, targetdir, filename):
     job03class = RetrieveJavaSourceRelateToPGMs()
     filesset = teocommon_operation.readFileToSet(filename)
     relatedjavafoundset = job03class.retrieveJavaFilesFromPackagefilenameList(sourcedir, filesset)
     self.copyFromPackageFilenameList(source_dir,target_dir,relatedjavafoundset)