Subversionリポジトリに保存したい。
次のコマンドを使用しています--svncommit-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;
}
これがうまくいくか、それとも私がしなければならないことが他にありますか。