代码拉取完成,页面将自动刷新
同步操作将从 Plato/rpc-repo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
import shutil
import json
import platform
import sys
import subprocess
from pub_driver import Publisher
from option import Options
from xml.dom.minidom import parse
import xml.dom.minidom
class Publisher_java(Publisher):
def init(self):
self.cwd = os.getcwd().replace('\\', '/')
def publish(self, idl_name, service_name, out_dir, orig_dir):
working_path = os.getcwd()
src_path = working_path+'/src/java/'+idl_name
os.chdir(src_path)
print('change dir to '+src_path)
print("executing [mvn clean deploy]")
subprocess.call(["mvn", "clean", "deploy"], shell=True)
print("deploy maven project success")
DOMTree = xml.dom.minidom.parse(src_path+"/pom.xml")
Data = DOMTree.documentElement
groupId = Data.getElementsByTagName("groupId")[0].childNodes[0].data
artifactId = Data.getElementsByTagName("artifactId")[0].childNodes[0].data
version = Data.getElementsByTagName("version")[0].childNodes[0].data
print('''
<dependency>
<groupId>%s</groupId>
<artifactId>%s</artifactId>
<version>%s</version>
</dependency>'''% (groupId, artifactId,version))
os.chdir('../../')
return True
def check(self):
return True
def pub_service(self, idl_name, service_name, out_dir):
pass
def copy_file_windows(self, from_dir, to_dir, prefix, suffix, service_name):
pass
def copy_file_linux(self, from_dir, to_dir, prefix, suffix, service_name):
pass
def create_config_file(self, to_dir):
pass
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。