SCM: Accessing and Getting Source Code of deegree
With the use of SVN deegree reorganized some modules in the SCM like the following:
- apps - Source of clients like iGeoPortal and U3R
- base - Main module where most Java code lives
- contrib - contribution to the deegree project
- demo - demo applications
- docs - all documentation
- test - tests for JUnit and OGC Testengine
Viewing the SCM via Browser
Go to the SCM
SVN command line client
If you have the SVN command line client installed, you may use the following shell commands (presented in bash flavour) to get a fresh working copy:
svn checkout https://svn.wald.intevation.org/svn/deegree/base/trunk
Next steps
To compile, test and deploy deegree using the ant build file, please have a look at the readme.txt file in the deegree root directory.
Checking out and setting up deegree in Eclipse
The following step-by-step instruction refers to the menu structure and naming of Eclipse 3.2.2.. Be aware to have a SVN plugin like Subclipse installed.
- Run Eclipse
- Open a new project: File > New > Project
- Select SVN > Checkout Projects from SVN, click "Next"
- Create a new repository location: "https://svn.wald.intevation.org/svn/deegree/", click "Next"
- Select Folder to checkout
- Select the folder with the according content (see above). and click "Next"
- Select "Check out as a project configured using the New Project Wizard". , click "Next"
- "Java Project", click "Next"
- Enter name for the new project, e.g. "deegree", make sure the compiler compliance level is set to (Java) "5.0"
- Select "Finish"
- Confirm the question to open the Java Perspective
- Afterwards, you have to edit the build path of the new project:
- Project -> Properties
- Select "Java Build Path"
- Select "Libraries" -> "Add JARs"
- Add each and every (!) jar from the "lib" directory and click OK
- Select "Source"
- Select "deegree", click "Remove"
- Click "Add Folder", select "src" and "test", click "OK"
- Change "Default output folder" to "deegree/classes"
- Click "OK"
Eclipse will then try to build deegree. This may take a moment...
However, you will still see compile errors. This is due to missing libraries (with commercial licenses, e.g. Oracle) which you need to obtain yourself. Alternatively, you can disable the compiling of the classes that depend on these libraries.
|