[GeoNetwork-devel] project and personal intro / Eclipse startup

Hello everyone.

Firstly an introduction: I'm based in Hobart, Tasmania and I'm commencing
work, as a developer for Geometry (http://www.geometryit.com
<http://www.geometryit.com/&gt; ), on additions to the GeoNetwork software for
the BlueNet project (http://www.bluenet.org.au/&gt;
). I'm a seasoned Java developer, but also have a strong C++ and assembler
background and have a particular interest in real-time graphics. I have
been pointed toward this list to use as a resource to aid my understanding,
and it has been suggested that I contribute where I can.

To that end, I thought I'd just take the opportunity to document the steps
and pitfalls that I encounter when navigating through the maze of
setup/configuration information. There is a lot of information, and much of
it makes sense, but sometimes finding the right way to start is daunting.

I use Eclipse (http://www.eclipse.org/&gt; ) as my
preferred Java IDE, so these instructions explain how to connect to CVS via
that tool. I did do a search on the mailing list first to see if anyone
else was using Eclipse - there was one message detailing a problem
configuring CVS (April/2006). I did follow the online instructions to get
TortoiseCVS up and running (I develop on a Windows XP platform), and there
were a few minor 'gotchas' that are worth noting.

One big 'gotcha' -- when selecting the 'Module' in the CVS checkout, you
cannot select 'GeoNetwork_2' (which would seem the obvious choice). If you
do this, you will receive the error 'cannot open CVS/Entries for reading.
No such file or directory exists'. I had more success when I selected
'geonetwork' as the module.

So, here are the TortoiseCVS settings for GeoNetwork retrieval from CVS for
GeoNetwork.

Protocol: Password server (:pserver:)

Protocol parameters:

Server: geonetwork.cvs.sourceforge.net

Port:

Repository folder: /cvsroot/geonetwork

User name: anonymous

Module: geonetwork

Using the above, I was able to retrieve (via context-menu right-click in
Windows Explorer) the source.

However, as I stated, Eclipse is my preferred IDE - and so I prefer to use
that as my CVS/checkout tool. I don't believe it is necessary to
install/configure TortoiseCVS if you plan to use Eclipse. To open and
configure Eclipse for the GeoNetwork project, open Eclipse and use the
following steps.

* create a new project (File/New Project/CVS/Checkout project from
CVS)
* set 'Host' to geonetwork.cvs.sourceforge.net
* set 'Repository path' to /cvsroot/geonetwork
* set 'User' to anonymous
* leave 'Password' blank
* set 'Connection type' to pserver
* check 'Use default port
* click Next

You should now be able to click on 'Use an existing module." and it will
load the module names.

* select 'geonetwork' from the modules
* click Next
* click "Check out as a project in the workspace" and set 'Project
Name' to geonetwork
* click Next
* Choose your workspace location (for reference, I use
e:\BlueNet\geonetwork)
* Click Next
* Select the 'tag' (this is the CVS's 'marked code' that you want.
Typically this will be HEAD)
* Click Finish

The IDE should now be busy for a while, checking out the files from the CVS
at SourceForge.

I also found it useful to retrieve 'jeeves' (upon which geonetwork is
dependant) from SourceForge via CVS. To import Jeeves into your Eclipse
project , follow the above steps (from "create a new project"), replacing
'geonetwork' with "jeeves"

If you wish to retrieve the JDOM code/binaries (another code dependency),
you can visit www.jdom.org <http://www.jdom.org/&gt; -- you might like to add
the JAR file (if you download the binary only) as a dependency (external
JAR) to the geonetwork project.

After following the above steps, you should have two projects in your
Eclipse IDE - 'geonetwork' and 'jeeves'. As to compilation and running,
that's another issue. To be honest, I'm not quite sure why I'm unable to
compile the projects when imported via the above process into a clean
workspace. When imported into an existing workspace, I can compile OK. I'm
investigating the issue now.

The above, at least, should allow you to retrieve and browse the source.

Cheers

A

Hi Andrew,
Excellent, thanks for that and welcome to the project! Some people in the US (FGDC) also started writing up these steps lately. I think we’d better set up a page for that on the Community website and you start filling that out!?Indeed there is some problem compiling in Eclipse lately and I’m not sure why. I usually use the command line to compile using ANT, but obviously it would be better if also the standard Eclipse build process would work. Let us know when you find a solution.
Ciao,
Jeroen

On Sep 4, 2006, at 5:03 AM, Andrew Davie wrote:


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
<mime-attachment.txt>

Hi Andrew,

I added you to the manager group of the developer manual (documentation - reference manuals). You should be able to edit your content there and publish it. I did a quick paste of some of the text you provided as third page. Feel free to modify as you feel like :slight_smile:

Michelle, I wanted to ad you too, but I didn’t find an account on the site that was yours. Did you create one? And would you also like to edit the content with your experiences?

The URL of the page is http://geonetwork-opensource.org/documentation/manual/developer/setupenv

Ciao,
Jeroen

On Sep 4, 2006, at 5:03 AM, Andrew Davie wrote:


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
<mime-attachment.txt>