def compile(self):
   self.pretreatment(self._SOURCE_PATH, self._DESTINATION_PATH)
   os.chdir(self._DESTINATION_PATH)
   self.setPreprodConfig(os.path.join(self._DESTINATION_PATH, 'config/config.js'))
   Compiler.compile(self)
   self.compileTest()
   self.removeUnpreservedFiles()
  def compile(self):
    self.pretreatment(self._SOURCE_PATH, self._DESTINATION_PATH)
    os.chdir(self._DESTINATION_PATH)
    self.setProdConfig(os.path.join(self._DESTINATION_PATH, 'src/config/config.js'))
    Compiler.compile(self)

    self.removeUnpreservedFiles()
    print "@@@@" + self._PROD_DESTINATION_PATH
    self.zip(self._PROD_DESTINATION_PATH, os.path.join(self._PROD_DESTINATION_PATH, '..', 'cottontracks'))
  def __init__(self, SOURCE_PATH, DESTINATION_PATH, GOOGLE_CLOSURE_COMPILER, psBrowser):
    self._GOOGLE_CLOSURE_COMPILER = GOOGLE_CLOSURE_COMPILER
    self._PROD_DESTINATION_PATH = os.path.join(DESTINATION_PATH, "preprod")
    Compiler.__init__(self, SOURCE_PATH, self._PROD_DESTINATION_PATH, psBrowser)

    self._dirToRemove = ['behavior', 'config', 'controller', 'core', 'db', 'messaging', 'model', 'py', 'translators', 'ui', 'utils']
예제 #4
0
 def __init__(self, SOURCE_PATH, DESTINATION_PATH, psBrowser):
   self._PROD_DESTINATION_PATH = DESTINATION_PATH
   Compiler.__init__(self, SOURCE_PATH, os.path.join(DESTINATION_PATH, "dev"), psBrowser)
예제 #5
0
 def compile(self):
   self.pretreatment(self._SOURCE_PATH, self._DESTINATION_PATH)
   os.chdir(self._DESTINATION_PATH)
   Compiler.compile(self)
   self.compileTest()
   self.createIntegrationTests()