[SourceJammer-users] Re: using SimpleInterface to connect
Brought to you by:
robertmacgrogan
From: Riccardo C. <rc...@ar...> - 2005-07-28 17:00:25
|
(PS:sorry for the mail on devel list, i made a little mistake) Thanks a lot Now my loop work correctly and I can know if a file is checked out with : if (info.isCheckedOut()) { String user=info.getCheckedOutToUser(); What I would like to do is also check if the file on disk is different (because someone has checked in a file) I try to use CommandCentral.getInstance().hasLocalFileChanged, but the second argument is a directory, and I could not find any way to have it from NodeInfo. I could not find any way of getting the default archive path locally with guiconf (getDefaultWorkingDirectory answers null) Thanks for any help Robert MacGrogan wrote: > Hi, Riccardo. > > I think your problem is that you need to call setOut() on SimpleInterface before you do anything > else. This is a dumb requirement, I know. There should be a default value, but this is how it > works now. > > For a pretty good example of some code that uses SimpleInterface, take a look at the code for > sj-eclipse. You can get it from here: > > http://sourceforge.net/project/showfiles.php?group_id=89891&package_id=145383 > > (The code packaged in the release file.) > > As for linking the SJ compiled classes up with the source files for easier debugging, you don't > have to use ant. Just download the source release and use jar to jar un-jar the sj-server.jar file > and then re-jar it with the source files. > > Good luck. > > --Rob > > --- Riccardo Cohen <rc...@ar...> wrote: > -- 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 |