Re: Source code.
Martin Entlicher <[email protected]> Tue, 23 Dec 2003 10:26:36 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
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]