Check out the csli-calo directory into the same workspace as you use for our local version of the projects
(the scripts require that csli-calo is in the same directory as the original versions of calo, corpora, etc.)
Building
Perform an SVN "update"
Check to see if there have been any changes made to SVN by SRI.
Hopefully this will never be the case, but if so, migrate any changes over to our CVS before proceeding.
From the Eclipse menu Run - External Tools, run the script CALO Prepare SRI Distro (cygwin only).
This creates the run scripts that SRI will run from the calo/run directory, creating a classpath for them which references all jars in the system.
Sanity check: You should now have four new run scripts under calo\run: NOMOS.bat, NOMOS.sh, Service Manager.bat, and Service Manager.sh.
From the Eclipse menu Run - External Tools, run the Ant build script for each project in the following order: util, model, corpora, calo (e.g., CALO Build SRI Distro (util) ).
This generates zip files for each project and puts them in the '-sri' versions of the projects.
The only code that is packaged is the source in the calo project.
Sanity check: You should now have 9 new .zip files under the root directory of the csli-calo project you checked out from SVN.
From the Eclipse menu Run - External Tools, run the script CALO Migrate SRI Distro
This cleans out the current contents of the SRI projects, unzips the new files into the right places, and moves some things around.
If it tells you the tool for this file does not exist, it's either because you don't have cygwin installed, or you don't have C:\cygwin\bin on your path.
Alternate approach:
Open Cygwin command prompt.
Type "unzip" to make sure you have unzip installed.
Navigate to the csli-calo directory.
Run ./../calo/dist/distribute-calo-y4.bash.
Refresh the SRI projects in Eclipse and perform an SVN commit.
This will check in any of the changes we've made.
Hopefully SVN is smart enough to capture which things have changed and which haven't.