jicarilla-sandbox/platform build.xml,NONE,1.1 dependencies-all.list,NONE,1.1 project.properties,1.4,1.5 project-buildall.properties,1.3,1.4

[email protected]
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12572/platform

Modified Files:
	project-buildall.properties 
Added Files:
	build.xml dependencies-all.list project.properties 
Log Message:
Use the new JBS across jicarilla. Speedup as opposed to using maven varies between 300 and 1000 percent, roughly. The perceived speedup is bigger still.

--- NEW FILE: build.xml ---
<?xml version="1.0"?>

<project default="all" name="JBS-based build" basedir=".">
    <property file="project.properties"/>

    <target name="need-for-jbs" unless="jbs.available">
<fail>
===================================================================
BUILD SYSTEM FAILURE!
===================================================================

 The Jicarilla BuildSystem cannot be found. Try setting the jbs.home
 property in the file project.properties to the correct location
 (jbs.home is currently set to ${jbs.home}).
</fail>
    </target>

    <target name="init">
        <property name="jbs.home" value="${user.home}/.jbs"/>
        <available file="${jbs.home}/build-basic.xml"
                property="jbs.available"/>

        <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>
    </target>
    <target name="test">
        <antcall target="delegate">
            <param name="target" value="test"/>
        </antcall>
    </target>
    <target name="jar">
        <antcall target="delegate">
            <param name="target" value="jar"/>
        </antcall>

        <antcall target="gather-jars"/>
    </target>
    <target name="jar:install">
        <antcall target="delegate">
            <param name="target" value="jar:install"/>
        </antcall>

        <antcall target="gather-jars"/>
    </target>
    <target name="jar:install-snapshot">
        <antcall target="delegate">
            <param name="target" value="jar:install-snapshot"/>
        </antcall>

        <antcall target="gather-jars"/>
    </target>
    <target name="dist">
        <antcall target="delegate">
            <param name="target" value="dist"/>
        </antcall>

        <antcall target="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>
    </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="all" depends="init">
        <echo>
           _______________________________________________________
 The      /  /__/  __   \/  __  | /  ___  |/__/  /  /  /   /  __  |
         /  /__/  /  \__/  /_|  |/  /__/  /__/  /  /  /   /  /_|  |
  ___   /  /  /  /  ___/  ____  /  ____  /  /  /  /  /   /  ____  |
 /  /__/  /  /  |__/  /  /   | /  /   | /  /  /__/  /___/  /   |  |
 \_______/__/\_______/__/    |/__/    |/__/_____/______/__ Buildsystem


 is now merging all the subprojects into a single tree and creating a
 consolidated distribution.
        </echo>

        <mkdir dir="target/base/src/java"/>
        <mkdir dir="target/base/src/test"/>
        <mkdir dir="target/base/src/bin"/>
        <mkdir dir="target/base/src/etc"/>

        <copy todir="target/base/src/java">
            <fileset dir="."/>
            <mapper type="regexp"
                from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)java(?:/|\\)(.*)"
                to="\1"/>
        </copy>
        <copy todir="target/base/src/test">
            <fileset dir="."/>
            <mapper type="regexp"
                from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)test(?:/|\\)(.*)"
                to="\1"/>
        </copy>
        <copy todir="target/base/src/bin">
            <fileset dir="."/>
            <mapper type="regexp"
                from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)bin(?:/|\\)(.*)"
                to="\1"/>
        </copy>
        <copy todir="target/base/src/bsh">
            <fileset dir="."/>
            <mapper type="regexp"
                from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)bsh(?:/|\\)(.*)"
                to="\1"/>
        </copy>
        <copy todir="target/base/src/etc">
            <fileset dir="."/>
            <mapper type="regexp"
                from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)etc(?:/|\\)(.*)"
                to="\1"/>
        </copy>
        <copy file="project.properties" todir="target/base"/>
        <!-- todo: automate generation of this file -->
        <copy file="dependencies-all.list" tofile="target/base/dependencies.list"/>
        <copy file="README.txt" todir="target/base"/>
        <copy file="LICENSE.txt" todir="target/base"/>

        <copy file="${jbs.home}/build-basic.xml" tofile="target/base/build.xml"/>

        <ant dir="target/base" target="dist" inheritAll="false"/>

        <echo>
===================================================================
 ...phew...all done!

 Note you can build many smaller distributions (instead of a single
 big one) using the 'dist' target. You can also call a number of
 targets from any subproject directory that contains a build.xml
 file (try the command

            ant -buildfile ${jbs.home}/build-project.xml info

 for information about the available targets, or

            ant -projecthelp

 inside any subproject directory).
===================================================================
        </echo>
    </target>
</project>

--- NEW FILE: dependencies-all.list ---
# Dependencies
#
# artifact-id version groupid repository
#
#aspectwerkz 0.8.1
avalon-framework 4.1.5
bsh 2.0b1
#commons-attributes SNAPSHOT commons-attributes-api
commons-logging 1.0.2
commons-pool 1.0.1
concurrent 1.3.2
logkit 1.2
picocontainer 1.0-SNAPSHOT
picocontainer-tck 1.0-SNAPSHOT picocontainer
spring
spring-tck SNAPSHOT spring
junit 3.8.1
xstream 0.1 xstream http://dist.codehaus.org
avalon-fortress-container 1.1-dev avalon-fortress
jetty 4.2.12
easymock 1.0.1b
commons-cli 1.0


Index: project-buildall.properties
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/project-buildall.properties,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- project-buildall.properties	4 Jan 2004 20:39:00 -0000	1.3
+++ project-buildall.properties	12 Feb 2004 23:51:52 -0000	1.4
@@ -1,3 +1,4 @@
+project.name=jicarilla-platform
 maven.repo.remote = http://jicarilla.sourceforge.net/jicarilla-maven-repository,http://www.apache.org/dist/avalon,http://www.ibiblio.org/maven,http://dist.codehaus.org
 
 #maven.test.skip=true                  # until I figure out why the forking fails!



-------------------------------------------------------
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.