13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.3 A GUI: jCVS211and the differences between 1.2 and 1.1. This means that it is always very efficientto get the latest versi<strong>on</strong> of any file. (Other systems have tried keeping theoriginal and the deltas for each revisi<strong>on</strong> going forward—but that gets very expensiveto retrieve versi<strong>on</strong>s with hundreds of modificati<strong>on</strong>s. With CVS, thelatest versi<strong>on</strong> is always at hand.)An excepti<strong>on</strong> to this are “binary” files, those <strong>on</strong> which CVS can’t do keywordsubstituti<strong>on</strong>s. The revisi<strong>on</strong>s of those files, such as JPEG image files, w<strong>on</strong>’tbe stored by deltas, but by complete copies of each revisi<strong>on</strong>.8.3A GUI: JCVSIf you are a die-hard GUI kind of developer, and aren’t yet c<strong>on</strong>vinced of thepower and c<strong>on</strong>venience of the command line, then reread Secti<strong>on</strong> 1.3.10. Ifyou are still not c<strong>on</strong>vinced, that’s OK—you can still use CVS with the help ofa GUI written entirely in Java. This is an implementati<strong>on</strong> of the CVS client,that is, the porti<strong>on</strong> of the CVS system that communicates with a remote server.The server does the real work of managing the versi<strong>on</strong>s; the client collects thedata, manages the local files, and communicates with the server.If you’re going to use jCVS, you will need to get a CVS server up andrunning—or maybe your project administrator has already d<strong>on</strong>e that. If so,read <strong>on</strong>.8.3.1 Installing jCVSjCVS can be downloaded from www.jcvs.org where you can get it as a zippedarchive file. Unzip it into a directory and create a shell script to make it easy toinvoke. Since jCVS is an actual Java program, all the shell script needs to do isto ensure that its JAR files are <strong>on</strong> the CLASSPATH and then invoke the jCVSmain class.Here’s a straightforward shell script which will accomplish that:JCVS="/usr/local/jCVS-5.2.2"CLASSPATH="${CLASSPATH}:${JCVS}/jars/activati<strong>on</strong>.jar"CLASSPATH="${CLASSPATH}:${JCVS}/jars/jcvsii.jar"CLASSPATH="${CLASSPATH}:${JCVS}/jars/jh.jar"CLASSPATH="${CLASSPATH}:${JCVS}/jars/js.jar"java -jar ${JCVS}/jars/jcvsii.jar

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!