(assuming eclipse 3.2.1) (90F)
- Download and Install Subclipse (90G)
- Window->Show View->Other... (90H)
- SVN->SVN Repository (90I)
- Right-click in the window and select new->Repository Location... (90J)
- enter: http://smi-protege.stanford.edu/repos (90K)
- Choose package you are interested in downloading. Assuming protege-core.. (90L)
- Right click on protege-core->trunk. It is important to choose trunk if you want the latest version, rather than the directory 'protege-core', since you will get a lot more code than you really want. More on subversion's philosophy of folder names can be found here (90M)
- Choose "Checkout..." (90N)
- Pick "Check out as a project configured using the New Project Wizard" (90O)
- In the New Project wizard, be sure to choose "Java Project". This ensures that you will be downloading the code and treating it as Java, rather than random files. (90P)
- Choose an appropriate local name for the project. In this case, 'protege-core' would do just fine. (90Q)
- Click finish and say okay to the "Confirm Overwrite" dialog. (90R)
- You should now have appropriately loaded your protege source in Eclipse (90S)
- You may want to right click on the top level folders where source code exists (e.g. src/ or junit/) and assign Build Path->Use as source folder. This will avoid having a discrepancy between the package of your classes and the folders your packages are stored in. You should be doing this in the Package explorer. (90X)
- You will want to run the ANT build files, you will want to add tools.jar from your jdk installation in the antfile build menu. Right click on build.xml and select Run as->Ant Build... and add tools.jar to the classpath menu. This is because when ant is launched, a separate process is started from eclipse that uses its own classpath. (90Y)
- For editing any packages other than protege-core, you will need to right-click on the project, and select Properties and configure the build path. Select the protege-core project as a dependency. For doing the Ant builds, you will also have to add the protege.jar that is generated in the dist directory in the classpath menu. (90Z)
- The ANT file makes a call to JavaCC, which you'll need to download. It creates some .java files on the fly before compilation, so you'll probably need to run this in order to get protege to build properly. If you do, you may have to refresh the protege-core project inside Protege to pick up the new classes so that they autocompile. (910)
- You will want to set the PROTEGE_HOME variable in your ANT build to a location that is agreed upon by all projects you check out from SVN. This location is the place that Protege begins running in when it is launched. Protege makes assumptions about files that are located in this location, and the ANT scripts will copy certain files and libraries into these locations that are expected. This is why it is important that PROTEGE_HOME is consistent across projects. (911)