MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / Initialization

Method Initialization

class/projectModel/javaModel.py:656–684  ·  view source on GitHub ↗

@name 初始化XML文件 @author lkq<2021-08-27> @param version @return string

(self, version)

Source from the content-addressed store, hash-verified

654 return False
655
656 def Initialization(self, version):
657 ''&#x27;
658 @name 初始化XML文件
659 @author lkq<2021-08-27>
660 @param version<string>
661 @return string
662 ''&#x27;
663 if version == '7' or version == 'tomcat7' or version == 7:
664 if self.xml_init(self.__tomcat7_server):
665 return True
666 else:
667 return False
668 elif version == '8' or version == 'tomcat8' or version == 8:
669 if self.xml_init(self.__tomcat8_server):
670 return True
671 else:
672 return False
673 elif version == '9' or version == 'tomcat9' or version == 9:
674 if self.xml_init(self.__tomcat9_server):
675 return True
676 else:
677 return False
678 elif version == '10' or version == 'tomcat10' or version == 10:
679 if self.xml_init('/usr/local/bttomcat/tomcat10/conf/server.xml'):
680 return True
681 else:
682 return False
683 else:
684 return False
685
686 def get_server(self, version, domain=None):
687 ''&#x27;

Callers 9

get_tomcat_infoMethod · 0.95
set_tomcat_duli_pathMethod · 0.95
set_tomcat_duli_portMethod · 0.95
tomcat_vhost_deleteMethod · 0.95
replce_tomcat_portMethod · 0.95
get_project_listMethod · 0.95
fix_projectMethod · 0.95
_multi_remove_neizhiMethod · 0.95

Calls 1

xml_initMethod · 0.95

Tested by

no test coverage detected