예제 #1
0
 def configureProperties(self):
     for filename, dic in self.properties_options:
         utils.configurePropertiesWebApp(self.pretty_name, filename, self.section_name, dic)
     if self.properties_options:
         if CONFIG.isTrue("tomcat", "use_manager"):
             utils.putWait("Reloading " + self.pretty_name)
             utils.manageTomcat("reload?path=/" + self.cget("name"))
         else:
             utils.stopTomcat()
             utils.startTomcat()
     self.postConfigureProperties()
예제 #2
0
 def install(self):
     # try to install
     if not installer.Installer.install(self):
         # else, get infos
         self.configure()
     utils.startTomcat()
예제 #3
0
 def postConfigure(self):
     if self.cisTrue("jar_install"):
         lib = CONFIG.get("tomcat", "catalina_home") + "lib/"
         utils.sh_cp(self.cget("repo"), lib)
         utils.stopTomcat()
         utils.startTomcat()