[Spread-users] [PATCH] Ant-buildable Java packages

Daniel Rall dlr at finemaltcoding.com
Tue Aug 27 15:38:20 EDT 2002


This change enables the CVS layout of Spread's Java packages to
build.  As discussed previously, the downloadable source tarball has a
different directory structure.

http://lists.spread.org/pipermail/spread-users/2002-January/000473.html

If the other structure is desired and it's not desirable to change the
CVS layout, packaging-time processing on the Ant build file (with a
Perl one-liner, for instance) could convert the src.java.dir property
to the right value:

perl -pi -e 's,(property name="src.java.dir" value=")../javalib",$1spread,' build.xml

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	27 Aug 2002 19:26:54 -0000
@@ -8,7 +8,7 @@
 <project name="spread" default="jar" basedir=".">
 
         <property name="Name" value="Spread"/>
-        <property name="version" value="3.16.0"/>
+        <property name="version" value="3.16.2"/>
         <property name="project" value="spread"/>
         <property name="title" value="${Name} ${version} API for Java"/>
         <property name="year" value="2001"/>
@@ -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"/>

-- 

Daniel Rall <dlr at finemaltcoding.com>




More information about the Spread-users mailing list