I use Eclipse for compiling and building DSpace sources. The steps are
as follows :
1) Install Java SDK: You will have an installable (rpm or windows
installable) execute it to install JDK. Install it in a perferred
2) Install Eclipse: You will have a zip file (eclipse-SDK-2.1.1.zip)
extract it to the location where you want eclipse. You might have to
define the JAVA_HOME for eclipse.
3) DSpace project: Start Eclipse and create a new Java Project.=20
a) Define the workspace as some directory that you wish to save the
Dspace code in.=20
b) Extract the Dspace code to this folder (I used
dspace-1_2-beta2.tar.gz). Right click on project and click 'Refresh'.=20
c) Add servlets.jar and mail.jar to the lib folder.
4) Change Java Build settings: Right click on the project and click on
a) Go to Java Build Path. Go to source tab, remove 'Dspace' folder
from Source/build path list. Add 'Dspace/src' to the list.=20
b) Change the output folder to dspace/build/classes.=20
c) Go to Libraries tab, click on 'Add jars' button. Select all jar
files from lib folder and add them.
5) Ant build: You will find a build.xml with the source. this is used to
compile files and create war files. Open it and change the 'default
attribute in the 'project' tag to 'build_wars'. Select build.xml in the
left hand pane and execute it by 'Run' (top menu) -> External Tools ->
'Run As' -> 'Ant build'.
I am currently unable to access the Dspace CVS so I used the source zip.
With CVS, I guess the the change will only be in step 3.b.