Eclipse, Ant, and CVS



** WARNING: _Not_ for the feint of heart. **

I work on a large and complex software project. Our directory
structure is part inherited, part legacy, and can best be described as
a horible broken mess. We have an ant script that brings in various
libraries, utilities, and directories to compile our source into
various output directories. Our source is managed by CVS. Our build
is managed by Ant. I am torn between the two.

If I use source that's already checked out and create a project using
Ecliplse 3.1 "Java Project from Existing Ant Buildfile", it performs a
great deal of magic, imports the proper libraries, sets up the
necessary source files, and with a few tweaks, gets to a point where it
can build the source and put it in the proper location. I still have
to use the ant script to package the class files into their respective
JAR files, but I'm ok with that. The problem in this scenario is that
if I try to connect the project to our CVS repository using "Team ->
Share Project...", it gets all confused, and after much processing, is
convinced that ever existing file needs to be added to the repository
and every repository file needs to be downloaded. Not good.

If I check out the java project from the repository using Eclipse
"Checkout projects from CVS", I can't figure out how to get Eclipse to
read the Ant script and do all its magic setting up the libraries and
paths correctly after the project has been checked out. Immediatly,
Eclipse begins complaining about compile errors and unresolved
references throughout the source tree. Not good.

I need to find a way to correctly connect a project created from an ant
build script with the CVS repository, or get Eclipse to read a build
script and set up all the paths and libraries _after_ the project has
been checked out of CVS.

Any help would be greatly appreciated.

sjc

.



Relevant Pages

  • Re: Eclipse: Delete Folder winthin CVS?
    ... How do you advise adding a folder within the CVS ... It's as if Eclipse was designed by programmers, ...
    (comp.lang.java.softwaretools)
  • Re: Problem mit Umlauten in Dateinamen im CVS
    ... aber wie sieht es mit der Repository Location unter Eclipse aus? ... In der CVS Repositories View Rechtsklick auf die Location und Properties aufrufen. ...
    (de.comp.lang.java)
  • Re: Eclipse: Delete Folder winthin CVS?
    ... As I mentioned above, I have discovered a "round about" way of doing this, but Eclipse has no direct way to adding this folder/project directly within the "CVS Repositories" panel where it would be most logical to enable such a feature.. ... If you create a file in a directory and you check it in a directory will be created in your repository. ... Committing these resources will cause the remote resource to be deleted. ...
    (comp.lang.java.softwaretools)
  • Re: Eclipse: Delete Folder winthin CVS?
    ... What you can do is to have Eclipse delete any empty directories it retrieves from the CVS repository. ... You can set this within Eclipse's properties for Team->CVS under the "Files and Folders" tab, there should be an option for Prune empty directories. ...
    (comp.lang.java.softwaretools)
  • Re: cvs question
    ... I did a cvsup on www & ... you can use anon cvs and something like: ... % setenv CVSROOT:pserver:freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs ... CVSROOT is where the repository resides. ...
    (freebsd-questions)