Re: Source code.

Ashok Madhavan <[email protected]> Tue, 23 Dec 2003 08:29:09 -0800 (PST)
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
Thanks Martin.

The Problem which i am facing is slightly differnet
from the normal one. Users will upload a file and i
have to add these streams into cvs server as files.
When the users want to view any uploaded file, i will
have to go to cvs server, get it and stream it bcak to
the user.

Basically, the command-line interface will not be
useful in this case and i am trying to use the javacvs
library to do this.

Is it possible to do above mentioned functionality
using javacvs.

regards
ashok

--- Martin Entlicher <[email protected]> wrote:
> Hi Ashok,
> 
> There's a command-line interface in the javacvs
> library. If you go to
> javacvs/libmodule and run 'ant',
>
javacvs/libmodule/netbeans/modules/autoload/cvslib.jar
> file will be created.
> That jar have defined Main-Class in it's manifest,
> therefore you can use "java
> -jar cvslib.jar" instead of cvs.exe.
> 
> Therefore in order to e.g. commit a file you write:
> java -jar cvslib.jar ci FileToCommit.java
> 
> To make things easier, I've created a simple
> launcher "~/bin/jcvs", which
> contains just one line:
> java -jar
>
~/nb_all/javacvs/libmodule/netbeans/modules/autoload/cvslib.jar
> "$@"
> 
> Then you can use "jcvs" instead of "cvs". Like:
> jcvs ci FileToCommit.java
> 
> Similar launcher should be possible to make for
> Windows as well.
> 
> Regards,
> Martin
> 
> Ashok Madhavan wrote:
> > 
> > Hi all,
> > 
> > I just downloaded the source, jar files for
> javacvs
> > and was successful in checking out a module from
> cvs
> > successfully.
> > Thanks a lot to all the people who made it
> possible.
> > 
> > If i want to commit a file using the javacvs
> classes
> > how do i do it.
> > I am trying to build a simple web-based system
> thro
> > which people can download files from a cvs server
> to
> > their local machine. Also they can check-in files
> into
> > the cvs server.
> > I am thinking of using javacvs for this.
> > How do i use javacvs classes to commit and update
> from
> > the cvs server.
> > 
> > my simplest case is a web-user requests for a file
> and
> > from the appserver i get the file from the cvs
> > repository and stream it back to the web-user. The
> > user makes some changes to that file and checks-in
> the
> > file back into the cvs server.
> > 
> > If anybody can help that would be great.
> > 
> > regards
> > Ashok Madhavan
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [email protected]
> > For additional commands, e-mail:
> [email protected]
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [email protected]
> For additional commands, e-mail:
> [email protected]
>