Prerequisites
In order to be a TriggerDB code developer you will have to have the following privileges:Code Development ProceduresTo request these privileges contact Jim Patrick or William Badgett
- an account on any online linux box
- an oracle account to the online databases
- your linux account should be in trusted list on alpha station b0alpha00.fnal.gov
- write privileges to the TriggerDB online CVS repository
- be a member of the online TriggerDB code development UNIX group
Compiling Java
- do all your development work on one of the online linux machines, like b0dapXX
- check out the code out of the repository into you home area
setup cvs -q online
cvs co TriggerDB- once you developed and thoroughly tested a piece of code, you can check it in the CVS
setup cvs -q online
setup kerberos
kinit
cvs ci -m"your comments" filename- now you will have to update the development area
go to the directory /cdf/code-common/cdfonline/TriggerDB/devel/
update it using cvs update
make the right access attributes for the files by executing commandchmod g+rwx -R /cdf/code-common/cdfonline/TriggerDB/devel
compile the source files- to test the development release as the "current", redefine /cdf/code-common/cdfonline/TriggerDB/current symbolic link to point to /cdf/code-common/cdfonline/TriggerDB/devel directory
- if during the testing there are problems with the code, you can always rollback to the safe frozen version vX_YZ of the code by redefining the symbolic link /cdf/code-common/cdfonline/TriggerDB/current back to /cdf/code-common/cdfonline/TriggerDB/vX_YZ directory
- after the extensive and successful testing of the development release you can tag it as the last frozen version
go to development area
cd /cdf/code-common/cdfonline/TriggerDB/devel
make sure that development release is up to datecvs update
tag the TriggerDB CVS package by issuing commandcvs tag vX_YZ
go to product area
(where version should be incremented appropriately)cd /cdf/code-common/cdfonline/TriggerDB
checkout the tagged release from CVScvs checkout -r vX_YZ
rename new TriggerDB directory with the new product release name
(this will create TriggerDB directory in the area you are in)mv /cdf/code-common/cdfonline/TriggerDB/TriggerDB /cdf/code-common/cdfonline/TriggerDB/vX_YZ
make the right access attributes for the new files by executing commandchmod g+rwx -R /cdf/code-common/cdfonline/TriggerDB/vX_YZ
redefine the symbolic link /cdf/code-common/cdfonline/TriggerDB/current to the new /cdf/code-common/cdfonline/TriggerDB/vX_YZ directory
There is a file called java.csh at the top of the release. To compile a java source file, do the following:
- source java.csh
- javac -d classes/ sources/triggertable/*.java
- javac -d classes/ sources/triggertable/*/*.java