Ank*_*kur 3 java unix svn command runtime.exec
我想保存到subversion存储库.
我正在使用命令--svn commit -m \"\"./cms_test/www
我的班级是:
public int doBackup(){
int exitVal=-99;
try
{
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("svn commit -m \"\" ./cms_test/www");
exitVal = proc.exitValue();
System.out.println("Process exitValue: " + exitVal);
} catch (Throwable t)
{
t.printStackTrace();
}
return exitVal;
}
Run Code Online (Sandbox Code Playgroud)
这应该工作,还是我需要做的其他事情.
| 归档时间: |
|
| 查看次数: |
473 次 |
| 最近记录: |