[Anthill] project directory structure question

Scott W. Ruch sruch at inventa.com
Thu Sep 9 14:02:43 CDT 2004


This appears somewhat convoluted, but bear with
me.  I'm really not trying to do anything too
complicated other than organize multiple
work directories under a common parent directory.

We have a CVS repository that looks like:

esm/
   projectA/
   projectB/
   projectC/
   .
   .
   .
   lib/

Each projectA,B,C, etc. directory has it's own
Ant build script and CVS modules are defined as
such:

projectA  -a esm/projectA esm/lib

What I'd like to do is create an Anthill project
for each module and have Anthill check out each
module to it's own subdirectory, but I'd like
them all in one top-level directory under 
$ANTHILL_HOME, so as to keep things organized.  
e.g.:

$ANTHILL_HOME/Inventa/
                  projectA/
                  projectB/

I can't seem to find the correct combination of property
settings such that Anthill can construct a correct path
to my version files.  Each module has it's own
version file under it's main directory, e.g.:

esm/projectA/projectA.version

What appears to be the obvious configuration does 
not work.  If I set:

repository.cvs.work.dir=Inventa/projectA
repository.cvs.module=projectA

Then my module is correctly checked out under
$ANTHILL_HOME/Inventa/projectA, however, if I
specify the location of my version.file as:

version.file=esm/projectA/projectA.version

which is the path "relative to the project root",
which I believe to be $ANTHILL_HOME/Inventa/projectA,
then Anthill fails to find the file because it looks
in the wrong spot.  Here's the error:

14:31:12:105 [Thread - AnthillBuildDaemon] INFO  com.urbancode.anthill.adapter.UrbanCodeVersionAdapter  - Incrementing version file:
/home/build/opt/anthill-1.7.0.162/Inventa/projectA/projectA/esm/projectA/projectA.version
14:31:12:105 [Thread - AnthillBuildDaemon] ERROR com.urbancode.anthill.BuildManager  - VersionFile parameter must point to a file
that exists
java.lang.IllegalArgumentException: VersionFile parameter must point to a file that exists
        at com.urbancode.anthill.adapter.VersionModifier.<init>(VersionModifier.java:47)
.
.
.

Note the additional "projectA" in the path that Anthill
is using to find my version file.  Why is this here?

Thanks for any insight.


--
Scott W. Ruch           ESM Integrator Engineering 
sruch at inventa.com             Inventa Technologies
856.914.5201                http://www.inventa.com 




More information about the Anthill mailing list