I want to save to a Subversion repository.
I am using the command - svn commit -m \ "\" ./cms_test/www
My square is:
public Ink doBackup () {int exitVal = -99; {Runtime rt = try Runtime.getRuntime (); Process proc = rt.exec ("svn commit -m \" \ ". / Cms_test / www"); ExitVal = proc.exitValue (); System.out.println ("Exit Process Properties:" + Exiting); } Catch (Throwable T) {T. Pristestatress (); } Return exitVal; }
This should work, or need to do something else.
Why do not you do something like that?
SVNkit is a pure Java toolkit - it implements all the Subversion attributes and provides APIs for working with Subversion Working Copies, Subversion Use and Manipulate Repositories - Your Everything inside the Java application
The advantages are:
- There is no dependency when the subversion binaries are installed;
- Correct errors
- More advanced usage-cases easier to work with;
All plus fun factor learning a new API
Comments
Post a Comment