Re: Resetting global options on client?
Robbie Gibson <[email protected]> Mon, 22 Jul 2002 11:32:22 +0100 (BST)
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
--- Milos Kleint <[email protected]> wrote: > Robbie Gibson wrote: > > I am trying to build a small app around javaCVS > which > > will retrieve a list of files to be updated for a > > given module, then ask for individual confirmation > of > > each one before performing a real update. This is > > automation of my normal command-line workflow: > > cvs -qn update ... > > cvs -q update file1 file2 filen > > > > I'm using the GlobalOptions to specify the > doNothing > > flag, however it seems as if this object is only > used > > on the first call to > > client.executeCommand (command, globalOptions) > > > > Is this correct? If not, what am I doing wrong? > If > > yes, what else do I need to do? > > hmm.. I create a new Client for every command (I do > that primarily because a new pserver connection > should be created for each command.. theoretically > it's not necessary, however I believe some people > reported problems with such approach.. cvs is not > ready for that.) > OK I didn't realise that - I now create a new Client & PConnection each time and everything works fine. Is there any more cleanup to do when I'm finished with a client/connection pair other than Connection.close ()? > However I'm not sure I know the answer to your > questions, looking at the sources is the safest > way... > > > > > > I'm using the 3.3.1 Netbeans version of cvslib > > (2002-03-04). > > > > Thanks for your help, > > Robbie > > > > PS Is there a zip file/jar file available of the > > source corresponding to this release? What is the > > best way to get the source code matching the code > that > > I have? > > do a checkout of the javacvs module on the > netbeans's cvs server. > the library resides in the javacvs/libsrc using the > -r release33 branch tag, you'll get the sources > for 3.3.2 version (which almost or entirely matches > the 3.3.1 sources..not sure here) > some sources are available on the project's web page > under "Files" category. > > Thanks a lot for your quick reply! Robbie __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com