Example #1
0
 def __buildTestFiles(self):
     fsep = PlatformProperty.FileSep
     modTestDir = self.ProjectBaseDir+'test'+fsep+'app'+fsep+'modules'+fsep+self.ModuleName+fsep
     FileUtils.createDir(modTestDir)
     FileUtils.touchFile(modTestDir+'test_'+self.ModuleName+'.py')
     FileUtils.touchFile(modTestDir+'test_'+self.ModuleName+'_controllers.py')
     FileUtils.touchFile(modTestDir+'test_'+self.ModuleName+'_services.py')
Example #2
0
 def modularize(self):
     sep = PlatformProperty.FileSep
     modDir = self.ProjectBaseDir+'app'+sep+'modules'
     modTestDir = self.ProjectBaseDir+'test'+sep+'app'+sep+'modules'
     if not FileUtils.dirExists(modDir):
         FileUtils.createDir(modDir)
     if not FileUtils.dirExists(modTestDir):
         FileUtils.createDir(modTestDir)
Example #3
0
 def __buildModDir(self):
     FileUtils.createDir(self.ModuleBaseDir+self.ModuleName)
Example #4
0
    def __buildDirTree(self, isSimple):
        s = PlatformProperty.FileSep
        databaseDirs = ['database'+s+'ddl'+s+'objects',
                        'database'+s+'ddl'+s+'packages',
                        'database'+s+'data',
                        'database'+s+'user']
        containerDirs = ['build', 'test', 'app', 'dist']
        testDir = self.ProjectBaseDir+'test'+s
        appDirs = ['lib',
                   'conf',
                   'modules']
        FileUtils.createDir(self.ProjectName)
        for cDir in containerDirs:
            FileUtils.createDir(self.ProjectBaseDir+cDir)

        FileUtils.createDir(testDir+'app'+s+'lib')
        FileUtils.createDir(self.ProjectBaseDir+'build'+s+'def-files')

        for dDir in databaseDirs:
            FileUtils.createDir(self.ProjectBaseDir+'dist'+s+dDir)
            FileUtils.createDir(self.ProjectBaseDir+'app'+s+dDir)

        for appDir in appDirs:
            if appDir.endswith('modules'):
                if not isSimple:
                    FileUtils.createDir(self.ProjectBaseDir+'app'+s+appDir)
                    FileUtils.createDir(testDir+'app'+s+'modules')
            else:
                FileUtils.createDir(self.ProjectBaseDir+'app'+s+appDir)