User: reverbel
Date: 02/02/15 14:53:02
Added: iiop jboss-build.xml
Log:
JBoss build.xml file that optionally builds the JBoss/IIOP module.
(This file should be copied to jboss-all/build/build.xml.)
Revision Changes Path
1.1 contrib/iiop/jboss-build.xml
Index: jboss-build.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
<!ENTITY buildmagic SYSTEM "resource://planet57/tools/buildmagic/common.xml">
]>
<!-- ====================================================================== -->
<!-- -->
<!-- JBoss, the OpenSource J2EE webOS -->
<!-- -->
<!-- Distributable under LGPL license. -->
<!-- See terms of license at http://www.gnu.org. -->
<!-- -->
<!-- ====================================================================== -->
<!-- $Id: jboss-build.xml,v 1.1 2002/02/15 22:53:02 reverbel Exp $ -->
<project default="main" name="JBoss/Build">
<!-- ================================================================== -->
<!-- Setup -->
<!-- ================================================================== -->
<!--
| Include the common Buildmagic elements.
|
| This defines several different targets, properties and paths.
| It also sets up the basic extention tasks amoung other things.
-->
&buildmagic;
<!-- ================================================================== -->
<!-- Initialization -->
<!-- ================================================================== -->
<!--
| Initialize the build system. Must depend on '_buildmagic:init'.
| Other targets should depend on 'init' or things will mysteriously fail.
-->
<target name="init" unless="init.disable" depends="_buildmagic:init">
</target>
<!-- ================================================================== -->
<!-- Configuration -->
<!-- ================================================================== -->
<!--
| Configure the build system.
|
| This target is invoked by the Buildmagic initialization logic and
| should contain module specific configuration elements.
-->
<target name="configure" unless="configure.disable">
<!-- =================== -->
<!-- Basic Configuration -->
<!-- =================== -->
<!-- Version identifiers for the server. -->
<property name="version.major" value="3"/>
<property name="version.minor" value="0"/>
<property name="version.revision" value="0"/>
<property name="version.tag" value="DR1"/>
<property name="version.name" value="RABBIT-HOLE"/>
<!-- Module name(s) & version -->
<property name="module.name" value="jboss"/>
<property name="module.Name" value="JBoss Build"/>
<property name="module.version"
value="${version.major}.${version.minor}.${version.revision}${version.tag}"/>
<!-- ========= -->
<!-- Libraries -->
<!-- ========= -->
<!-- Java Naming and Directory Interface (JNDI) -->
<property name="sun.jndi.root" value="${project.thirdparty}/sun/jndi"/>
<property name="sun.jndi.lib" value="${sun.jndi.root}/lib"/>
<!-- Java Management Extensions (JMX) -->
<property name="sun.jmx.root" value="${project.thirdparty}/sun/jmx"/>
<property name="sun.jmx.lib" value="${sun.jmx.root}/lib"/>
<!-- Java API for XML Processing (JAXP) -->
<property name="sun.jaxp.root" value="${project.thirdparty}/sun/jaxp"/>
<property name="sun.jaxp.lib" value="${sun.jaxp.root}/lib"/>
<!-- Java Authentication and Authorization Service (JAAS) -->
<property name="sun.jaas.root" value="${project.thirdparty}/sun/jaas"/>
<property name="sun.jaas.lib" value="${sun.jaas.root}/lib"/>
<!-- JavaBeans Activation Framework (JAF) -->
<property name="sun.jaf.root" value="${project.thirdparty}/sun/jaf"/>
<property name="sun.jaf.lib" value="${sun.jaf.root}/lib"/>
<!-- JavaMail -->
<property name="sun.javamail.root" value="${project.thirdparty}/sun/javamail"/>
<property name="sun.javamail.lib" value="${sun.javamail.root}/lib"/>
<!-- Java Transaction Service (JTS) -->
<property name="sun.jts.root" value="${project.thirdparty}/sun/jts"/>
<property name="sun.jts.lib" value="${sun.jts.root}/lib"/>
<!-- Log4j -->
<property name="apache.log4j.root" value="${project.thirdparty}/apache/log4j"/>
<property name="apache.log4j.lib" value="${apache.log4j.root}/lib"/>
<!-- EDU.oswego.cs.dl.util.concurrent -->
<property name="oswego.concurrent.root"
value="${project.thirdparty}/oswego/concurrent"/>
<property name="oswego.concurrent.lib" value="${oswego.concurrent.root}/lib"/>
<!-- JPL-Util -->
<property name="gjt.jpl-util.root" value="${project.thirdparty}/gjt/jpl-util"/>
<property name="gjt.jpl-util.lib" value="${gjt.jpl-util.root}/lib"/>
<!-- JavaGroups -->
<property name="javagroups.javagroups.root"
value="${project.thirdparty}/javagroups/javagroups"/>
<property name="javagroups.javagroups.lib"
value="${javagroups.javagroups.root}/lib"/>
<!-- JSR 77 -->
<property name="sun.jsr77.root" value="${project.thirdparty}/sun/jsr77"/>
<property name="sun.jsr77.lib" value="${sun.jsr77.root}/lib"/>
<!-- GNU Regexp -->
<property name="gnu.regexp.root" value="${project.thirdparty}/gnu/regexp"/>
<property name="gnu.regexp.lib" value="${gnu.regexp.root}/lib"/>
<!-- GNU Getopt -->
<property name="gnu.getopt.root" value="${project.thirdparty}/gnu/getopt"/>
<property name="gnu.getopt.lib" value="${gnu.getopt.root}/lib"/>
<!-- Java Secure Socket Extension (JSSE) -->
<property name="sun.jsse.root" value="${project.thirdparty}/sun/jsse"/>
<property name="sun.jsse.lib" value="${sun.jsse.root}/lib"/>
<!-- Hypersonic SQL -->
<property name="hsqldb.hsqldb.root" value="${project.thirdparty}/hsqldb/hsqldb"/>
<property name="hsqldb.hsqldb.lib" value="${hsqldb.hsqldb.root}/lib"/>
<!-- Castor -->
<property name="exolab.castor.root" value="${project.thirdparty}/exolab/castor"/>
<property name="exolab.castor.lib" value="${exolab.castor.root}/lib"/>
<!-- Tyrex -->
<property name="exolab.tyrex.root" value="${project.thirdparty}/exolab/tyrex"/>
<property name="exolab.tyrex.lib" value="${exolab.tyrex.root}/lib"/>
<!-- Axis -->
<property name="apache.axis.root" value="${project.thirdparty}/apache/axis"/>
<property name="apache.axis.lib" value="${apache.axis.root}/lib"/>
<!-- Jacorb -->
<property name="jacorb.jacorb.root" value="${project.thirdparty}/jacorb/jacorb"/>
<property name="jacorb.jacorb.lib" value="${jacorb.jacorb.root}/lib"/>
<!-- The combined library classpath -->
<path id="library.classpath">
</path>
<!-- ============== -->
<!-- Modules/Groups -->
<!-- ============== -->
<!-- The group to use by default -->
<property name="groups" value="default"/>
<!-- Sets up the module configuration. -->
<moduleconfig property="modules" selected="${groups}">
<!-- Modules -->
<module name="j2ee"/>
<module name="common"/>
<module name="naming"/>
<module name="jmx"/>
<module name="server"/>
<module name="security"/>
<module name="messaging"/>
<module name="connector"/>
<module name="pool"/>
<module name="cluster"/>
<module name="admin"/>
<module name="testsuite"/>
<module name="varia"/>
<module name="jetty"/>
<module name="jboss.net"/>
<module name="catalina"/>
<module name="iiop"/>
<!-- Module groups -->
<group name="core">
<include modules="j2ee,
common,
naming,
server"/>
</group>
<group name="standard">
<include modules="security,
jmx,
messaging,
pool,
connector,
admin,
cluster,
varia,
jetty"/>
</group>
<group name="optional">
<include modules="iiop,
jboss.net,
catalina"/>
</group>
<!-- Module group sets -->
<group name="default">
<include groups="core, standard"/>
</group>
<group name="all">
<include groups="core, standard, optional"/>
</group>
</moduleconfig>
<!-- Show the module configuration -->
<echo>groups: ${groups}</echo>
<echo>modules: ${modules}</echo>
<!-- The combined dependent module classpath -->
<path id="dependentmodule.classpath">
</path>
<!-- ===== -->
<!-- Tasks -->
<!-- ===== -->
<!-- Skip any missing modules and issue a warning -->
<property name="executemodules.skipmissing" value="true"/>
<!-- The header and footer displayed during each module execution -->
<property name="executemodules.header"><![CDATA[
======================================================================
== Executing '${target}' in module '${module}'...
==]]></property>
<property name="executemodules.footer"><![CDATA[
==
== Finished with '${target}' in module '${module}'.
======================================================================
]]></property>
<!-- Install/Release structure -->
<property name="install.id" value="${module.name}-${module.version}"/>
<property name="release.id" value="${install.id}"/>
<property name="install.root" value="${module.output}/${install.id}"/>
<property name="install.docs" value="${install.root}/docs"/>
<property name="install.api" value="${install.docs}/api"/>
<property name="install.examples" value="${install.docs}/examples"/>
<property name="install.bin" value="${install.root}/bin"/>
<property name="install.client" value="${install.root}/client"/>
<property name="install.conf" value="${install.root}/conf"/>
<property name="install.conf.default" value="${install.conf}/default"/>
<property name="install.db" value="${install.root}/db"/>
<property name="install.deploy" value="${install.root}/deploy"/>
<property name="install.deploy.farm" value="${install.deploy}/farm"/>
<property name="install.lib" value="${install.root}/lib"/>
<property name="install.lib.ext" value="${install.lib}/ext"/>
<property name="install.log" value="${install.root}/log"/>
<property name="install.tmp" value="${install.root}/tmp"/>
<!-- Not really sure why these are here -->
<property name="install.admin" value="${install.root}/admin"/>
<property name="install.admin.client" value="${install.admin}/client"/>
<property name="install.admin.client.lib" value="${install.admin.client}/lib"/>
<property name="install.admin.components" value="${install.admin}/components"/>
<!-- Configuration for the nightly build and test job -->
<property name="run.nightly.sleep" value="1"/> <!-- 1 minute -->
<property name="run.nightly.email.tolist"
value="[EMAIL PROTECTED]"/>
<property name="run.nightly.email.from" value="[EMAIL PROTECTED]"/>
<property name="run.nightly.email.mailhost" value="localhost"/>
<!-- Bits for building source archives -->
<patternset id="source.ignore">
<exclude name="**/output/**"/>
</patternset>
<patternset id="source.free">
<exclude name="tools/**"/>
<exclude name="thirdparty/**"/>
<include name="**"/>
</patternset>
<patternset id="source.external">
<include name="tools/**"/>
<include name="thirdparty/**"/>
</patternset>
</target>
<!-- ================================================================== -->
<!-- Module Pass-through Targets -->
<!-- ================================================================== -->
<!--
| These targets will execute all configured modules with the specified
| target.
-->
<target name="modules-all" depends="_buildmagic:modules:all"/>
<target name="modules-most" depends="_buildmagic:modules:most"/>
<target name="modules-main" depends="_buildmagic:modules:main"/>
<target name="modules-release" depends="_buildmagic:modules:release"/>
<target name="modules-tests" depends="_buildmagic:modules:tests"/>
<target name="modules-clean" depends="_buildmagic:modules:clean"/>
<target name="modules-clobber" depends="_buildmagic:modules:clobber"/>
<!-- ================================================================== -->
<!-- Module Pass-through Hooks -->
<!-- ================================================================== -->
<!--
| These hooks are executed after the above pass-through targets have
| finished with a given module.
-->
<!-- ==== -->
<!-- J2EE -->
<!-- ==== -->
<target name="_module-j2ee-most">
<property name="_module.name" value="j2ee" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-j2ee.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-j2ee.jar"/>
</fileset>
</copy>
</target>
<target name="_module-j2ee-all" depends="_module-j2ee-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ====== -->
<!-- Common -->
<!-- ====== -->
<target name="_module-common-most">
<property name="_module.name" value="common" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-common.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-common.jar"/>
</fileset>
</copy>
</target>
<target name="_module-common-all" depends="_module-common-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ====== -->
<!-- Naming -->
<!-- ====== -->
<target name="_module-naming-most">
<property name="_module.name" value="naming" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jnpserver.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jnp-client.jar"/>
</fileset>
</copy>
</target>
<target name="_module-naming-all" depends="_module-naming-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ====== -->
<!-- Server -->
<!-- ====== -->
<target name="_module-server-most">
<property name="_module.name" value="server" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib) -->
<mkdir dir="${install.lib}"/>
<copy todir="${install.lib}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-boot.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss.jar"/>
<include name="jboss-spine.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="*-client.jar"/>
<include name="connector.jar"/>
<include name="jmx-ejb-connector-client.jar"/>
<include name="jmx-rmi-connector-client.jar"/>
<include name="jmx-connector-client-factory.jar"/>
</fileset>
</copy>
<!-- Setup the deployment directory (deploy) -->
<mkdir dir="${install.deploy}"/>
<!-- Copy the generated deployment libraries (deploy/lib) -->
<copy todir="${install.deploy}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jms-ra.rar"/>
</fileset>
</copy>
<!-- Copy deployable files -->
<copy todir="${install.deploy}" filtering="no">
<!-- Deployable xml snipets -->
<fileset dir="${_module.output}/etc/conf/default">
<include name="mail-service.xml"/>
<include name="jms-service.xml"/>
<include name="user-service.xml"/>
<include name="hsqldb-default-service.xml"/>
</fileset>
<!-- Deployable archives -->
<fileset dir="${_module.output}/lib">
<include name="ejb-management.jar"/>
<include name="jmx-ejb-connector-server.sar"/>
<include name="jmx-ejb-adaptor.jar"/>
<include name="jmx-html-adaptor.sar"/>
<include name="jmx-rmi-adaptor.sar"/>
</fileset>
</copy>
<!-- Copy the generated scripts & runnable jars (bin) -->
<mkdir dir="${install.bin}"/>
<copy todir="${install.bin}" filtering="no">
<fileset dir="${_module.output}/bin">
<include name="**/*"/>
</fileset>
<fileset dir="${_module.output}/lib">
<include name="run.jar"/>
<include name="shutdown.jar"/>
</fileset>
</copy>
<chmod perm="+x">
<fileset dir="${install.bin}">
<include name="**/*.sh"/>
</fileset>
</chmod>
<!-- Copy the default configuration files (conf) -->
<mkdir dir="${install.conf}"/>
<copy todir="${install.conf}" filtering="no">
<fileset dir="${_module.output}/etc/conf">
<include name="default/*"/>
<!-- Need to fix this, these files don't belong here -->
<exclude name="default/mail-service.xml"/>
<exclude name="default/core-service.xml"/>
<exclude name="default/jetty-service.xml"/>
<exclude name="default/jms-service.xml"/>
<exclude name="default/hsqldb-default-service.xml"/>
<exclude name="default/user-service.xml"/>
</fileset>
</copy>
<!-- Setup the database directory (db) -->
<mkdir dir="${install.db}"/>
<!-- Setup the log file directory (log) -->
<mkdir dir="${install.log}"/>
<!-- Setup the temporary file directory (tmp) -->
<mkdir dir="${install.tmp}"/>
</target>
<target name="_module-server-all" depends="_module-server-most">
<!-- Copy the static documents (docs) -->
<mkdir dir="${install.docs}"/>
<copy todir="${install.docs}" filtering="no">
<fileset dir="${_module.output}/docs">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ===== -->
<!-- Admin -->
<!-- ===== -->
<target name="_module-admin-most">
<property name="_module.name" value="admin" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated scripts & runnable jars (bin) -->
<mkdir dir="${install.bin}"/>
<copy todir="${install.bin}" filtering="no">
<fileset dir="${_module.output}/bin">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy admin files (admin) -->
<mkdir dir="${install.admin}"/>
<copy todir="${install.admin}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy admin files (admin/client) -->
<mkdir dir="${install.admin.client}"/>
<copy todir="${install.admin.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="monitor.jar"/>
</fileset>
<fileset dir="${_module.output}/etc">
<include name="jndi.properties"/>
</fileset>
</copy>
<!-- Copy admin files (admin/client/lib) -->
<mkdir dir="${install.admin.client.lib}"/>
<copy todir="${install.admin.client.lib}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="**/"/>
</fileset>
</copy>
<!-- Copy admin files (admin/components) -->
<mkdir dir="${install.admin.components}"/>
<copy todir="${install.admin.components}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="SystemMonitor.jar"/>
<include name="admin.jar"/>
</fileset>
</copy>
</target>
<target name="_module-admin-all" depends="_module-admin-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ========= -->
<!-- Connector -->
<!-- ========= -->
<target name="_module-connector-most">
<property name="_module.name" value="connector" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="RARDeployer.jar"/>
</fileset>
</copy>
<!-- Copy the generated deployment libraries (deploy/lib) -->
<copy todir="${install.deploy}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jbosscx.sar"/>
<include name="*.rar"/>
</fileset>
</copy>
</target>
<target name="_module-connector-all" depends="_module-connector-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ========= -->
<!-- Messaging -->
<!-- ========= -->
<target name="_module-messaging-most">
<property name="_module.name" value="messaging" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the jbossmq service xml snippet (deploy) -->
<mkdir dir="${install.deploy}"/>
<copy todir="${install.deploy}" filtering="no">
<fileset dir="${_module.output}/etc/conf/default">
<include name="jbossmq-service.xml"/>
<include name="jbossmq-state.xml"/>
<!-- only needed to urun the testsuite -->
<include name="jbossmq-testsuite-service.xml"/>
</fileset>
</copy>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jbossmq.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="*-client.jar"/>
</fileset>
</copy>
<!-- Copy the default configuration files (conf) -->
<mkdir dir="${install.conf}"/>
<copy todir="${install.conf}" filtering="no">
<fileset dir="${_module.output}/etc/conf">
<include name="**/*"/>
<exclude name="**/jbossmq-service.xml"/>
</fileset>
</copy>
</target>
<target name="_module-messaging-all" depends="_module-messaging-most">
<!-- Copy the static documents (docs) -->
<mkdir dir="${install.docs}"/>
<copy todir="${install.docs}" filtering="no">
<fileset dir="${_module.output}/docs">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ==== -->
<!-- Pool -->
<!-- ==== -->
<target name="_module-pool-most">
<property name="_module.name" value="pool" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<!--mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jbosspool.jar"/>
</fileset>
</copy-->
</target>
<target name="_module-pool-all" depends="_module-pool-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- === -->
<!-- JMX -->
<!-- === -->
<target name="_module-jmx-most">
<property name="_module.name" value="jmx" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- TODO Install -->
</target>
<target name="_module-jmx-all" depends="_module-jmx-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ======== -->
<!-- Security -->
<!-- ======== -->
<target name="_module-security-most">
<property name="_module.name" value="security" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jbosssx.jar"/>
<include name="jaas.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="*-client.jar"/>
<include name="jaas.jar"/>
</fileset>
<fileset dir="${_module.output}/etc/client">
<include name="*"/>
</fileset>
</copy>
</target>
<target name="_module-security-all" depends="_module-security-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ======= -->
<!-- Cluster -->
<!-- ======= -->
<target name="_module-cluster-most">
<property name="_module.name" value="cluster" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jbossmx.jar"/>
<include name="jbossha.jar"/>
<include name="jbossmqha.jar"/>
</fileset>
</copy>
<!-- Copy the generated libraries (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jbossha-client.jar"/>
<include name="jbossmqha.jar"/>
</fileset>
</copy>
<!-- Copy the deployables -->
<mkdir dir="${install.deploy}"/>
<copy todir="${install.deploy}" filtering="no">
<fileset dir="${_module.output}/etc">
<include name="cluster-service.xml"/>
</fileset>
</copy>
</target>
<target name="_module-cluster-all" depends="_module-cluster-most">
<!-- Copy the examples -->
<mkdir dir="${install.docs}/${module}"/>
<copy todir="${install.docs}/${module}" filtering="no">
<fileset dir="${_module.output}">
<include name="examples/*"/>
</fileset>
</copy>
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ===== -->
<!-- Varia -->
<!-- ===== -->
<target name="_module-varia-most">
<property name="_module.name" value="varia" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the generated libraries (lib/ext) -->
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="**"/>
</fileset>
</copy>
<!-- Copy deployables -->
<mkdir dir="${install.deploy}"/>
<copy todir="${install.deploy}" filtering="no">
<!-- Deployable configuration -->
<fileset dir="${_module.output}/etc">
<include name="mail-service.xml"/>
</fileset>
</copy>
</target>
<target name="_module-varia-all" depends="_module-varia-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ===== -->
<!-- Jetty -->
<!-- ===== -->
<target name="_module-jetty-most">
<property name="_module.name" value="jetty" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the jetty-plugin.sar (deploy) -->
<copy todir="${install.deploy}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jetty-plugin.sar"/>
</fileset>
</copy>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="javax.servlet.jar"/>
<include name="org.apache.jasper.jar"/>
</fileset>
</copy>
<!-- Copy the default configuration files (conf/default) -->
<!-- These could perhaps be repackaged into jetty-plugin.sar
using the local directory feature -->
<mkdir dir="${install.conf.default}"/>
<copy todir="${install.conf.default}" filtering="no">
<fileset dir="${_module.output}/etc">
<include name="jetty.xml"/>
<include name="jetty.properties"/>
</fileset>
</copy>
</target>
<target name="_module-jetty-all" depends="_module-jetty-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ========= -->
<!-- JBoss.net -->
<!-- ========= -->
<target name="_module-jboss.net-most">
<property name="_module.name" value="jboss.net" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the jboss-net.sar (deploy) -->
<copy todir="${install.deploy}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-net.sar"/>
</fileset>
</copy>
<!-- Copy the jboss-net-client.jar (deploy) -->
<copy todir="${install.deploy}/client" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-net-client.sar"/>
</fileset>
</copy>
<!-- Copy relevant axis code -->
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${apache.axis.lib}">
<include name="axis.jar"/>
</fileset>
</copy>
<!-- Copy the default configuration files (conf/default) -->
<mkdir dir="${install.conf.default}"/>
<copy todir="${install.conf.default}" filtering="no">
<fileset dir="${_module.output}/etc">
<include name="axis-config.xml"/>
</fileset>
</copy>
<!-- Copy the client configuration files (client) -->
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/etc">
<include name="client-config.xml"/>
</fileset>
</copy>
<!-- Copy the test wsr -->
<mkdir dir="${install.deploy}"/>
<copy todir="${install.deploy}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="addr.wsr"/>
</fileset>
</copy>
</target>
<target name="_module-jboss.net-all" depends="_module-jboss.net-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ================== -->
<!-- Plugins JBoss-IIOP -->
<!-- ================== -->
<target name="_module-iiop-most">
<property name="_module.name" value="iiop" override="true"/>
<property name="_module.output" override="true"
value="${project.root}/${_module.name}/output"/>
<!-- Copy the jboss-iiop.jar -->
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-iiop.jar"/>
</fileset>
</copy>
<!-- Copy the jboss-iiop-client.jar -->
<copy todir="${install.client}" filtering="no">
<fileset dir="${_module.output}/lib">
<include name="jboss-iiop-client.jar"/>
</fileset>
</copy>
<!-- Copy relevant jacorb code -->
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${jacorb.jacorb.lib}">
<include name="jacorb.jar"/>
</fileset>
</copy>
<copy todir="${install.client}" filtering="no">
<fileset dir="${jacorb.jacorb.lib}">
<include name="jacorb.jar"/>
</fileset>
</copy>
</target>
<target name="_module-iiop-all" depends="_module-iiop-most">
<!-- Copy the generated javadocs -->
<mkdir dir="${install.api}/${_module.name}"/>
<copy todir="${install.api}/${_module.name}" filtering="no">
<fileset dir="${_module.output}/api">
<include name="**/*"/>
</fileset>
</copy>
</target>
<!-- ================================================================== -->
<!-- Install & Release -->
<!-- ================================================================== -->
<target name="install"
description="Install the structure for a release."
depends="install-dependencies"/>
<target name="install-dependencies" depends="init">
<mkdir dir="${install.lib}"/>
<copy todir="${install.lib}" filtering="no">
<fileset dir="${sun.jmx.lib}">
<include name="jmxri.jar"/>
</fileset>
<fileset dir="${sun.jaxp.lib}">
<include name="*.jar"/>
<exclude name="xalan.jar"/>
</fileset>
<fileset dir="${gnu.getopt.lib}">
<include name="getopt.jar"/>
</fileset>
</copy>
<mkdir dir="${install.lib.ext}"/>
<copy todir="${install.lib.ext}" filtering="no">
<fileset dir="${sun.jndi.lib}">
<include name="jndi.jar"/>
</fileset>
<fileset dir="${sun.jaxp.lib}">
<include name="xalan.jar"/>
</fileset>
<fileset dir="${sun.jmx.lib}">
<include name="jmxtools.jar"/>
</fileset>
<fileset dir="${sun.jaf.lib}">
<include name="activation.jar"/>
</fileset>
<fileset dir="${sun.javamail.lib}">
<include name="mail.jar"/>
</fileset>
<fileset dir="${sun.jts.lib}">
<include name="jts.jar"/>
</fileset>
<fileset dir="${oswego.concurrent.lib}">
<include name="concurrent.jar"/>
</fileset>
<fileset dir="${gjt.jpl-util.lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${javagroups.javagroups.lib}">
<include name="javagroups-2.0.jar"/>
</fileset>
<fileset dir="${apache.log4j.lib}">
<include name="log4j.jar"/>
</fileset>
<fileset dir="${sun.jsr77.lib}">
<include name="jsr77.jar"/>
</fileset>
<fileset dir="${gnu.regexp.lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${sun.jsse.lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${hsqldb.hsqldb.lib}">
<include name="hsqldb.jar"/>
</fileset>
<fileset dir="${exolab.castor.lib}">
<include name="castor.jar"/>
</fileset>
<fileset dir="${exolab.tyrex.lib}">
<include name="tyrex.jar"/>
</fileset>
</copy>
<mkdir dir="${install.client}"/>
<copy todir="${install.client}" filtering="no">
<fileset dir="${sun.jndi.lib}">
<include name="jndi.jar"/>
</fileset>
<fileset dir="${apache.log4j.lib}">
<include name="log4j.jar"/>
</fileset>
<fileset dir="${oswego.concurrent.lib}">
<include name="concurrent.jar"/>
</fileset>
<fileset dir="${gnu.regexp.lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${sun.jsse.lib}">
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="release"
description="Builds the default release structure."
depends="install, modules-most"/>
<target name="release-full"
description="Builds the full release structure."
depends="install, modules-all"/>
<target name="release-zip"
description="Builds a ZIP distribution."
depends="release, _buildmagic:release:zip"/>
<target name="release-tar"
description="Builds a TAR distribution."
depends="release, _buildmagic:release:tar"/>
<target name="release-tgz"
description="Builds a TAR-GZ distribution."
depends="release, _buildmagic:release:tgz"/>
<target name="release-all"
description="Builds a distribution for each archive type."
depends="release-zip, release-tgz"/>
<!-- ================================================================== -->
<!-- Source Archives -->
<!-- ================================================================== -->
<target name="source-free-zip" depends="init"
description="Builds a ZIP free source distribution.">
<mkdir dir="${module.output}"/>
<zip zipfile="${module.output}/${release.id}-free-src.zip">
<fileset dir="${project.root}">
<patternset refid="source.ignore"/>
<patternset refid="source.free"/>
</fileset>
</zip>
</target>
<target name="source-external-zip" depends="init"
description="Builds a ZIP external source distribution.">
<mkdir dir="${module.output}"/>
<zip zipfile="${module.output}/${release.id}-external-src.zip">
<fileset dir="${project.root}">
<patternset refid="source.ignore"/>
<patternset refid="source.external"/>
</fileset>
</zip>
</target>
<target name="source-zip" depends="source-free-zip, source-external-zip"
description="Builds a ZIP source distribution."/>
<target name="source-free-tar" depends="init"
description="Builds a TAR free source distribution.">
<mkdir dir="${module.output}"/>
<tar tarfile="${module.output}/${release.id}-free-src.tar" longfile="gnu"
basedir="${project.root}">
<patternset refid="source.ignore"/>
<patternset refid="source.free"/>
</tar>
</target>
<target name="source-external-tar" depends="init"
description="Builds a TAR external source distribution.">
<mkdir dir="${module.output}"/>
<tar tarfile="${module.output}/${release.id}-external-src.tar" longfile="gnu"
basedir="${project.root}">
<patternset refid="source.ignore"/>
<patternset refid="source.external"/>
</tar>
</target>
<target name="source-tar" depends="source-free-tar, source-external-tar"
description="Builds a TAR source distribution."/>
<target name="source-free-tgz" depends="source-free-tar"
description="Builds a TAR-GZIP free source distribution.">
<gzip src="${module.output}/${release.id}-free-src.tar"
zipfile="${module.output}/${release.id}-free-src.tgz"/>
</target>
<target name="source-external-tgz" depends="source-external-tar"
description="Builds a TAR-GZIP external source distribution.">
<gzip src="${module.output}/${release.id}-external-src.tar"
zipfile="${module.output}/${release.id}-external-src.tgz"/>
</target>
<target name="source-tgz" depends="source-free-tgz, source-external-tgz"
description="Builds a TAR-GZIP source distribution."/>
<target name="source-all"
depends="source-tar, source-tgz, source-zip"
description="Builds all source distributions."/>
<!-- ================================================================== -->
<!-- Cleaning -->
<!-- ================================================================== -->
<!-- Clean up all build output -->
<target name="clean" depends="_buildmagic:clean, modules-clean"
description="Cleans up most generated files.">
</target>
<!-- Clean up all generated files -->
<target name="clobber" depends="_buildmagic:clobber, clean, modules-clobber"
description="Cleans up all generated files.">
<delete file="${module.root}/run.log"/>
</target>
<!-- ================================================================== -->
<!-- Misc. -->
<!-- ================================================================== -->
<target name="main" depends="most"
description="Executes the default target (most)."/>
<target name="all" depends="modules-all, install"
description="Executes all modules and builds everything."/>
<target name="most" depends="modules-most, install"
description="Executes all modules and builds most everything."/>
<target name="help" depends="_buildmagic:help:build"
description="Show this help message."/>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!--
| NOTE: The following targets will probably be moved to external
| scripts or external build files.
-->
<!-- ================================================================== -->
<!-- Run the JBoss/Testsuite -->
<!-- ================================================================== -->
<target name="testsuite" depends="run-testsuite"/>
<!-- Invoke the 'tests-unit' on the 'testsuite' module. This must
be run prior to commiting any changes to ensure that your changes
don't cause grief to other developers.
-->
<target name="run-basic-testsuite" depends="init"
description="Execute the testsuite.">
<execmodules target="tests-unit" modules="testsuite"
root="${project.root}/${module}"
skipmissing="${executemodules.skipmissing}">
<before target="${target}-${module}-prepare"/>
<header message="${executemodules.header}"/>
<footer message="${executemodules.footer}"/>
<after target="${target}-${module}"/>
</execmodules>
</target>
<!-- Invoke the 'tests' on the 'testsuite' module -->
<target name="run-testsuite" depends="init"
description="Execute the testsuite.">
<execmodules target="tests" modules="testsuite"
root="${project.root}/${module}"
skipmissing="${executemodules.skipmissing}">
<before target="${target}-${module}-prepare"/>
<header message="${executemodules.header}"/>
<footer message="${executemodules.footer}"/>
<after target="${target}-${module}"/>
</execmodules>
</target>
<!-- Invoke a single testcase on the 'testsuite' module -->
<!-- This needs specification of the test case class -->
<!-- Example: "testcase -Dtest=MDBUnitTestCase" -->
<target name="testcase" depends="init"
description="Run a test case.">
<execmodules target="one-test" modules="testsuite"
root="${project.root}/${module}"
skipmissing="${executemodules.skipmissing}">
<before target="${target}-${module}-prepare"/>
<header message="${executemodules.header}"/>
<footer message="${executemodules.footer}"/>
<after target="${target}-${module}"/>
</execmodules>
</target>
<!-- Run JBoss -->
<property name="run.jboss.flags" value=""/>
<target name="run-jboss" depends="init"
description="Runs the JBoss server.">
<echo>Starting JBoss (redirected ${basedir}/run.log) </echo>
<call target="run-jboss-check-os"/>
<call target="run-jboss-unix"/>
<call target="run-jboss-win32"/>
</target>
<target name="run-jboss-check-os">
<condition property="run.jboss.unix">
<os family="unix"/>
</condition>
<condition property="run.jboss.win32">
<or>
<os family="windows"/>
<os family="dos"/>
</or>
</condition>
</target>
<!-- this is sloppy -->
<target name="run-jboss-unix" depends="init" if="run.jboss.unix">
<exec executable="${module.output}/${release.id}/bin/run.sh"
dir="${module.output}/${release.id}"
output="${basedir}/run.log"
newenvironment="true">
<arg line="${run.jboss.flags}"/>
</exec>
</target>
<target name="run-jboss-win32" depends="init" if="run.jboss.win32">
<echo message="${module.output}/${release.id}"/>
<exec executable="${module.output}/${release.id}/bin/run.bat"
dir="${module.output}/${release.id}/bin"
output="${basedir}/run.log"
newenvironment="true">
<arg line="${run.jboss.flags}"/>
</exec>
</target>
<!-- ================================================================== -->
<!-- Run the Nightly Tasks -->
<!-- ================================================================== -->
<target name="update-project" depends="init">
<echo>Updating project workspace...</echo>
<cvs command="update -d" dest="${project.root}"/>
</target>
<target name="update-module" depends="init">
<echo>Updating module workspace...</echo>
<cvs command="update -d" dest="${module.root}"/>
</target>
<target name="run-nightly">
<!-- perhaps refresh cvs -->
<call target="update-workspace" unless="test.skipupdate"/>
<!-- perhaps clean/clobber -->
<call target="clean" if="test.clean"/>
<call target="clobber" if="test.clobber"/>
<!-- build most everything -->
<call target="most"/>
<!-- run the server in a seperate thread-->
<parallel>
<sequential>
<antcall target="run-jboss"/>
</sequential>
<sequential>
<echo>Waiting for JBoss to activate (${run.nightly.sleep} minute)</echo>
<!-- need something to wait until jboss is up, or timeout -->
<sleep minutes="${run.nightly.sleep}"/>
<!-- start the testsuite (it will generate reports by default) -->
<echo>Starting JBoss/Testsuite</echo>
<call target="run-testsuite"/>
<!-- shutdown the server -->
<echo>Stopping JBoss</echo>
<java classname="org.jboss.Shutdown">
<classpath>
<pathelement location="${release.lib}"/>
</classpath>
<arg value="localhost"/>
<arg value="1099"/>
</java>
</sequential>
</parallel>
<call target="run-nightly-email"/>
</target>
<target name="run-nightly-email" depends="init">
<echo>Sending Reports</echo>
<echo message="to: ${run.nightly.email.tolist}"/>
<echo message="from: ${run.nightly.email.from}"/>
<echo message="via: ${run.nightly.email.mailhost}"/>
<!-- email output to list -->
<mail tolist="${run.nightly.email.tolist}"
subject="Automated JBoss Testsuite Results"
message="Automated JBoss Testsuite Results"
from="${run.nightly.email.from}"
mailhost="${run.nightly.email.mailhost}"
files="${project.root}/testsuite/output/reports/text/TESTS-TestSuites.txt"/>
</target>
</project>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development