Re: CVS doubt

Milos Kleint <[email protected]> Thu, 04 Sep 2003 17:54:06 +0200
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
hello, sorry for late reply.
I was on vacation for a month.


> Date: Sun, 24 Aug 2003 13:58:18 -0700 (PDT)
> From: Ashok Madhavan <[email protected]>
> Content-Type: text/plain; charset=us-ascii
> Subject: [javacvs-dev] CVS doubt


> hi All,
> I am writing a server side program which must
> basically connects to a cvs server and gets / updates/
> inserts files into the cvs repository. 

i'm kind of confused here?
do you intend to update/change the repository or the working directory (your local copy)?

> I am using netbeans javacvs and i was able to login
> and connect to the cvs rpository without any problem.

> Then i tried to checkout a module but i got exceptions
> from StandardAdminHandler. I guess i am missing the
> 'cvs' directory and the admin files.

well, you should not any files when running the checkout command. these are necessary for update/commit/.. but not for checkout. what exactly is the exception?



> My question is, Is there a way by which i can override
> the StandardAdminHandler so that i dont need the 'cvs'
> directory. 

not completely sure whta you want to achieve, your suggested solution might or might not solve the problem, can't tell without more details.


> my simplest case is a web-user requests for a file and
> from the server-side i get it from the cvs repository
> and stream it back to the web-user. 

you should be able to do that with a checkout. for simplicity you could just perform the checkout in a temp directory (the single file only) send it to the user and then delete the temp dir.
a more difficult solution would be to rewrite the handlers to stream the file directly to user functioning as a pipe.



Milos


> Regards
> Ashok Madhavan