DISCOVER CVS repository

Variables

Set the environment variables (using export or setenv shell commands):
  • CVS_RSH : from a Unix box on CAIP's domain use rsh. From windows using cygwin use ssh
  • CVSROOT : point to /caip/u2/DevGroup/cvsroot

Checkout

  • Get to your working directory
  • cvs co DISCOVER/Client/java will get the Client files
  • cvs co DISCOVER/Server/java will get the Server files
  • cvs co DISCOVER/Portal will get the web portal files
  • cvs co DISCOVER/CORBA/Server/ will get the CORBA Server files
  • cvs co DISCOVER/ClientCE/java will get the Client for Windows CE files

Compiling the Client files

  • Get where your Client files are cd ~/work/DISCOVER/Client/
  • create a class directory mkdir class and go to the java directory cd java
  • compile the Client javac -d ../class -classpath . Client.java
  • copy the netscape and ptolemy subdirectories to the class directory cp -r netscape/ ptolemy/ ../class/
  • Get to the class directory cd ../class
  • compress all the files into a jar: jar cvf Discover.jar *
  • Move the jar file to the location of your web servers document root mv Discover.jar /where/docroot/is

Compiling the Server files

  • Get where your Server files are cd ~/work/DISCOVER/Server/
  • create a class directory mkdir class and go to the java directory cd java
  • Compile the server files javac -d ../class -classpath './;/jdk/lib/jsdk.jar' *.java
You need to make sure that you have the jsdk.jar file if you don't you can obtain it from the Java Servlet Development Kit from javasoft
At this point you need to have installed a web server supporting php,a servlet engine and a database application (mysql). Refer to the documentation at DISCOVER Setup for more information on those applications

Creating a branch for your work

  • cvs tag release-1.15 <REP> will tag the head of the repository
  • cvs rtag -b release-1.15 release-1.15-vincent <REP>
  • Checkout your branch: cvs co -r release-1.15-vincent

Mergin a branch back to the Main revision number

  • cvs update -jrelease-1.15-vincent <REP>

Committing your work back to the repository

  • cvs commit