svn - JavaHL.Unable to commit with my java application -


i want control subversion environment (sliksvn 1.8.10) small java programm on windows 7 64 bit machine. need use javahl (1.8.x) not svnkit. have implemented funktion checkout repository, add files work copy , commit files repository. checkout , add function works fine far. problem ist now, commit-funktion don't work correctly.

public void commit() {  set<string> paths = new hashset<string>(); paths.add( "c:\\users\\xxx\\documents\\svntest\\test3" ); depth dep = depth.infinity; );   commitmessagecallback handler = new commitmessagecallback() { @override public string getlogmessage(set<commititem> arg0) {     // todo auto-generated method stub     system.out.println(arg0.size());     return null; } };  commitcallback callback = new commitcallback() {  @override public void commitinfo(commitinfo arg0) {     // todo auto-generated method stub     system.out.println(arg0.getauthor());  } }; try {    client.commit( paths, dep, true, false, null, null, handler, callback );  } catch( clientexception e ) {   // todo auto-generated catch block   e.printstacktrace(); }  } 

when process commit function, commitmessagecallback function amount of commit items. works still. problem now, don't receive commitinfo commitcallback function. think maybe, process breaks in der subversion environment , function no result. after process, commit items still in svn status "item scheduled addition".

i work on problem since few days different version of javahl.jar api, not successful. big problem also, receive no error message , dont know wrong in code.

have idea wrong in commit function ? perhaps libsvnjavahl-1.dll file not compatible javahl api's ?

thank much

best regards simon

okay, solved problem now. easy solution use org.tigris.subversion instead of org.apache.subversion library classes. question is, why exist 2 different version javahl library ?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -