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

Method Initialization2

class/projectModel/javaModel.py:1534–1560  ·  view source on GitHub ↗

@name 初始独立项目 @author lkq 2021-08-28 @param site: string<项目名称> @param version: string<版本号>

(self, version, site)

Source from the content-addressed store, hash-verified

1532 # public.writeFile('/etc/hosts',ret)
1533
1534 def Initialization2(self, version, site):
1535 ''&#x27;
1536 @name 初始独立项目
1537 @author lkq 2021-08-28
1538 @param site: string<项目名称>
1539 @param version: string<版本号>
1540 ''&#x27;
1541 # ! 项目初始化有关tomcat部分移至Tomcat版本管理
1542 if self.xml_init(self.__site_path + site + '/conf/server.xml'):
1543 return True
1544 # if version == '7' or version == 'tomcat7' or version == 7:
1545 # if self.xml_init(self.__site_path + site + '/conf/server.xml'):
1546 # return True
1547 # else:
1548 # return False
1549 # elif version == '8' or version == 'tomcat8' or version == 8:
1550 # if self.xml_init(self.__site_path + site + '/conf/server.xml'):
1551 # return True
1552 # else:
1553 # return False
1554 # elif version == '9' or version == 'tomcat9' or version == 9:
1555 # if self.xml_init(self.__site_path + site + '/conf/server.xml'):
1556 # return True
1557 # else:
1558 # return False
1559 # else:
1560 # return False
1561
1562 def replce_tomcat_port(self, get):
1563 ''&#x27;

Callers 7

set_tomcat_duli_pathMethod · 0.95
set_tomcat_duli_portMethod · 0.95
pendent_tomcat_infoMethod · 0.95
set_site_portMethod · 0.95
get_project_listMethod · 0.95
fix_projectMethod · 0.95

Calls 1

xml_initMethod · 0.95

Tested by

no test coverage detected