@name 更改tomcat 项目路径 @author lkq @param port: string<端口号>
(self, port)
| 1630 | return False |
| 1631 | |
| 1632 | def TomcatSetPath(self, port): |
| 1633 | ''' |
| 1634 | @name 更改tomcat 项目路径 |
| 1635 | @author lkq |
| 1636 | @param port: string<端口号> |
| 1637 | ''' |
| 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 | ''' |
nothing calls this directly
no test coverage detected