Example #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()
Example #2
0
 def install(self):
     # try to install
     if not installer.Installer.install(self):
         # else, get infos
         self.configure()
     utils.startTomcat()
Example #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()