工具类
来源:互联网 发布:阿里小号 知乎 编辑:程序博客网 时间:2024/05/19 06:14
import java.io.IOException;
//将svn上的压缩包下载到本地指定路径下
public class SvnCheckoutTvmcBase {
public static void getPath(String[] path,String toPath){
try{
for(int i=0;i<path.length;i++){
String cmdStr = "cmd /c svn export"+" "+path[i]+" "+toPath+" "+"--username 用户名 --password 密码 --non-interactive --trust-server-cert";
Runtime.getRuntime().exec(cmdStr);
}
}catch(IOException e){
e.printStackTrace();
}
}
public static void main(String[] args) {
System.out.println("共享成果物压缩包的详细路径:args[0]=="+args[0]);
System.out.println("将共享成果物压缩包下载到该路径下:args[1]=="+args[1]);
String path[]=args[0].split(",");
String tPath=args[1];
getPath(path,tPath);
}
}
0 0
- 工具类
- 工具类!!!!
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 工具类
- 我的家乡:三河古镇已经登上央视CCTV-1新闻联播啦!
- nginx服务傻瓜搭建
- 按照特定符号分割字符串为数组
- 对象析构谈—— delete this 的使用及注意事项
- HDU 3966 Aragorn's Story(树链剖分+线段树区间更新+手动扩大内存)
- 工具类
- 【UIKit】-12-UIApplication - appDelegate 中
- an error has occurred.See error log for more details
- poj3414
- Android OTG (USB Hos) 编程
- 堆与堆排序
- powershell远程管理服务器磁盘空间
- DataTable行列转换
- 对互联网海量数据实时计算的理解