This project's source code hosted on SourceForge.net can be checked out through anonymous CVS (pserver). This is useful for those who are interested in following the development closely, or for some reason need an older snapshot. A continuously updating version of CoCoViLa that will get all the new features (and bugs) as soon as they are committed to the CVS repository can be obtained by following the instructions on this page.
Basically, there are three options. The first option is to use Sun JDK and Apache Ant for building CoCoViLa. The second option is for cases when there is a JRE available but installing a full JDK is not possible: Sun JRE and Apache Ant for building CoCoViLa. The third options is to use your favourite IDE for getting the code from the repository and compiling it. This is not covered here, see the documentation of the IDE.
You may also examine the CVS repository via the web-based CVS repository viewer.
When prompted for a password for anonymous by a CVS client, simply press the Enter key.
NB! The SourceForge project name has changed from vsledit
to cocovila. The name change also caused the address of the CVS
repository to change. To continue using your old working copy created before
September 18, 2009 the CVS/Root files need to be modified throughout the
directory tree. This can be automated using an IDE or by running the following
command in the CoCoViLa directory at the top level:
find . -name 'Root' -exec perl -pi -e 's/vsledit/cocovila/g' {} \;
Using Ant and Java Development Kit (JDK)
To get the latest CVS version up and running quickly just follow these three steps. We assume here that you have a CVS client, JDK 1.6, and Apache Ant already properly set up. If this is not the case then please follow the instructions provided with the respective software packages or refer to the documentation of your operating system.
- Check out the latest revision of the application and standard packages from CVS to the new directory cocovila-cvs.
The module "cocovila" contains everything needed for building the sources and working with standard packages.
cvs -z3 -d:pserver:anonymous@cocovila.cvs.sourceforge.net:/cvsroot/cocovila co -P -d cocovila-cvs cocovila - Change to the source directory:
cd cocovila-cvs/src - Start CoCoViLa Scheme Editor or Class Editor:
ant run-se
or
ant run-ce
Later, to update your local source tree to the latest version, execute:
cvs up -Pd
in the directory cocovila-cvs.
The commands "ant run-se" and "ant run-ce" started in cocovila-cvs/src
will automatically take care of compiling the changes so addidional
steps should not be required. If something does not work as expected
an "ant clean" followed by "ant run-..." might help.
Using Ant and Java Runtime Environment (JRE)
It is also possible to compile the source code of CoCoViLa with the bundled compiler.
In this case only the JRE is needed and the JDK is not required.
To use this method the following line must be added (or uncommented) to the file src/build.properties after checking out the source from CVS:
compiler=org.eclipse.jdt.core.JDTCompilerAdapter
By default Ant cannot find the bundled compiler and putting it to the CLASSPATH environment variable is not recommended.
Therefore, all the ant commands must be given an additional command line argument: "-lib ../lib/ejc.jar".
The command sequence to download the code and get CoCoViLa running would be as follows (compare to the commands given in previous section):
- cvs -z3 -d:pserver:anonymous@cocovila.cvs.sourceforge.net:/cvsroot/cocovila co -P -d cocovila-cvs cocovila
- cd cocovila-cvs/src
- Edit build.properties to add or uncomment the compiler parameter
- ant -lib ../lib/ejc.jar run-se (note the -lib argument here)