[SourceJammer-users] A "file changed" program
Brought to you by:
robertmacgrogan
From: Riccardo C. <rc...@ar...> - 2005-08-08 15:14:51
|
I found the solution of "hasLocalFileChanged" by using SourceVersionChecker checker = new SourceVersionChecker(dir,archurl,archname); StoredFileInfoBean bean=checker.getStoredFileInfo(info.getNodeName()); long localid=bean.getSourceVersionUniqueID(); and long serverid=CommandCentral.getInstance().getFileLatestVersionID(info.getUniqueID()); This tells me if the server version is newer. So I still need to call hasLocalFileChanged to know if the local version is newer. You'll find enclosed a little class called jammerlist that creates a file out.txt java jammerlist c:\your_jammerclient_directory\conf %1 %2 %3 %4 %1=login, %2=pass, %3=function, %4=archive %3 = S = all files different on server O = all files checked out W = all files with something A = all files You'll find a screen shot of the result I wrote the url directly in the code, but you may easily add a new argument. Sorry I wrote also the path separator as "\" because i'm on windows.. I'll change that later. Next step is to restrict search to a certain directory only to avoid full search. I'll do that later. My suggestion to the dev team is that these lists could be added near the menu "folder/view check-out report" in client gui, because the built-in checkout report is really not enough. Thanks for your help. Albert Moliner wrote: > Oh, now I've remembered that probably the way to know whether someone had > checked a file in is to get the server's version number and compare it with the > local one. What I ignore is whether that can be checked manually or there's a > call that automates it. > Albert. > > > ----- Original Message ----- > From: "Riccardo Cohen" <rc...@ar...> > To: <sou...@li...> > Sent: Monday, August 08, 2005 9:43 AM > Subject: [SourceJammer-users] [Fwd: Re: using SimpleInterface to connect] > > > >>Any idea for my pb on hasLocalFileChanged ? >>Thanks >> >>-------- Original Message -------- >>Subject: Re: using SimpleInterface to connect >>Date: Fri, 29 Jul 2005 17:26:50 +0200 >>From: Riccardo Cohen <rc...@ar...> >>Organization: articque >>To: sou...@li... >>References: <200...@we...> >> >>[...] >> >>So now I can call the function hasLocalFileChanged(). But unfortunately it > > does not do all what I > >>want : It answers "true" when the file have been locally modified but "false" > > when the server file > >>have been checked-in by someone else. >> >>I don't see why SourceVersionChecker.isStoredFileInfoAccurate() (called in > > hasLocalFileChanged) does > >>not detect that the server version is not the same as mine in that case ? >> >>I'll be in holidays next week and see that after. >> >>Thanks for all your help >> >> >> >>-- >>Riccardo Cohen >> >>Articque >>Les Roches >>37230 Fondettes >>France >>web = http://www.articque.com >>tel: +33 02 47 49 90 49 >>fax: +33 02 47 49 91 49 >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >>_______________________________________________ >>SourceJammer-users mailing list >>Sou...@li... >>https://lists.sourceforge.net/lists/listinfo/sourcejammer-users >> > > > -- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49 |