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

Method TomcatSetPath

class/projectModel/javaModel.py:1632–1646  ·  view source on GitHub ↗

@name 更改tomcat 项目路径 @author lkq @param port: string<端口号>

(self, port)

Source from the content-addressed store, hash-verified

1630 return False
1631
1632 def TomcatSetPath(self, port):
1633 ''&#x27;
1634 @name 更改tomcat 项目路径
1635 @author lkq
1636 @param port: string<端口号>
1637 ''&#x27;
1638 for i in self.__CONNECTROR:
1639 if 'protocol' in i.attrib and 'port' in i.attrib:
1640 if i.attrib['protocol'] == 'HTTP/1.1':
1641 i.attrib['port'] = port
1642 self.save_tomcat()
1643 if self.get_port() == int(port):
1644 return True
1645 else:
1646 return False
1647
1648 def set_site_port(self, port, version, domain):
1649 ''&#x27;

Callers

nothing calls this directly

Calls 2

save_tomcatMethod · 0.95
get_portMethod · 0.95

Tested by

no test coverage detected