[Spread-users] CVS vs. release src package directory layout

Daniel Rall dlr at finemaltcoding.com
Tue Jan 8 13:46:27 EST 2002


I've recently been building Spread from CVS.  It's not currently
possible to build the Java Spread client using the Ant build file (the
preferred method for a Java developer) from CVS unmodified -- it's
only possible from the release package's directory layout.  Now, I can
modify the Ant build file so that it can determine which layout it's
building source for and react accordingly.  However, in this case it
would make more sense if the CVS directory layout matched the release
layout closely enough for the same build rules to be leveraged.

This illustrates the change which is necessary to allow building
straight from CVS.  Not a big delta (you can even pass in a
-Dsrc.java.dir=../javalib to Ant on the commandline), but annoying
enough to warrant a change.

Index: build.xml
===================================================================
RCS file: /storage/cvsroot/spread/javaapps/build.xml,v
retrieving revision 1.1
diff -u -u -r1.1 build.xml
--- build.xml	23 Aug 2001 03:38:25 -0000	1.1
+++ build.xml	8 Jan 2002 18:28:09 -0000
@@ -16,7 +16,7 @@
         <property name="build.dir" value="dest"/>
         <property name="build.src" value="${build.dir}/src"/>
         <property name="build.dest" value="${build.dir}/class"/>
-        <property name="src.java.dir" value="splib_src"/>
+        <property name="src.java.dir" value="../javalib"/>
         <property name="jar.name" value="${project}-${version}.jar"/>
         <property name="lib.dir" value="/usr/lib/java"/>
         <property name="sample.build.src" value="${build.dir}/sample"/>



Comments?

- Dan





More information about the Spread-users mailing list