我想保存到颠覆存储库。
我正在使用命令 - 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;
}
如果这行得通,还是我需要做其他事情。