Update of /cvsroot/jicarilla/jicarilla-sandbox/platform
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7517/platform
Modified Files:
BUILDING.txt build.xml
Log Message:
use <macrodef/> and <subant/> just for the fun of it, and update the docs.
Index: BUILDING.txt
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/BUILDING.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- BUILDING.txt 15 Sep 2003 22:31:28 -0000 1.7
+++ BUILDING.txt 24 Feb 2004 13:09:03 -0000 1.8
@@ -3,23 +3,34 @@
========================================================
=======================================================================
- What Maven?
+ What Ant?
-You need maven (beta10 or later) to build jicarilla. Get it from
+You need Apache Ant, 1.6 or later, to build jicarilla. Get it from
-http://maven.apache.org/
+http://ant.apache.org/
=======================================================================
- I got maven, so now what?
+ What Optional tasks?
-If you installed it correctly, typing 'maven' at a command prompt
-in the main directory or a component subdirectory should download all
-the required dependencies, compile the sources, run the unit tests,
-then generate the jars, then install snapshots into your local maven
-repository.
+You need to enable the <junit/> and <script/> optional tasks. Enable
+junit by copying junit.jar into $ANT_HOME/lib. Enable the script task
+by installing JBS.
-Typing 'maven site:generate' should build the website, if it weren't
-for the fact that we don't have a website, but a wiki, which resides
-at http://lsd.student.utwente.nl/jicarilla/.
+=======================================================================
+ What JBS?
-For more options, type 'maven -g'.
+You also need The Jicarilla Build System installed, which you can do
+by changing to the ../buildsystem/install directory and typing 'ant'.
+
+=======================================================================
+ I got ant & JBS, so now what?
+
+If you installed everything correctly, typing
+'ant jar:install-snapshot' at a command prompt in the main directory or
+a component subdirectory should download all the required dependencies,
+compile the sources, run the unit tests, then generate the jars, then
+install snapshots into your local JBS repository.
+
+Type 'ant all' in the main directory to compile a 'master project' out
+of all the subprojects and create a 'master jar' and 'master
+distribution.
Index: build.xml
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- build.xml 24 Feb 2004 12:36:49 -0000 1.3
+++ build.xml 24 Feb 2004 13:09:03 -0000 1.4
@@ -2,6 +2,62 @@
<project default="all" name="JBS-based build" basedir=".">
<property file="project.properties"/>
+ <property name="gump.subprojects" value="framework/api,
+ framework/impl,
+ container/api,
+ container/tck/api,
+ container/tck/impl,
+ container/impl,
+ components/collections,
+ components/http/api,
+ components/http/impl"/>
+ <property name="subprojects" value="
+ framework,
+ container,
+ components"/>
+ <filelist id="subprojects.filelist" dir="." files="${subprojects}"/>
+
+ <macrodef name="reactor">
+ <attribute name="target"/>
+ <sequential>
+ <subant target="@{target}" inheritAll="false">
+ <filelist refid="subprojects.filelist"/>
+ </subant>
+ </sequential>
+ </macrodef>
+ <!--<macrodef name="gather-sources">
+ <mkdir dir="target/jicarilla-sources"/>
+
+ <copy todir="target/jicarilla-sources">
+ <fileset dir="."/>
+ <mapper type="regexp"
+ from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)java(?:/|\\)(.*)"
+ to="\1"/>
+ </copy>
+ </macrodef>-->
+ <macrodef name="gather-jars">
+ <sequential>
+ <mkdir dir="target/jicarilla-jars"/>
+
+ <copy todir="target/jicarilla-jars" flatten="yes">
+ <fileset dir=".">
+ <include name="**/*.jar"/>
+ </fileset>
+ </copy>
+ </sequential>
+ </macrodef>
+ <macrodef name="gather-dists">
+
+ <sequential>
+ <mkdir dir="target/jicarilla-dists"/>
+ <copy todir="target/jicarilla-dists" flatten="yes">
+ <fileset dir=".">
+ <include name="**/*.zip"/>
+ <include name="**/*.tar.gz"/>
+ </fileset>
+ </copy>
+ </sequential>
+ </macrodef>
<target name="need-for-jbs" unless="jbs.available">
<fail>
@@ -23,85 +79,32 @@
<antcall target="need-for-jbs"/>
</target>
- <target name="delegate">
- <ant dir="framework" target="${target}"/>
- <ant dir="container" target="${target}"/>
- <ant dir="components" target="${target}"/>
- </target>
-
<target name="compile">
- <antcall target="delegate">
- <param name="target" value="compile"/>
- </antcall>
+ <reactor target="compile"/>
</target>
<target name="test">
- <antcall target="delegate">
- <param name="target" value="test"/>
- </antcall>
+ <reactor target="test"/>
</target>
<target name="jar">
- <antcall target="delegate">
- <param name="target" value="jar"/>
- </antcall>
-
- <antcall target="gather-jars"/>
+ <reactor target="jar"/>
+ <gather-jars/>
</target>
<target name="jar:install">
- <antcall target="delegate">
- <param name="target" value="jar:install"/>
- </antcall>
-
- <antcall target="gather-jars"/>
+ <reactor target="jar:install"/>
+ <gather-jars/>
</target>
<target name="jar:install-snapshot">
- <antcall target="delegate">
- <param name="target" value="jar:install-snapshot"/>
- </antcall>
-
- <antcall target="gather-jars"/>
+ <reactor target="jar:install-snapshot"/>
+ <gather-jars/>
</target>
<target name="dist">
- <antcall target="delegate">
- <param name="target" value="dist"/>
- </antcall>
-
- <antcall target="gather-dists"/>
+ <reactor target="dist"/>
+ <gather-dists/>
</target>
<target name="reports">
- <antcall target="delegate">
- <param name="target" value="reports"/>
- </antcall>
- </target>
-
- <target name="gather-sources">
- <mkdir dir="target/jicarilla-sources"/>
-
- <copy todir="target/jicarilla-sources">
- <fileset dir="."/>
- <mapper type="regexp"
- from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)java(?:/|\\)(.*)"
- to="\1"/>
- </copy>
+ <reactor target="reports"/>
</target>
- <target name="gather-jars">
- <mkdir dir="target/jicarilla-jars"/>
- <copy todir="target/jicarilla-jars" flatten="yes">
- <fileset dir=".">
- <include name="**/*.jar"/>
- </fileset>
- </copy>
- </target>
- <target name="gather-dists">
- <mkdir dir="target/jicarilla-dists"/>
-
- <copy todir="target/jicarilla-dists" flatten="yes">
- <fileset dir=".">
- <include name="**/*.zip"/>
- <include name="**/*.tar.gz"/>
- </fileset>
- </copy>
- </target>
<target name="consolidate" depends="init">
<echo>
@@ -186,16 +189,8 @@
<target name="gump-descriptors" depends="init">
<subant target="jbs:gump-descriptor" inheritAll="false">
- <filelist dir="." files="framework/api,
- framework/impl,
- container/api,
- container/tck/api,
- container/tck/impl,
- container/impl,
- components/collections,
- components/http/api,
- components/http/impl"/>
- <property name="do.not.debug" value="thanks!"/>
+ <filelist dir="." files="${gump.subprojects}"/>
+ <property name="do.not.debug" value="thanks!"/>
</subant>
<mkdir dir="gump"/>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.