jicarilla-suf/suf-components build.xml,NONE,1.1
Leo Simons <[email protected]> Sun, 11 Apr 2004 21:43:09 +0000
| Newsgroups | gmane.comp.java.jicarilla.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jicarilla/jicarilla-suf/suf-components
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2476/suf-components
Added Files:
build.xml
Log Message:
Phase 3: clean multiproject builds
--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<project default="jar:install-snapshot" name="jicarilla-suf" basedir=".">
<property file="project.properties"/>
<property name="jbs.home" value="${user.home}/.jbs"/>
<import file="${jbs.home}/build-project.xml"/>
<!-- the ordering is important! :-D -->
<property name="subprojects" value="
compatibility
instrument
i18n
configuration
logger
lifecycle
pool
pool/instrumented
thread
thread/instrumented
event
instrument-manager/spi
instrument-manager/impl
instrument-manager/altrmi
instrument-manager/http
instrument-client
datasource
sourceresolve
store
xmlutil
monitor
"/>
<filelist id="subprojects.filelist" dir="." files="${subprojects}"/>
<macrodef name="reactor">
<attribute name="target"/>
<sequential>
<subant target="@{target}" inheritAll="false">
<filelist refid="subprojects.filelist"/>
<property name="do.not.debug" value="nodebug"/>
<property name="do.not.warn" value="nowarn"/>
</subant>
</sequential>
</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="compile">
<reactor target="compile"/>
</target>
<target name="test">
<reactor target="test"/>
</target>
<target name="jar">
<reactor target="jar"/>
<gather-jars/>
</target>
<target name="jar:install">
<reactor target="jar:install"/>
<gather-jars/>
</target>
<target name="jar:install-snapshot">
<reactor target="jar:install-snapshot"/>
<gather-jars/>
</target>
<target name="dist">
<reactor target="dist"/>
<gather-dists/>
</target>
<target name="reports">
<reactor target="reports"/>
</target>
<target name="jbs:init" depends="consolidate">
<property name="jbs.home" value="${user.home}/.jbs"/>
<property file="${jbs.home}/default.properties"/>
<property name="jbs.home" value="${user.home}/.jbs"/>
<property name="jbs.work" value="${jbs.home}/work"/>
<property name="jbs.backup" value="${jbs.home}/backup"/>
<property name="jbs.repository.local" value="${jbs.home}/repository"/>
<property name="jbs.src.dir" value="${basedir}/src"/>
<property name="jbs.build.dir" value="${basedir}/target"/>
<property name="jbs.compile.debug" value="on"/>
<property name="jbs.compile.optimize" value="off"/>
<property name="jbs.compile.deprecation" value="off"/>
<property name="jbs.junit.fork" value="yes"/>
<property name="jbs.junit.dir" value="${basedir}"/>
<property name="jbs.junit.usefile" value="true"/>
<property name="jbs.repository.ibiblio" value="http://www.ibiblio.org/maven"/>
<property name="jbs.repository.default" value="${jbs.repository.ibiblio}"/>
<property name="project.name" value="some-nameless-jbs-built-component"/>
<property name="project.copyright.name" value="Leo Simons"/>
<property name="project.copyright.year" value="2004"/>
<tstamp>
<format property="project.version" pattern="yyyyMMdd"/>
</tstamp>
<condition property="project.name.set">
<isset property="project.name"/>
</condition>
<antcall target="jbs:warn-project.name"/>
<available file="${basedir}/src/java" property="java.src.present"/>
<available file="${basedir}/src/test" property="test.src.present"/>
<available file="${basedir}/src" property="src.dir.present"/>
<condition property="no.sources.available">
<and>
<not><isset property="java.src.present"/></not>
<not><isset property="test.src.present"/></not>
</and>
</condition>
<condition property="no.source.dir">
<not><isset property="src.dir.present"/></not>
</condition>
<antcall target="jbs:debug"/>
<antcall target="jbs:warn-avail"/>
<antcall target="jbs:init-repo"/>
</target>
<target name="consolidate">
<echo>Merging all the subprojects into a single source tree...</echo>
<delete dir="src/java"/>
<mkdir dir="src/java"/>
<copy todir="src/java">
<fileset dir="."/>
<mapper type="regexp"
from="^(?:[^/\\]+(?:/|\\))+src(?:/|\\)java(?:/|\\)(.*)"
to="\1"/>
</copy>
<echo> ...done!</echo>
</target>
<target name="jbs:gump-descriptor">
<subant target="jbs:gump-descriptor" inheritAll="false">
<filelist dir="." files="${subprojects}"/>
<property name="do.not.debug" value="thanks!"/>
<property name="do.not.warn" value="thanks!"/>
</subant>
<copy todir="/home/lsimons/cvs/gump/project/jicarilla" flatten="true">
<fileset dir=".">
<include name="**/gump-*.xml"/>
</fileset>
</copy>
</target>
</project>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click