[jboss-cvs] JBossAS SVN: r112187 - in projects/jboss-jca/tags: IRONJACAMAR_1_1_0_ALPHA1 and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Aug 31 10:46:28 EDT 2011
Author: jesper.pedersen
Date: 2011-08-31 10:46:28 -0400 (Wed, 31 Aug 2011)
New Revision: 112187
Added:
projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/
projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/build.xml
Removed:
projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/build.xml
Log:
IronJacamar 1.1.0.Alpha1
Deleted: projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/build.xml
===================================================================
--- projects/jboss-jca/trunk/build.xml 2011-08-31 14:25:48 UTC (rev 112185)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/build.xml 2011-08-31 14:46:28 UTC (rev 112187)
@@ -1,1577 +0,0 @@
-<!--
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<project name="ironjacamar"
- default="jars"
- basedir="."
- xmlns:ivy="antlib:org.apache.ivy.ant">
-
- <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
- <available classname="java.lang.management.LockInfo" property="HAVE_JDK_1.6"/>
- <available classname="java.util.concurrent.ForkJoinPool" property="HAVE_JDK_1.7"/>
-
- <!-- =================================
- Project
- ================================= -->
- <property name="name" value="ironjacamar"/>
- <property name="major" value="1"/>
- <property name="minor" value="1"/>
- <property name="patch" value="0"/>
- <property name="type" value="Alpha1"/>
-
- <condition property="version" value="${major}.${minor}.${patch}-SNAPSHOT">
- <isset property="snapshot"/>
- </condition>
- <property name="version" value="${major}.${minor}.${patch}.${type}"/>
-
- <!-- =================================
- Maven repository settings
- ================================= -->
- <condition property="mavensettings" value="/private/ironjacamar/settings.xml">
- <isset property="cloudbees"/>
- </condition>
- <property name="mavensettings" value="$HOME/.m2/settings.xml"/>
-
- <condition property="repositoryurl" value="https://repository.jboss.org/nexus/content/repositories/snapshots/">
- <isset property="snapshot"/>
- </condition>
- <property name="repositoryurl" value="https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/"/>
-
- <condition property="repositoryid" value="jboss-snapshots">
- <isset property="snapshot"/>
- </condition>
- <property name="repositoryid" value="jboss-releases"/>
-
- <!-- =================================
- Ivy
- ================================= -->
- <property name="ivy.version" value="2.2.0"/>
- <property name="ivy.dir" value="${user.home}/.ivy2/cache/org.apache.ivy/jars"/>
- <property name="ivy.jar.name" value="ivy-${ivy.version}.jar"/>
-
- <!-- =================================
- Repositories
- ================================= -->
- <property name="central.repo" value="http://repo1.maven.org/maven2"/>
- <property name="jboss.repo" value="http://repository.jboss.org/nexus/content/groups/public/"/>
- <property name="snapshots.repo" value="http://repository.jboss.org/nexus/content/repositories/snapshots/"/>
- <property name="fungal.repo" value="http://jesperpedersen.github.com/fungal/maven2"/>
-
- <!-- =================================
- Properties
- ================================= -->
- <property name="lib.dir" value="${basedir}/lib" />
- <property name="build.dir" value="${basedir}/build" />
- <property name="api.dir" value="${basedir}/api" />
- <property name="doc.dir" value="${basedir}/doc" />
- <property name="target.dir" value="${basedir}/target" />
- <property name="tools.dir" value="${basedir}/tools" />
- <property name="reports.dir" value="${basedir}/reports" />
- <property name="test.dir" value="${reports.dir}" />
-
- <property name="javac.debug" value="on" />
- <property name="javac.deprecation" value="on" />
- <property name="javac.optimize" value="off" />
-
- <property name="junit.printsummary" value="yes" />
- <property name="junit.haltonerror" value="no" />
- <property name="junit.haltonfailure" value="no" />
- <property name="junit.fork" value="yes" />
- <property name="junit.timeout" value="60000" />
- <property name="junit.jvm" value="" />
- <property name="junit.jvm.options" value="-Xms128m -Xmx512m -XX:MaxPermSize=256m" />
- <property name="junit.batchtest.haltonerror" value="no" />
- <property name="junit.batchtest.haltonfailure" value="no" />
- <property name="junit.batchtest.fork" value="yes" />
-
- <!-- =================================
- Versions
- ================================= -->
- <property name="version.ant" value="1.8.1"/>
- <property name="version.activation" value="1.1"/>
- <property name="version.apache-log4j" value="1.2.16"/>
- <property name="version.apache-logging" value="1.1.0.jboss"/>
- <property name="version.apiviz" value="1.3.1.GA"/>
- <property name="version.arquillian" value="1.0.0.CR4"/>
- <property name="version.dom4j" value="1.6.1"/>
- <property name="version.mockito" value="1.8.5"/>
- <property name="version.eclipse.ecj" value="3.5.1"/>
- <property name="version.fungal" value="0.10.0.RC1"/>
- <property name="version.h2" value="1.3.154"/>
- <property name="version.hibernate-annotations" value="3.5.1-Final"/>
- <property name="version.hibernate-validator" value="4.2.0.Final"/>
- <property name="version.hornetq" value="2.2.2.Final"/>
- <property name="version.javassist" value="3.14.0-GA"/>
- <property name="version.jboss.common" value="2.2.17.GA"/>
- <property name="version.jboss.jaspi.api" value="1.0.0.Final"/>
- <property name="version.jboss.jms.api" value="1.0.0.Beta1"/>
- <property name="version.jboss.logging" value="3.0.0.GA"/>
- <property name="version.jboss.logging-generator" value="1.0.0.Beta7"/>
- <property name="version.jboss.logging-processor" value="1.0.0.Beta7"/>
- <property name="version.jboss.logmanager" value="1.2.0.GA"/>
- <property name="version.jboss.naming" value="5.0.3.GA"/>
- <property name="version.jboss.netty" value="3.2.1.Final"/>
- <property name="version.jboss.papaki" value="1.0.0.Beta3"/>
- <property name="version.jboss.picketbox" value="4.0.1"/>
- <property name="version.jboss.security" value="2.1.0.20090318"/>
- <property name="version.jboss.shrinkwrap" value="1.0.0-beta-5"/>
- <property name="version.jboss.shrinkwrap.descriptors" value="1.1.0-alpha-2"/>
- <property name="version.jboss.slf4j" value="1.0.2.GA"/>
- <property name="version.jboss.slf4j.logmanager" value="1.0.0.GA"/>
- <property name="version.jboss.stdio" value="1.0.0.GA"/>
- <property name="version.jboss.threads" value="2.0.0.GA"/>
- <property name="version.jboss.ts" value="4.15.3.Final"/>
- <property name="version.jboss.ts.spi" value="7.0.0.CR1"/>
- <property name="version.jdepend" value="2.9.1"/>
- <property name="version.jetty" value="7.4.3.v20110701"/>
- <property name="version.jetty.servlet" value="6.1.14"/>
- <property name="version.jetty.glassfish" value="2.1.v20100127"/>
- <property name="version.jasper" value="glassfish_2.1.0.v201004190952"/>
- <property name="version.jpa" value="1.0"/>
- <property name="version.junit" value="4.8.2"/>
- <property name="version.jaxb.api" value="2.0"/>
- <property name="version.jaxb.impl" value="2.1"/>
- <property name="version.mail-api" value="1.4.4"/>
- <property name="version.maven" value="2.2.1"/>
- <property name="version.rhq" value="4.0.0.Beta1"/>
- <property name="version.slf4j" value="1.6.1"/>
- <property name="version.transaction.api" value="1.0.0.Final"/>
- <property name="version.validation-api" value="1.0.0.GA"/>
-
- <!-- =================================
- Paths
- ================================= -->
- <path id="main.lib.path.id">
- <fileset dir="${lib.dir}/common">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/embedded">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/arquillian">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/jetty">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/hornetq">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/sjc">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/mail">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/rhq">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${target.dir}">
- <include name="**/*.jar"/>
- </fileset>
- </path>
-
- <path id="brew.lib.path.id">
- <fileset dir="${lib.dir}/brew">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${target.dir}">
- <include name="**/*.jar"/>
- </fileset>
- </path>
-
- <path id="test.lib.path.id">
- <fileset dir="${lib.dir}/common">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/sjc">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/embedded">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/arquillian">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/mail">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/hornetq">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/test">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/rhq">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${target.dir}">
- <include name="**/*.jar"/>
- </fileset>
- </path>
-
- <path id="checkstyle.lib.path.id">
- <fileset dir="${tools.dir}/checkstyle/lib"/>
- <fileset dir="${lib.dir}/common">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/embedded">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/arquillian">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/jetty">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/hornetq">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/sjc">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/mail">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/test">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/rhq">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${target.dir}">
- <include name="**/*.jar"/>
- </fileset>
- </path>
-
- <path id="findbugs.lib.path.id">
- <fileset dir="${tools.dir}/findbugs/lib"/>
- </path>
-
- <path id="cobertura.lib.path.id">
- <fileset dir="${tools.dir}/cobertura/lib"/>
- </path>
-
- <path id="tattletale.lib.path.id">
- <fileset dir="${tools.dir}/tattletale/lib"/>
- </path>
-
- <!-- =================================
- Bootstrap Ivy
- ================================= -->
- <mkdir dir="${ivy.dir}"/>
- <get usetimestamp="true" src="https://repository.apache.org/content/repositories/releases/org/apache/ivy/ivy/${ivy.version}/${ivy.jar.name}"
- skipexisting="true"
- dest="${ivy.dir}/${ivy.jar.name}"/>
- <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ivy.dir}/${ivy.jar.name}"/>
-
- <!-- =================================
- Target: init
- ================================= -->
- <target name="init" depends="init-brew-path">
- <fail message="IronJacamar requires JDK6+" unless="HAVE_JDK_1.6"/>
-
- <ivy:settings file="${basedir}/ivy.settings.xml"/>
-
- <mkdir dir="${build.dir}" />
- <mkdir dir="${target.dir}" />
- </target>
-
- <!-- =================================
- Target: resolve
- ================================= -->
- <target name="resolve-brew" if="brew">
- <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
- conf="brew"
- sync="true"/>
- </target>
-
- <target name="resolve" depends="init,resolve-brew" unless="brew">
- <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
- conf="common,sjc,embedded,arquillian,jetty,hornetq,mail,rhq,test,tools"
- sync="true"/>
- </target>
-
- <!-- =================================
- Target: report
- ================================= -->
- <target name="report" depends="resolve">
- <ivy:report todir="${target.dir}"/>
- </target>
-
- <!-- =================================
- Target: jars
- ================================= -->
- <target name="jars-base">
- <ant dir="api" inheritRefs="true" target="jars"/>
- <ant dir="common" inheritRefs="true" target="jars"/>
- <ant dir="core" inheritRefs="true" target="jars"/>
- <ant dir="validator" inheritRefs="true" target="jars"/>
- <ant dir="deployers" inheritRefs="true" target="jars"/>
- <ant dir="adapters" inheritRefs="true" target="jars"/>
- </target>
-
- <target name="jars" depends="resolve,jars-base" unless="brew">
- <ant dir="embedded" inheritRefs="true" target="jars"/>
- <ant dir="web" inheritRefs="true" target="jars"/>
- <ant dir="sjc" inheritRefs="true" target="jars"/>
- <ant dir="codegenerator" inheritRefs="true" target="jars"/>
- <ant dir="rhq" inheritRefs="true" target="jars"/>
- <ant dir="as" inheritRefs="true" target="jars"/>
- </target>
-
- <!-- =================================
- Target: docs
- ================================= -->
- <target name="docs-base">
- <ant dir="api" inheritRefs="true" target="docs"/>
- <ant dir="common" inheritRefs="true" target="docs"/>
- <ant dir="core" inheritRefs="true" target="docs"/>
- <ant dir="validator" inheritRefs="true" target="docs"/>
- <ant dir="deployers" inheritRefs="true" target="docs"/>
- <ant dir="adapters" inheritRefs="true" target="docs"/>
- </target>
-
- <target name="docs" depends="jars,docs-base" unless="brew">
- <ant dir="embedded" inheritRefs="true" target="docs"/>
- <ant dir="web" inheritRefs="true" target="docs"/>
- <ant dir="sjc" inheritRefs="true" target="docs"/>
- <ant dir="codegenerator" inheritRefs="true" target="docs"/>
- <ant dir="rhq" inheritRefs="true" target="docs"/>
- <ant dir="as" inheritRefs="true" target="docs"/>
- </target>
-
- <!-- =================================
- Target: manual
- ================================= -->
- <target name="manual">
- <ant dir="${doc.dir}/developerguide" inheritRefs="false" inheritAll="false"/>
- <ant dir="${doc.dir}/userguide" inheritRefs="false" inheritAll="false"/>
- </target>
-
- <!-- =================================
- Target: prepare test
- ================================= -->
- <target name="prepare-test" depends="jars">
- <ant dir="common" inheritRefs="true" target="prepare-test"/>
- <ant dir="core" inheritRefs="true" target="prepare-test"/>
- <ant dir="embedded" inheritRefs="true" target="prepare-test"/>
- <ant dir="deployers" inheritRefs="true" target="prepare-test"/>
- <ant dir="validator" inheritRefs="true" target="prepare-test"/>
- <ant dir="codegenerator" inheritRefs="true" target="prepare-test"/>
- <ant dir="adapters" inheritRefs="true" target="prepare-test"/>
- <ant dir="rhq" inheritRefs="true" target="prepare-test"/>
- </target>
-
- <!-- =================================
- Target: test
- ================================= -->
- <target name="test" depends="prepare-test">
- <ant dir="common" inheritRefs="true" target="test"/>
- <ant dir="core" inheritRefs="true" target="test"/>
- <ant dir="embedded" inheritRefs="true" target="test"/>
- <ant dir="deployers" inheritRefs="true" target="test"/>
- <ant dir="validator" inheritRefs="true" target="test"/>
- <ant dir="adapters" inheritRefs="true" target="test"/>
- <ant dir="rhq" inheritRefs="true" target="test"/>
- </target>
-
- <!-- =================================
- Target: one-test
- ================================= -->
- <target name="one-test" depends="jars">
- <condition property="module" else="core">
- <equals arg1="${module}" arg2="" trim="true"/>
- </condition>
-
- <ant dir="${module}" inheritRefs="true" target="one-test"/>
- </target>
-
- <!-- =================================
- Target: module-test
- ================================= -->
- <target name="module-test" depends="jars">
- <condition property="module" else="core">
- <equals arg1="${module}" arg2="" trim="true"/>
- </condition>
-
- <ant dir="${module}" inheritRefs="true" target="test"/>
- </target>
-
- <!-- =================================
- Target: artifacts
- ================================= -->
- <target name="artifacts-base">
- <ant dir="api" inheritRefs="true" target="artifacts"/>
- <ant dir="common" inheritRefs="true" target="artifacts"/>
- <ant dir="core" inheritRefs="true" target="artifacts"/>
- <ant dir="validator" inheritRefs="true" target="artifacts"/>
- <ant dir="deployers" inheritRefs="true" target="artifacts"/>
- <ant dir="adapters" inheritRefs="true" target="artifacts"/>
- </target>
-
- <target name="artifacts" depends="resolve,artifacts-base" unless="brew">
- <ant dir="embedded" inheritRefs="true" target="artifacts"/>
- <ant dir="codegenerator" inheritRefs="true" target="artifacts"/>
- <ant dir="as" inheritRefs="true" target="artifacts"/>
- </target>
-
- <!-- =================================
- Target: sjc
- ================================= -->
- <target name="sjc" depends="jars">
- <ant dir="sjc" inheritRefs="true" target="sjc"/>
- </target>
-
- <!-- =================================
- Target: release
- ================================= -->
- <target name="release" depends="clean,sjc">
- <delete dir="${build.dir}"/>
-
- <mkdir dir="${build.dir}" />
- <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}" />
- <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc" />
- <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/spec" />
-
- <ant dir="${doc.dir}/samples/helloworld" target="dist-clean" inheritRefs="false" inheritAll="false"/>
-
- <ant dir="${doc.dir}/developerguide" target="pdf" inheritRefs="false" inheritAll="false"/>
- <ant dir="${doc.dir}/userguide" target="pdf" inheritRefs="false" inheritAll="false"/>
-
- <copy flatten="true" todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc">
- <fileset dir="${target.dir}/docs">
- <include name="**/*.pdf"/>
- </fileset>
- </copy>
-
- <ant dir="sjc" inheritRefs="true" target="war"/>
- <delete dir="${build.dir}/sjc"/>
-
- <ant dir="api" inheritRefs="true" target="docs"/>
- <move todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/spec">
- <fileset dir="${target.dir}/docs/spec">
- <include name="**/*"/>
- </fileset>
- </move>
- <delete dir="${build.dir}/api"/>
-
- <copy todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}">
- <fileset dir="${target.dir}/sjc"/>
- </copy>
- <chmod perm="755" type="file">
- <fileset dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}">
- <include name="**/*.sh"/>
- </fileset>
- </chmod>
-
- <delete dir="${build.dir}/docbook"/>
-
- <zip destfile="${name}-${major}.${minor}.${patch}.${type}.zip"
- basedir="${build.dir}"/>
-
- <tar destfile="${name}-${major}.${minor}.${patch}.${type}.tar"
- basedir="${build.dir}"/>
-
- <gzip zipfile="${name}-${major}.${minor}.${patch}.${type}.tar.gz"
- src="${name}-${major}.${minor}.${patch}.${type}.tar"/>
-
- <delete file="${name}-${major}.${minor}.${patch}.${type}.tar"/>
-
- </target>
-
- <!-- =================================
- Target: checkstyle
- ================================= -->
- <target name="checkstyle" depends="jars">
- <taskdef name="checkstyle"
- classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"
- classpathref="checkstyle.lib.path.id"/>
-
- <mkdir dir="${reports.dir}/checkstyle" />
-
- <checkstyle config="${tools.dir}/checkstyle/checkstyle.xml"
- failOnViolation="false"
- classpathref="checkstyle.lib.path.id">
- <fileset dir="${basedir}">
- <include name="**/*.java"/>
- <exclude name="build/**/*.java"/>
- </fileset>
- <formatter type="plain"/>
- <formatter type="xml" toFile="${reports.dir}/checkstyle/checkstyle-result.xml"/>
- </checkstyle>
- </target>
-
- <!-- =================================
- Target: findbugs
- ================================= -->
- <target name="findbugs" depends="jars">
- <taskdef name="findbugs"
- classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
- classpathref="findbugs.lib.path.id"/>
-
- <mkdir dir="${reports.dir}/findbugs" />
-
- <findbugs home="${basedir}/tools/findbugs/lib/"
- output="html"
- outputFile="${reports.dir}/findbugs/findbugs.html"
- excludeFilter="${basedir}/tools/findbugs/filter.xml"
- reportLevel="low">
- <auxClasspath>
- <fileset dir="${lib.dir}/common">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/embedded">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/arquillian">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/jetty">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/hornetq">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/sjc">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/mail">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/rhq">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/test">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <include name="*.jar"/>
- </fileset>
- </auxClasspath>
- <class location="${target.dir}/${name}-as.jar" />
- <class location="${target.dir}/${name}-codegenerator.jar" />
- <class location="${target.dir}/${name}-common-api.jar" />
- <class location="${target.dir}/${name}-common-impl.jar" />
- <class location="${target.dir}/${name}-common-impl-papaki.jar" />
- <class location="${target.dir}/${name}-common-spi.jar" />
- <class location="${target.dir}/${name}-core-api.jar" />
- <class location="${target.dir}/${name}-core-impl.jar" />
- <class location="${target.dir}/${name}-deployers-common.jar" />
- <class location="${target.dir}/${name}-deployers-fungal.jar" />
- <class location="${target.dir}/${name}-embedded.jar" />
- <class location="${target.dir}/${name}-embedded-arquillian.jar" />
- <class location="${target.dir}/${name}-rhq.jar" />
- <class location="${target.dir}/${name}-sjc.jar" />
- <class location="${target.dir}/${name}-spec-api.jar" />
- <class location="${target.dir}/${name}-validator.jar" />
- <class location="${target.dir}/${name}-validator-ant.jar" />
- <class location="${target.dir}/${name}-validator-cli.jar" />
- <class location="${target.dir}/${name}-validator-maven.jar" />
- <class location="${target.dir}/${name}-web.jar" />
- <class location="${target.dir}/${name}-web-console.jar" />
- </findbugs>
-
- <findbugs home="${basedir}/tools/findbugs/lib/"
- output="xml:withMessages"
- outputFile="${reports.dir}/findbugs/findbugs.xml"
- excludeFilter="${basedir}/tools/findbugs/filter.xml"
- reportLevel="low">
- <auxClasspath>
- <fileset dir="${lib.dir}/common">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/embedded">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/arquillian">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/jetty">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/hornetq">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/sjc">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/mail">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/rhq">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/test">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <include name="*.jar"/>
- </fileset>
- </auxClasspath>
- <class location="${target.dir}/${name}-as.jar" />
- <class location="${target.dir}/${name}-codegenerator.jar" />
- <class location="${target.dir}/${name}-common-api.jar" />
- <class location="${target.dir}/${name}-common-impl.jar" />
- <class location="${target.dir}/${name}-common-impl-papaki.jar" />
- <class location="${target.dir}/${name}-common-spi.jar" />
- <class location="${target.dir}/${name}-core-api.jar" />
- <class location="${target.dir}/${name}-core-impl.jar" />
- <class location="${target.dir}/${name}-deployers-common.jar" />
- <class location="${target.dir}/${name}-deployers-fungal.jar" />
- <class location="${target.dir}/${name}-embedded.jar" />
- <class location="${target.dir}/${name}-embedded-arquillian.jar" />
- <class location="${target.dir}/${name}-rhq.jar" />
- <class location="${target.dir}/${name}-sjc.jar" />
- <class location="${target.dir}/${name}-spec-api.jar" />
- <class location="${target.dir}/${name}-validator.jar" />
- <class location="${target.dir}/${name}-validator-ant.jar" />
- <class location="${target.dir}/${name}-validator-cli.jar" />
- <class location="${target.dir}/${name}-validator-maven.jar" />
- <class location="${target.dir}/${name}-web.jar" />
- <class location="${target.dir}/${name}-web-console.jar" />
- </findbugs>
- </target>
-
- <!-- =================================
- Target: cobertura
- ================================= -->
- <target name="cobertura" depends="prepare-test">
- <taskdef resource="tasks.properties"
- classpathref="cobertura.lib.path.id"/>
-
- <mkdir dir="${reports.dir}/cobertura" />
- <mkdir dir="${reports.dir}/cobertura/tests" />
-
- <delete file="${reports.dir}/cobertura/cobertura.ser"/>
- <delete dir="${build.dir}/instrumented"/>
-
- <mkdir dir="${build.dir}/instrumented" />
- <copy todir="${build.dir}/instrumented">
- <fileset dir="${target.dir}">
- <include name="*.jar"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/instrumented">
- <fileset dir="${build.dir}/adapters">
- <include name="*.jar"/>
- </fileset>
- </copy>
-
- <cobertura-instrument todir="${build.dir}/instrumented"
- datafile="${reports.dir}/cobertura/cobertura.ser">
- <fileset dir="${target.dir}">
- <include name="ironjacamar*.jar" />
- </fileset>
- </cobertura-instrument>
-
- <copy todir="${build.dir}/instrumented">
- <fileset dir="${target.dir}">
- <include name="${name}-core-api.jar"/>
- </fileset>
- </copy>
-
- <junit dir="common/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/common/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/common/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <junit dir="core/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/core/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/core/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <junit dir="deployers/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="archives.dir" value="${build.dir}/deployers"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/deployers/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/deployers/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <junit dir="embedded/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/embedded/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/embedded/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <junit dir="validator/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/validator/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/validator/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <junit dir="codegenerator/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/codegenerator/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/codegenerator/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <junit dir="adapters/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="archives.dir" value="${build.dir}/adapters"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/adapters/"/>
- <pathelement location="${build.dir}/adapters/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/adapters/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <junit dir="rhq/src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="yes"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="archives.dir" value="${build.dir}/rhq"/>
- <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
- <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
- <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
- <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
- <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
- <sysproperty key="log4j.defaultInitOverride" value="true"/>
-
- <classpath>
- <fileset dir="${build.dir}/instrumented" includes="*.jar" />
- <pathelement location="${build.dir}/rhq/"/>
- <pathelement location="${build.dir}/rhq/test"/>
- <fileset dir="${lib.dir}/common" includes="*.jar" />
- <fileset dir="${lib.dir}/embedded" includes="*.jar" />
- <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
- <fileset dir="${lib.dir}/jetty" includes="*.jar" />
- <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
- <fileset dir="${lib.dir}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/mail" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" includes="*.jar" />
- <fileset dir="${lib.dir}/rhq" includes="*.jar" />
- </classpath>
- <classpath refid="cobertura.lib.path.id" />
-
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/cobertura/tests">
- <fileset dir="${build.dir}/rhq/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
- </junit>
-
- <cobertura-report format="html"
- destdir="${reports.dir}/cobertura/html"
- datafile="${reports.dir}/cobertura/cobertura.ser">
- <fileset dir="api/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="adapters/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="codegenerator/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="common/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="core/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="deployers/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="embedded/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="sjc/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="validator/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="web/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="rhq/src/main/java">
- <include name="**/*.java" />
- </fileset>
- </cobertura-report>
-
- <cobertura-report format="xml"
- destdir="${reports.dir}/cobertura/xml"
- datafile="${reports.dir}/cobertura/cobertura.ser">
- <fileset dir="api/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="adapters/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="codegenerator/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="common/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="core/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="deployers/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="embedded/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="sjc/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="validator/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="web/src/main/java">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="rhq/src/main/java">
- <include name="**/*.java" />
- </fileset>
- </cobertura-report>
- </target>
-
- <!-- =================================
- Target: tattletale
- ================================= -->
- <target name="tattletale" depends="sjc">
- <taskdef name="report"
- classname="org.jboss.tattletale.ant.ReportTask"
- classpathref="tattletale.lib.path.id"/>
-
- <mkdir dir="${reports.dir}/tattletale"/>
-
- <report source="${target.dir}/sjc"
- destination="${reports.dir}/tattletale"
- configuration="${tools.dir}/tattletale/configuration.properties"
- filter="${tools.dir}/tattletale/filter.properties"
- profiles="java6"/>
- </target>
-
- <!-- =================================
- Target: clean
- ================================= -->
- <target name="clean">
- <delete>
- <fileset dir="${basedir}" defaultexcludes="no">
- <include name="**/*~"/>
- <include name="**/*.bak"/>
- </fileset>
- </delete>
- <delete>
- <fileset dir="${lib.dir}" includes="**/*.jar"/>
- </delete>
- <delete dir="${build.dir}"/>
- <delete dir="${target.dir}"/>
- <delete dir="${reports.dir}"/>
- <delete file="${name}-${major}.${minor}.${patch}.${type}.zip" />
- <delete file="${name}-${major}.${minor}.${patch}.${type}.tar.gz" />
-
- <ant antfile="tools/docant/build.xml" target="clean" inheritrefs="false" inheritAll="false"/>
- <delete dir="${doc.dir}/target"/>
- </target>
-
- <!-- =================================
- Target: clean-cache
- ================================= -->
- <target name="clean-cache">
- <ivy:cleancache />
- </target>
-
- <!-- =================================
- Target: nexus
- ================================= -->
- <macrodef name="deploy-file">
- <attribute name="file"/>
- <attribute name="artifact"/>
- <attribute name="extension"/>
- <sequential>
- <concat destfile="${target.dir}/@{file}" append="true" force="true" eol="unix">
-mvn -s ${mavensettings} org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml -Dsources=$PWD/@{artifact}-sources.jar -Djavadoc=$PWD/@{artifact}-javadoc.jar $REPOSITORY
-</concat>
- </sequential>
- </macrodef>
-
- <macrodef name="install-file">
- <attribute name="file"/>
- <attribute name="artifact"/>
- <attribute name="extension"/>
- <sequential>
- <concat destfile="${target.dir}/@{file}" append="true" force="true" eol="unix">
-mvn install:install-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml -Dsources=$PWD/@{artifact}-sources.jar -Djavadoc=$PWD/@{artifact}-javadoc.jar
-</concat>
- </sequential>
- </macrodef>
-
- <target name="nexus-base">
- <delete file="${target.dir}/deploy.sh"/>
- <delete file="${target.dir}/install.sh"/>
-
- <concat destfile="${target.dir}/deploy.sh" append="true" force="true" eol="unix">#!/bin/sh
-PWD=`pwd`
-VERSION=${version}
-REPOSITORY='-Durl=${repositoryurl} -DrepositoryId=${repositoryid}'
-</concat>
-
- <concat destfile="${target.dir}/install.sh" append="true" force="true" eol="unix">#!/bin/sh
-PWD=`pwd`
-VERSION=${version}
-</concat>
-
- <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
- conf="${name}-common-api,${name}-common-impl,${name}-common-spi,${name}-core-api,${name}-core-impl,${name}-deployers-common,${name}-validator"
- sync="true"/>
-
- <!-- ironjacamar-spec-api -->
- <delete file="${target.dir}/${name}-spec-api.xml"/>
- <ivy:makepom artifactName="${name}-spec-api"
- conf="${name}-spec-api"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-spec-api.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-spec-api" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-spec-api" extension="jar"/>
-
- <!-- ironjacamar-common-api -->
- <delete file="${target.dir}/${name}-common-api.xml"/>
- <ivy:makepom artifactName="${name}-common-api"
- conf="${name}-common-api"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-common-api.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-common-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-common-api" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-common-api" extension="jar"/>
-
- <!-- ironjacamar-common-impl -->
- <delete file="${target.dir}/${name}-common-impl.xml"/>
- <ivy:makepom artifactName="${name}-common-impl"
- conf="${name}-common-impl"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-common-impl.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-common-impl" scope="runtime"/>
- <dependency artifact="${name}-common-api" scope="runtime"/>
- <dependency artifact="${name}-common-spi" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-common-impl" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-common-impl" extension="jar"/>
-
- <!-- ironjacamar-common-spi -->
- <delete file="${target.dir}/${name}-common-spi.xml"/>
- <ivy:makepom artifactName="${name}-common-spi"
- conf="${name}-common-spi"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-common-spi.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-common-spi" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-common-spi" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-common-spi" extension="jar"/>
-
- <!-- ironjacamar-core-api -->
- <delete file="${target.dir}/${name}-core-api.xml"/>
- <ivy:makepom artifactName="${name}-core-api"
- conf="${name}-core-api"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-core-api.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-core-api" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-core-api" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-core-api" extension="jar"/>
-
- <!-- ironjacamar-core-impl -->
- <delete file="${target.dir}/${name}-core-impl.xml"/>
- <ivy:makepom artifactName="${name}-core-impl"
- conf="${name}-core-impl"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-core-impl.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-core-impl" scope="runtime"/>
- <dependency artifact="${name}-common-impl" scope="runtime"/>
- <dependency artifact="${name}-core-api" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-core-impl" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-core-impl" extension="jar"/>
-
- <!-- ironjacamar-deployers-common -->
- <delete file="${target.dir}/${name}-deployers-common.xml"/>
- <ivy:makepom artifactName="${name}-deployers-common"
- conf="${name}-deployers-common"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-deployers-common.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-deployers-common" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-deployers-common" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-deployers-common" extension="jar"/>
-
- <!-- ironjacamar-validator -->
- <delete file="${target.dir}/${name}-validator.xml"/>
- <ivy:makepom artifactName="${name}-validator"
- conf="${name}-validator"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-validator.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-validator" scope="runtime"/>
- <dependency artifact="${name}-common-api" scope="runtime"/>
- <dependency artifact="${name}-common-impl" scope="runtime"/>
- <dependency artifact="${name}-common-spi" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-validator" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-validator" extension="jar"/>
-
- <!-- ironjacamar-jdbc -->
- <delete file="${target.dir}/${name}-jdbc.xml"/>
- <ivy:makepom artifactName="${name}-jdbc"
- conf="${name}-jdbc"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-jdbc.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-jdbc" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-jdbc" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-jdbc" extension="jar"/>
-
- </target>
-
- <target name="nexus" depends="clean,artifacts,nexus-base" unless="brew">
- <fail message="IronJacamar doesn't support JDK 7+ artifacts" if="HAVE_JDK_1.7"/>
-
- <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
- conf="${name}-as,${name}-codegenerator,${name}-common-impl-papaki,${name}-deployers-fungal,${name}-embedded,${name}-embedded-arquillian,${name}-spec-api,${name}-validator-ant,${name}-validator-cli,jdbc-local,jdbc-xa,mail"
- sync="true"/>
-
- <!-- ironjacamar-as -->
- <delete file="${target.dir}/${name}-as.xml"/>
- <ivy:makepom artifactName="${name}-as"
- conf="${name}-as"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-as.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-as" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-as" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-as" extension="jar"/>
-
- <!-- ironjacamar-codegenerator -->
- <delete file="${target.dir}/${name}-codegenerator.xml"/>
- <ivy:makepom artifactName="${name}-codegenerator"
- conf="${name}-codegenerator"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-codegenerator.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-codegenerator" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-codegenerator" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-codegenerator" extension="jar"/>
-
- <!-- ironjacamar-common-impl-papaki -->
- <delete file="${target.dir}/${name}-common-impl-papaki.xml"/>
- <ivy:makepom artifactName="${name}-common-impl-papaki"
- conf="${name}-common-impl-papaki"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-common-impl-papaki.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-common-impl-papaki" scope="runtime"/>
- <dependency artifact="${name}-common-spi" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-common-impl-papaki" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-common-impl-papaki" extension="jar"/>
-
- <!-- ironjacamar-depchain -->
- <delete file="${target.dir}/${name}-depchain.xml"/>
- <ivy:makepom artifactName="${name}-depchain"
- conf="${name}-depchain"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-depchain.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-depchain" scope="runtime"/>
- </ivy:makepom>
-
- <concat destfile="${target.dir}/deploy.sh" append="true" force="true" eol="unix">
-mvn -s ${mavensettings} org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file -Dfile=$PWD/${name}-depchain.xml -DpomFile=${name}-depchain.xml $REPOSITORY
-</concat>
-<concat destfile="${target.dir}/install.sh" append="true" force="true" eol="unix">
-mvn install:install-file -Dfile=$PWD/${name}-depchain.xml -DpomFile=${name}-depchain.xml -DuniqueVersion=false $REPOSITORY
-</concat>
-
- <!-- ironjacamar-deployers-fungal -->
- <delete file="${target.dir}/${name}-deployers-fungal.xml"/>
- <ivy:makepom artifactName="${name}-deployers-fungal"
- conf="${name}-deployers-fungal"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-deployers-fungal.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-deployers-fungal" scope="runtime"/>
- <dependency artifact="${name}-common-impl" scope="runtime"/>
- <dependency artifact="${name}-core-api" scope="runtime"/>
- <dependency artifact="${name}-core-impl" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- <dependency artifact="${name}-validator" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-deployers-fungal" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-deployers-fungal" extension="jar"/>
-
- <!-- ironjacamar-embedded -->
- <delete file="${target.dir}/${name}-embedded.xml"/>
- <ivy:makepom artifactName="${name}-embedded"
- conf="${name}-embedded"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-embedded.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-embedded" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-embedded" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-embedded" extension="jar"/>
-
- <!-- ironjacamar-embedded-arquillian -->
- <delete file="${target.dir}/${name}-embedded-arquillian.xml"/>
- <ivy:makepom artifactName="${name}-embedded-arquillian"
- conf="${name}-embedded-arquillian"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-embedded-arquillian.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-embedded-arquillian" scope="runtime"/>
- <dependency artifact="${name}-embedded" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
-
- <!-- ironjacamar-validator-ant -->
- <delete file="${target.dir}/${name}-validator-ant.xml"/>
- <ivy:makepom artifactName="${name}-validator-ant"
- conf="${name}-validator-ant"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-validator-ant.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-validator-ant" scope="runtime"/>
- <dependency artifact="${name}-validator" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-validator-ant" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-validator" extension="jar"/>
-
- <!-- ironjacamar-validator-cli -->
- <delete file="${target.dir}/${name}-validator-cli.xml"/>
- <ivy:makepom artifactName="${name}-validator-cli"
- conf="${name}-validator-cli"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-validator-cli.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-validator-cli" scope="runtime"/>
- <dependency artifact="${name}-validator" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-validator-cli" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-validator-cli" extension="jar"/>
-
- <!-- ironjacamar-validator-maven -->
- <delete file="${target.dir}/${name}-validator-maven.xml"/>
- <ivy:makepom artifactName="${name}-validator-maven"
- conf="${name}-validator-maven"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-validator-maven.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-validator-maven" scope="runtime"/>
- <dependency artifact="${name}-validator" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="${name}-validator-maven" extension="jar"/>
- <install-file file="install.sh" artifact="${name}-validator-maven" extension="jar"/>
-
- <!-- jdbc-local -->
- <delete file="${target.dir}/jdbc-local.xml"/>
- <ivy:makepom artifactName="jdbc-local"
- conf="jdbc-local"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/jdbc-local.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="jdbc-local" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="jdbc-local" extension="rar"/>
- <install-file file="install.sh" artifact="jdbc-local" extension="rar"/>
-
- <!-- jdbc-xa -->
- <delete file="${target.dir}/jdbc-xa.xml"/>
- <ivy:makepom artifactName="jdbc-xa"
- conf="jdbc-xa"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/jdbc-xa.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="jdbc-xa" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="jdbc-xa" extension="rar"/>
- <install-file file="install.sh" artifact="jdbc-xa" extension="rar"/>
-
- <!-- mail -->
- <delete file="${target.dir}/mail.xml"/>
- <ivy:makepom artifactName="mail"
- conf="mail"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/mail.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="mail" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="deploy.sh" artifact="mail" extension="rar"/>
- <install-file file="install.sh" artifact="mail" extension="rar"/>
-
- <chmod file="${target.dir}/deploy.sh" perm="755"/>
- <chmod file="${target.dir}/install.sh" perm="755"/>
-
- </target>
-
- <target name="init-brew-path" if="brew">
- <path id="main.lib.path.id">
- <path refid="brew.lib.path.id"/>
- </path>
- </target>
-
-</project>
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/build.xml (from rev 112186, projects/jboss-jca/trunk/build.xml)
===================================================================
--- projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/build.xml (rev 0)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_1_0_ALPHA1/build.xml 2011-08-31 14:46:28 UTC (rev 112187)
@@ -0,0 +1,1577 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="ironjacamar"
+ default="jars"
+ basedir="."
+ xmlns:ivy="antlib:org.apache.ivy.ant">
+
+ <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
+ <available classname="java.lang.management.LockInfo" property="HAVE_JDK_1.6"/>
+ <available classname="java.util.concurrent.ForkJoinPool" property="HAVE_JDK_1.7"/>
+
+ <!-- =================================
+ Project
+ ================================= -->
+ <property name="name" value="ironjacamar"/>
+ <property name="major" value="1"/>
+ <property name="minor" value="1"/>
+ <property name="patch" value="0"/>
+ <property name="type" value="Alpha1"/>
+
+ <condition property="version" value="${major}.${minor}.${patch}-SNAPSHOT">
+ <isset property="snapshot"/>
+ </condition>
+ <property name="version" value="${major}.${minor}.${patch}.${type}"/>
+
+ <!-- =================================
+ Maven repository settings
+ ================================= -->
+ <condition property="mavensettings" value="/private/ironjacamar/settings.xml">
+ <isset property="cloudbees"/>
+ </condition>
+ <property name="mavensettings" value="$HOME/.m2/settings.xml"/>
+
+ <condition property="repositoryurl" value="https://repository.jboss.org/nexus/content/repositories/snapshots/">
+ <isset property="snapshot"/>
+ </condition>
+ <property name="repositoryurl" value="https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/"/>
+
+ <condition property="repositoryid" value="jboss-snapshots">
+ <isset property="snapshot"/>
+ </condition>
+ <property name="repositoryid" value="jboss-releases"/>
+
+ <!-- =================================
+ Ivy
+ ================================= -->
+ <property name="ivy.version" value="2.2.0"/>
+ <property name="ivy.dir" value="${user.home}/.ivy2/cache/org.apache.ivy/jars"/>
+ <property name="ivy.jar.name" value="ivy-${ivy.version}.jar"/>
+
+ <!-- =================================
+ Repositories
+ ================================= -->
+ <property name="central.repo" value="http://repo1.maven.org/maven2"/>
+ <property name="jboss.repo" value="http://repository.jboss.org/nexus/content/groups/public/"/>
+ <property name="snapshots.repo" value="http://repository.jboss.org/nexus/content/repositories/snapshots/"/>
+ <property name="fungal.repo" value="http://jesperpedersen.github.com/fungal/maven2"/>
+
+ <!-- =================================
+ Properties
+ ================================= -->
+ <property name="lib.dir" value="${basedir}/lib" />
+ <property name="build.dir" value="${basedir}/build" />
+ <property name="api.dir" value="${basedir}/api" />
+ <property name="doc.dir" value="${basedir}/doc" />
+ <property name="target.dir" value="${basedir}/target" />
+ <property name="tools.dir" value="${basedir}/tools" />
+ <property name="reports.dir" value="${basedir}/reports" />
+ <property name="test.dir" value="${reports.dir}" />
+
+ <property name="javac.debug" value="on" />
+ <property name="javac.deprecation" value="on" />
+ <property name="javac.optimize" value="off" />
+
+ <property name="junit.printsummary" value="yes" />
+ <property name="junit.haltonerror" value="no" />
+ <property name="junit.haltonfailure" value="no" />
+ <property name="junit.fork" value="yes" />
+ <property name="junit.timeout" value="60000" />
+ <property name="junit.jvm" value="" />
+ <property name="junit.jvm.options" value="-Xms128m -Xmx512m -XX:MaxPermSize=256m" />
+ <property name="junit.batchtest.haltonerror" value="no" />
+ <property name="junit.batchtest.haltonfailure" value="no" />
+ <property name="junit.batchtest.fork" value="yes" />
+
+ <!-- =================================
+ Versions
+ ================================= -->
+ <property name="version.ant" value="1.8.1"/>
+ <property name="version.activation" value="1.1"/>
+ <property name="version.apache-log4j" value="1.2.16"/>
+ <property name="version.apache-logging" value="1.1.0.jboss"/>
+ <property name="version.apiviz" value="1.3.1.GA"/>
+ <property name="version.arquillian" value="1.0.0.CR4"/>
+ <property name="version.dom4j" value="1.6.1"/>
+ <property name="version.mockito" value="1.8.5"/>
+ <property name="version.eclipse.ecj" value="3.5.1"/>
+ <property name="version.fungal" value="0.10.0.RC1"/>
+ <property name="version.h2" value="1.3.159"/>
+ <property name="version.hibernate-annotations" value="3.5.1-Final"/>
+ <property name="version.hibernate-validator" value="4.2.0.Final"/>
+ <property name="version.hornetq" value="2.2.2.Final"/>
+ <property name="version.javassist" value="3.14.0-GA"/>
+ <property name="version.jboss.common" value="2.2.17.GA"/>
+ <property name="version.jboss.jaspi.api" value="1.0.0.Final"/>
+ <property name="version.jboss.jms.api" value="1.0.0.Beta1"/>
+ <property name="version.jboss.logging" value="3.0.0.GA"/>
+ <property name="version.jboss.logging-generator" value="1.0.0.Beta7"/>
+ <property name="version.jboss.logging-processor" value="1.0.0.Beta7"/>
+ <property name="version.jboss.logmanager" value="1.2.0.GA"/>
+ <property name="version.jboss.naming" value="5.0.3.GA"/>
+ <property name="version.jboss.netty" value="3.2.1.Final"/>
+ <property name="version.jboss.papaki" value="1.0.0.Beta3"/>
+ <property name="version.jboss.picketbox" value="4.0.1"/>
+ <property name="version.jboss.security" value="2.1.0.20090318"/>
+ <property name="version.jboss.shrinkwrap" value="1.0.0-beta-5"/>
+ <property name="version.jboss.shrinkwrap.descriptors" value="1.1.0-alpha-2"/>
+ <property name="version.jboss.slf4j" value="1.0.2.GA"/>
+ <property name="version.jboss.slf4j.logmanager" value="1.0.0.GA"/>
+ <property name="version.jboss.stdio" value="1.0.0.GA"/>
+ <property name="version.jboss.threads" value="2.0.0.GA"/>
+ <property name="version.jboss.ts" value="4.15.3.Final"/>
+ <property name="version.jboss.ts.spi" value="7.0.0.CR1"/>
+ <property name="version.jdepend" value="2.9.1"/>
+ <property name="version.jetty" value="7.4.3.v20110701"/>
+ <property name="version.jetty.servlet" value="6.1.14"/>
+ <property name="version.jetty.glassfish" value="2.1.v20100127"/>
+ <property name="version.jasper" value="glassfish_2.1.0.v201004190952"/>
+ <property name="version.jpa" value="1.0"/>
+ <property name="version.junit" value="4.8.2"/>
+ <property name="version.jaxb.api" value="2.0"/>
+ <property name="version.jaxb.impl" value="2.1"/>
+ <property name="version.mail-api" value="1.4.4"/>
+ <property name="version.maven" value="2.2.1"/>
+ <property name="version.rhq" value="4.0.0.Beta1"/>
+ <property name="version.slf4j" value="1.6.1"/>
+ <property name="version.transaction.api" value="1.0.0.Final"/>
+ <property name="version.validation-api" value="1.0.0.GA"/>
+
+ <!-- =================================
+ Paths
+ ================================= -->
+ <path id="main.lib.path.id">
+ <fileset dir="${lib.dir}/common">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/embedded">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/arquillian">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/jetty">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/hornetq">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/sjc">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/mail">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/rhq">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${target.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="brew.lib.path.id">
+ <fileset dir="${lib.dir}/brew">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${target.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="test.lib.path.id">
+ <fileset dir="${lib.dir}/common">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/sjc">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/embedded">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/arquillian">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/mail">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/hornetq">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/test">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/rhq">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${target.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="checkstyle.lib.path.id">
+ <fileset dir="${tools.dir}/checkstyle/lib"/>
+ <fileset dir="${lib.dir}/common">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/embedded">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/arquillian">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/jetty">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/hornetq">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/sjc">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/mail">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/test">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/rhq">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${target.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="findbugs.lib.path.id">
+ <fileset dir="${tools.dir}/findbugs/lib"/>
+ </path>
+
+ <path id="cobertura.lib.path.id">
+ <fileset dir="${tools.dir}/cobertura/lib"/>
+ </path>
+
+ <path id="tattletale.lib.path.id">
+ <fileset dir="${tools.dir}/tattletale/lib"/>
+ </path>
+
+ <!-- =================================
+ Bootstrap Ivy
+ ================================= -->
+ <mkdir dir="${ivy.dir}"/>
+ <get usetimestamp="true" src="https://repository.apache.org/content/repositories/releases/org/apache/ivy/ivy/${ivy.version}/${ivy.jar.name}"
+ skipexisting="true"
+ dest="${ivy.dir}/${ivy.jar.name}"/>
+ <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ivy.dir}/${ivy.jar.name}"/>
+
+ <!-- =================================
+ Target: init
+ ================================= -->
+ <target name="init" depends="init-brew-path">
+ <fail message="IronJacamar requires JDK6+" unless="HAVE_JDK_1.6"/>
+
+ <ivy:settings file="${basedir}/ivy.settings.xml"/>
+
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${target.dir}" />
+ </target>
+
+ <!-- =================================
+ Target: resolve
+ ================================= -->
+ <target name="resolve-brew" if="brew">
+ <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
+ conf="brew"
+ sync="true"/>
+ </target>
+
+ <target name="resolve" depends="init,resolve-brew" unless="brew">
+ <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
+ conf="common,sjc,embedded,arquillian,jetty,hornetq,mail,rhq,test,tools"
+ sync="true"/>
+ </target>
+
+ <!-- =================================
+ Target: report
+ ================================= -->
+ <target name="report" depends="resolve">
+ <ivy:report todir="${target.dir}"/>
+ </target>
+
+ <!-- =================================
+ Target: jars
+ ================================= -->
+ <target name="jars-base">
+ <ant dir="api" inheritRefs="true" target="jars"/>
+ <ant dir="common" inheritRefs="true" target="jars"/>
+ <ant dir="core" inheritRefs="true" target="jars"/>
+ <ant dir="validator" inheritRefs="true" target="jars"/>
+ <ant dir="deployers" inheritRefs="true" target="jars"/>
+ <ant dir="adapters" inheritRefs="true" target="jars"/>
+ </target>
+
+ <target name="jars" depends="resolve,jars-base" unless="brew">
+ <ant dir="embedded" inheritRefs="true" target="jars"/>
+ <ant dir="web" inheritRefs="true" target="jars"/>
+ <ant dir="sjc" inheritRefs="true" target="jars"/>
+ <ant dir="codegenerator" inheritRefs="true" target="jars"/>
+ <ant dir="rhq" inheritRefs="true" target="jars"/>
+ <ant dir="as" inheritRefs="true" target="jars"/>
+ </target>
+
+ <!-- =================================
+ Target: docs
+ ================================= -->
+ <target name="docs-base">
+ <ant dir="api" inheritRefs="true" target="docs"/>
+ <ant dir="common" inheritRefs="true" target="docs"/>
+ <ant dir="core" inheritRefs="true" target="docs"/>
+ <ant dir="validator" inheritRefs="true" target="docs"/>
+ <ant dir="deployers" inheritRefs="true" target="docs"/>
+ <ant dir="adapters" inheritRefs="true" target="docs"/>
+ </target>
+
+ <target name="docs" depends="jars,docs-base" unless="brew">
+ <ant dir="embedded" inheritRefs="true" target="docs"/>
+ <ant dir="web" inheritRefs="true" target="docs"/>
+ <ant dir="sjc" inheritRefs="true" target="docs"/>
+ <ant dir="codegenerator" inheritRefs="true" target="docs"/>
+ <ant dir="rhq" inheritRefs="true" target="docs"/>
+ <ant dir="as" inheritRefs="true" target="docs"/>
+ </target>
+
+ <!-- =================================
+ Target: manual
+ ================================= -->
+ <target name="manual">
+ <ant dir="${doc.dir}/developerguide" inheritRefs="false" inheritAll="false"/>
+ <ant dir="${doc.dir}/userguide" inheritRefs="false" inheritAll="false"/>
+ </target>
+
+ <!-- =================================
+ Target: prepare test
+ ================================= -->
+ <target name="prepare-test" depends="jars">
+ <ant dir="common" inheritRefs="true" target="prepare-test"/>
+ <ant dir="core" inheritRefs="true" target="prepare-test"/>
+ <ant dir="embedded" inheritRefs="true" target="prepare-test"/>
+ <ant dir="deployers" inheritRefs="true" target="prepare-test"/>
+ <ant dir="validator" inheritRefs="true" target="prepare-test"/>
+ <ant dir="codegenerator" inheritRefs="true" target="prepare-test"/>
+ <ant dir="adapters" inheritRefs="true" target="prepare-test"/>
+ <ant dir="rhq" inheritRefs="true" target="prepare-test"/>
+ </target>
+
+ <!-- =================================
+ Target: test
+ ================================= -->
+ <target name="test" depends="prepare-test">
+ <ant dir="common" inheritRefs="true" target="test"/>
+ <ant dir="core" inheritRefs="true" target="test"/>
+ <ant dir="embedded" inheritRefs="true" target="test"/>
+ <ant dir="deployers" inheritRefs="true" target="test"/>
+ <ant dir="validator" inheritRefs="true" target="test"/>
+ <ant dir="adapters" inheritRefs="true" target="test"/>
+ <ant dir="rhq" inheritRefs="true" target="test"/>
+ </target>
+
+ <!-- =================================
+ Target: one-test
+ ================================= -->
+ <target name="one-test" depends="jars">
+ <condition property="module" else="core">
+ <equals arg1="${module}" arg2="" trim="true"/>
+ </condition>
+
+ <ant dir="${module}" inheritRefs="true" target="one-test"/>
+ </target>
+
+ <!-- =================================
+ Target: module-test
+ ================================= -->
+ <target name="module-test" depends="jars">
+ <condition property="module" else="core">
+ <equals arg1="${module}" arg2="" trim="true"/>
+ </condition>
+
+ <ant dir="${module}" inheritRefs="true" target="test"/>
+ </target>
+
+ <!-- =================================
+ Target: artifacts
+ ================================= -->
+ <target name="artifacts-base">
+ <ant dir="api" inheritRefs="true" target="artifacts"/>
+ <ant dir="common" inheritRefs="true" target="artifacts"/>
+ <ant dir="core" inheritRefs="true" target="artifacts"/>
+ <ant dir="validator" inheritRefs="true" target="artifacts"/>
+ <ant dir="deployers" inheritRefs="true" target="artifacts"/>
+ <ant dir="adapters" inheritRefs="true" target="artifacts"/>
+ </target>
+
+ <target name="artifacts" depends="resolve,artifacts-base" unless="brew">
+ <ant dir="embedded" inheritRefs="true" target="artifacts"/>
+ <ant dir="codegenerator" inheritRefs="true" target="artifacts"/>
+ <ant dir="as" inheritRefs="true" target="artifacts"/>
+ </target>
+
+ <!-- =================================
+ Target: sjc
+ ================================= -->
+ <target name="sjc" depends="jars">
+ <ant dir="sjc" inheritRefs="true" target="sjc"/>
+ </target>
+
+ <!-- =================================
+ Target: release
+ ================================= -->
+ <target name="release" depends="clean,sjc">
+ <delete dir="${build.dir}"/>
+
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}" />
+ <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc" />
+ <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/spec" />
+
+ <ant dir="${doc.dir}/samples/helloworld" target="dist-clean" inheritRefs="false" inheritAll="false"/>
+
+ <ant dir="${doc.dir}/developerguide" target="pdf" inheritRefs="false" inheritAll="false"/>
+ <ant dir="${doc.dir}/userguide" target="pdf" inheritRefs="false" inheritAll="false"/>
+
+ <copy flatten="true" todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc">
+ <fileset dir="${target.dir}/docs">
+ <include name="**/*.pdf"/>
+ </fileset>
+ </copy>
+
+ <ant dir="sjc" inheritRefs="true" target="war"/>
+ <delete dir="${build.dir}/sjc"/>
+
+ <ant dir="api" inheritRefs="true" target="docs"/>
+ <move todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/spec">
+ <fileset dir="${target.dir}/docs/spec">
+ <include name="**/*"/>
+ </fileset>
+ </move>
+ <delete dir="${build.dir}/api"/>
+
+ <copy todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}">
+ <fileset dir="${target.dir}/sjc"/>
+ </copy>
+ <chmod perm="755" type="file">
+ <fileset dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}">
+ <include name="**/*.sh"/>
+ </fileset>
+ </chmod>
+
+ <delete dir="${build.dir}/docbook"/>
+
+ <zip destfile="${name}-${major}.${minor}.${patch}.${type}.zip"
+ basedir="${build.dir}"/>
+
+ <tar destfile="${name}-${major}.${minor}.${patch}.${type}.tar"
+ basedir="${build.dir}"/>
+
+ <gzip zipfile="${name}-${major}.${minor}.${patch}.${type}.tar.gz"
+ src="${name}-${major}.${minor}.${patch}.${type}.tar"/>
+
+ <delete file="${name}-${major}.${minor}.${patch}.${type}.tar"/>
+
+ </target>
+
+ <!-- =================================
+ Target: checkstyle
+ ================================= -->
+ <target name="checkstyle" depends="jars">
+ <taskdef name="checkstyle"
+ classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"
+ classpathref="checkstyle.lib.path.id"/>
+
+ <mkdir dir="${reports.dir}/checkstyle" />
+
+ <checkstyle config="${tools.dir}/checkstyle/checkstyle.xml"
+ failOnViolation="false"
+ classpathref="checkstyle.lib.path.id">
+ <fileset dir="${basedir}">
+ <include name="**/*.java"/>
+ <exclude name="build/**/*.java"/>
+ </fileset>
+ <formatter type="plain"/>
+ <formatter type="xml" toFile="${reports.dir}/checkstyle/checkstyle-result.xml"/>
+ </checkstyle>
+ </target>
+
+ <!-- =================================
+ Target: findbugs
+ ================================= -->
+ <target name="findbugs" depends="jars">
+ <taskdef name="findbugs"
+ classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
+ classpathref="findbugs.lib.path.id"/>
+
+ <mkdir dir="${reports.dir}/findbugs" />
+
+ <findbugs home="${basedir}/tools/findbugs/lib/"
+ output="html"
+ outputFile="${reports.dir}/findbugs/findbugs.html"
+ excludeFilter="${basedir}/tools/findbugs/filter.xml"
+ reportLevel="low">
+ <auxClasspath>
+ <fileset dir="${lib.dir}/common">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/embedded">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/arquillian">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/jetty">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/hornetq">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/sjc">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/mail">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/rhq">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/test">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <include name="*.jar"/>
+ </fileset>
+ </auxClasspath>
+ <class location="${target.dir}/${name}-as.jar" />
+ <class location="${target.dir}/${name}-codegenerator.jar" />
+ <class location="${target.dir}/${name}-common-api.jar" />
+ <class location="${target.dir}/${name}-common-impl.jar" />
+ <class location="${target.dir}/${name}-common-impl-papaki.jar" />
+ <class location="${target.dir}/${name}-common-spi.jar" />
+ <class location="${target.dir}/${name}-core-api.jar" />
+ <class location="${target.dir}/${name}-core-impl.jar" />
+ <class location="${target.dir}/${name}-deployers-common.jar" />
+ <class location="${target.dir}/${name}-deployers-fungal.jar" />
+ <class location="${target.dir}/${name}-embedded.jar" />
+ <class location="${target.dir}/${name}-embedded-arquillian.jar" />
+ <class location="${target.dir}/${name}-rhq.jar" />
+ <class location="${target.dir}/${name}-sjc.jar" />
+ <class location="${target.dir}/${name}-spec-api.jar" />
+ <class location="${target.dir}/${name}-validator.jar" />
+ <class location="${target.dir}/${name}-validator-ant.jar" />
+ <class location="${target.dir}/${name}-validator-cli.jar" />
+ <class location="${target.dir}/${name}-validator-maven.jar" />
+ <class location="${target.dir}/${name}-web.jar" />
+ <class location="${target.dir}/${name}-web-console.jar" />
+ </findbugs>
+
+ <findbugs home="${basedir}/tools/findbugs/lib/"
+ output="xml:withMessages"
+ outputFile="${reports.dir}/findbugs/findbugs.xml"
+ excludeFilter="${basedir}/tools/findbugs/filter.xml"
+ reportLevel="low">
+ <auxClasspath>
+ <fileset dir="${lib.dir}/common">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/embedded">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/arquillian">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/jetty">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/hornetq">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/sjc">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/mail">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/rhq">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/test">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <include name="*.jar"/>
+ </fileset>
+ </auxClasspath>
+ <class location="${target.dir}/${name}-as.jar" />
+ <class location="${target.dir}/${name}-codegenerator.jar" />
+ <class location="${target.dir}/${name}-common-api.jar" />
+ <class location="${target.dir}/${name}-common-impl.jar" />
+ <class location="${target.dir}/${name}-common-impl-papaki.jar" />
+ <class location="${target.dir}/${name}-common-spi.jar" />
+ <class location="${target.dir}/${name}-core-api.jar" />
+ <class location="${target.dir}/${name}-core-impl.jar" />
+ <class location="${target.dir}/${name}-deployers-common.jar" />
+ <class location="${target.dir}/${name}-deployers-fungal.jar" />
+ <class location="${target.dir}/${name}-embedded.jar" />
+ <class location="${target.dir}/${name}-embedded-arquillian.jar" />
+ <class location="${target.dir}/${name}-rhq.jar" />
+ <class location="${target.dir}/${name}-sjc.jar" />
+ <class location="${target.dir}/${name}-spec-api.jar" />
+ <class location="${target.dir}/${name}-validator.jar" />
+ <class location="${target.dir}/${name}-validator-ant.jar" />
+ <class location="${target.dir}/${name}-validator-cli.jar" />
+ <class location="${target.dir}/${name}-validator-maven.jar" />
+ <class location="${target.dir}/${name}-web.jar" />
+ <class location="${target.dir}/${name}-web-console.jar" />
+ </findbugs>
+ </target>
+
+ <!-- =================================
+ Target: cobertura
+ ================================= -->
+ <target name="cobertura" depends="prepare-test">
+ <taskdef resource="tasks.properties"
+ classpathref="cobertura.lib.path.id"/>
+
+ <mkdir dir="${reports.dir}/cobertura" />
+ <mkdir dir="${reports.dir}/cobertura/tests" />
+
+ <delete file="${reports.dir}/cobertura/cobertura.ser"/>
+ <delete dir="${build.dir}/instrumented"/>
+
+ <mkdir dir="${build.dir}/instrumented" />
+ <copy todir="${build.dir}/instrumented">
+ <fileset dir="${target.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${build.dir}/instrumented">
+ <fileset dir="${build.dir}/adapters">
+ <include name="*.jar"/>
+ </fileset>
+ </copy>
+
+ <cobertura-instrument todir="${build.dir}/instrumented"
+ datafile="${reports.dir}/cobertura/cobertura.ser">
+ <fileset dir="${target.dir}">
+ <include name="ironjacamar*.jar" />
+ </fileset>
+ </cobertura-instrument>
+
+ <copy todir="${build.dir}/instrumented">
+ <fileset dir="${target.dir}">
+ <include name="${name}-core-api.jar"/>
+ </fileset>
+ </copy>
+
+ <junit dir="common/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/common/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/common/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <junit dir="core/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/core/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/core/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <junit dir="deployers/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="archives.dir" value="${build.dir}/deployers"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/deployers/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/deployers/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <junit dir="embedded/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/embedded/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/embedded/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <junit dir="validator/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/validator/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/validator/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <junit dir="codegenerator/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/codegenerator/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/codegenerator/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <junit dir="adapters/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="archives.dir" value="${build.dir}/adapters"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/adapters/"/>
+ <pathelement location="${build.dir}/adapters/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/adapters/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <junit dir="rhq/src/test"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="yes"
+ timeout="${junit.timeout}">
+
+ <jvmarg line="${junit.jvm.options}"/>
+ <sysproperty key="test.dir" value="${test.dir}"/>
+ <sysproperty key="archives.dir" value="${build.dir}/rhq"/>
+ <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+ <sysproperty key="xb.builder.useUnorderedSequence" value="true"/>
+ <sysproperty key="javax.xml.stream.XMLInputFactory" value="com.sun.xml.internal.stream.XMLInputFactoryImpl"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
+ <sysproperty key="org.jboss.logging.Logger.pluginClass" value="org.jboss.logging.logmanager.LoggerPluginImpl"/>
+ <sysproperty key="log4j.defaultInitOverride" value="true"/>
+
+ <classpath>
+ <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+ <pathelement location="${build.dir}/rhq/"/>
+ <pathelement location="${build.dir}/rhq/test"/>
+ <fileset dir="${lib.dir}/common" includes="*.jar" />
+ <fileset dir="${lib.dir}/embedded" includes="*.jar" />
+ <fileset dir="${lib.dir}/arquillian" includes="*.jar" />
+ <fileset dir="${lib.dir}/jetty" includes="*.jar" />
+ <fileset dir="${lib.dir}/hornetq" includes="*.jar" />
+ <fileset dir="${lib.dir}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/mail" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" includes="*.jar" />
+ <fileset dir="${lib.dir}/rhq" includes="*.jar" />
+ </classpath>
+ <classpath refid="cobertura.lib.path.id" />
+
+ <formatter type="xml"/>
+
+ <batchtest todir="${reports.dir}/cobertura/tests">
+ <fileset dir="${build.dir}/rhq/test">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <cobertura-report format="html"
+ destdir="${reports.dir}/cobertura/html"
+ datafile="${reports.dir}/cobertura/cobertura.ser">
+ <fileset dir="api/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="adapters/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="codegenerator/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="common/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="core/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="deployers/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="embedded/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="sjc/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="validator/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="web/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="rhq/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ </cobertura-report>
+
+ <cobertura-report format="xml"
+ destdir="${reports.dir}/cobertura/xml"
+ datafile="${reports.dir}/cobertura/cobertura.ser">
+ <fileset dir="api/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="adapters/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="codegenerator/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="common/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="core/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="deployers/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="embedded/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="sjc/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="validator/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="web/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ <fileset dir="rhq/src/main/java">
+ <include name="**/*.java" />
+ </fileset>
+ </cobertura-report>
+ </target>
+
+ <!-- =================================
+ Target: tattletale
+ ================================= -->
+ <target name="tattletale" depends="sjc">
+ <taskdef name="report"
+ classname="org.jboss.tattletale.ant.ReportTask"
+ classpathref="tattletale.lib.path.id"/>
+
+ <mkdir dir="${reports.dir}/tattletale"/>
+
+ <report source="${target.dir}/sjc"
+ destination="${reports.dir}/tattletale"
+ configuration="${tools.dir}/tattletale/configuration.properties"
+ filter="${tools.dir}/tattletale/filter.properties"
+ profiles="java6"/>
+ </target>
+
+ <!-- =================================
+ Target: clean
+ ================================= -->
+ <target name="clean">
+ <delete>
+ <fileset dir="${basedir}" defaultexcludes="no">
+ <include name="**/*~"/>
+ <include name="**/*.bak"/>
+ </fileset>
+ </delete>
+ <delete>
+ <fileset dir="${lib.dir}" includes="**/*.jar"/>
+ </delete>
+ <delete dir="${build.dir}"/>
+ <delete dir="${target.dir}"/>
+ <delete dir="${reports.dir}"/>
+ <delete file="${name}-${major}.${minor}.${patch}.${type}.zip" />
+ <delete file="${name}-${major}.${minor}.${patch}.${type}.tar.gz" />
+
+ <ant antfile="tools/docant/build.xml" target="clean" inheritrefs="false" inheritAll="false"/>
+ <delete dir="${doc.dir}/target"/>
+ </target>
+
+ <!-- =================================
+ Target: clean-cache
+ ================================= -->
+ <target name="clean-cache">
+ <ivy:cleancache />
+ </target>
+
+ <!-- =================================
+ Target: nexus
+ ================================= -->
+ <macrodef name="deploy-file">
+ <attribute name="file"/>
+ <attribute name="artifact"/>
+ <attribute name="extension"/>
+ <sequential>
+ <concat destfile="${target.dir}/@{file}" append="true" force="true" eol="unix">
+mvn -s ${mavensettings} org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml -Dsources=$PWD/@{artifact}-sources.jar -Djavadoc=$PWD/@{artifact}-javadoc.jar $REPOSITORY
+</concat>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="install-file">
+ <attribute name="file"/>
+ <attribute name="artifact"/>
+ <attribute name="extension"/>
+ <sequential>
+ <concat destfile="${target.dir}/@{file}" append="true" force="true" eol="unix">
+mvn install:install-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml -Dsources=$PWD/@{artifact}-sources.jar -Djavadoc=$PWD/@{artifact}-javadoc.jar
+</concat>
+ </sequential>
+ </macrodef>
+
+ <target name="nexus-base">
+ <delete file="${target.dir}/deploy.sh"/>
+ <delete file="${target.dir}/install.sh"/>
+
+ <concat destfile="${target.dir}/deploy.sh" append="true" force="true" eol="unix">#!/bin/sh
+PWD=`pwd`
+VERSION=${version}
+REPOSITORY='-Durl=${repositoryurl} -DrepositoryId=${repositoryid}'
+</concat>
+
+ <concat destfile="${target.dir}/install.sh" append="true" force="true" eol="unix">#!/bin/sh
+PWD=`pwd`
+VERSION=${version}
+</concat>
+
+ <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
+ conf="${name}-common-api,${name}-common-impl,${name}-common-spi,${name}-core-api,${name}-core-impl,${name}-deployers-common,${name}-validator"
+ sync="true"/>
+
+ <!-- ironjacamar-spec-api -->
+ <delete file="${target.dir}/${name}-spec-api.xml"/>
+ <ivy:makepom artifactName="${name}-spec-api"
+ conf="${name}-spec-api"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-spec-api.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-spec-api" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-spec-api" extension="jar"/>
+
+ <!-- ironjacamar-common-api -->
+ <delete file="${target.dir}/${name}-common-api.xml"/>
+ <ivy:makepom artifactName="${name}-common-api"
+ conf="${name}-common-api"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-common-api.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-common-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-common-api" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-common-api" extension="jar"/>
+
+ <!-- ironjacamar-common-impl -->
+ <delete file="${target.dir}/${name}-common-impl.xml"/>
+ <ivy:makepom artifactName="${name}-common-impl"
+ conf="${name}-common-impl"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-common-impl.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-common-impl" scope="runtime"/>
+ <dependency artifact="${name}-common-api" scope="runtime"/>
+ <dependency artifact="${name}-common-spi" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-common-impl" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-common-impl" extension="jar"/>
+
+ <!-- ironjacamar-common-spi -->
+ <delete file="${target.dir}/${name}-common-spi.xml"/>
+ <ivy:makepom artifactName="${name}-common-spi"
+ conf="${name}-common-spi"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-common-spi.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-common-spi" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-common-spi" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-common-spi" extension="jar"/>
+
+ <!-- ironjacamar-core-api -->
+ <delete file="${target.dir}/${name}-core-api.xml"/>
+ <ivy:makepom artifactName="${name}-core-api"
+ conf="${name}-core-api"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-core-api.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-core-api" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-core-api" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-core-api" extension="jar"/>
+
+ <!-- ironjacamar-core-impl -->
+ <delete file="${target.dir}/${name}-core-impl.xml"/>
+ <ivy:makepom artifactName="${name}-core-impl"
+ conf="${name}-core-impl"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-core-impl.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-core-impl" scope="runtime"/>
+ <dependency artifact="${name}-common-impl" scope="runtime"/>
+ <dependency artifact="${name}-core-api" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-core-impl" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-core-impl" extension="jar"/>
+
+ <!-- ironjacamar-deployers-common -->
+ <delete file="${target.dir}/${name}-deployers-common.xml"/>
+ <ivy:makepom artifactName="${name}-deployers-common"
+ conf="${name}-deployers-common"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-deployers-common.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-deployers-common" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-deployers-common" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-deployers-common" extension="jar"/>
+
+ <!-- ironjacamar-validator -->
+ <delete file="${target.dir}/${name}-validator.xml"/>
+ <ivy:makepom artifactName="${name}-validator"
+ conf="${name}-validator"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-validator.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-validator" scope="runtime"/>
+ <dependency artifact="${name}-common-api" scope="runtime"/>
+ <dependency artifact="${name}-common-impl" scope="runtime"/>
+ <dependency artifact="${name}-common-spi" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-validator" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-validator" extension="jar"/>
+
+ <!-- ironjacamar-jdbc -->
+ <delete file="${target.dir}/${name}-jdbc.xml"/>
+ <ivy:makepom artifactName="${name}-jdbc"
+ conf="${name}-jdbc"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-jdbc.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-jdbc" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-jdbc" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-jdbc" extension="jar"/>
+
+ </target>
+
+ <target name="nexus" depends="clean,artifacts,nexus-base" unless="brew">
+ <fail message="IronJacamar doesn't support JDK 7+ artifacts" if="HAVE_JDK_1.7"/>
+
+ <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
+ conf="${name}-as,${name}-codegenerator,${name}-common-impl-papaki,${name}-deployers-fungal,${name}-embedded,${name}-embedded-arquillian,${name}-spec-api,${name}-validator-ant,${name}-validator-cli,jdbc-local,jdbc-xa,mail"
+ sync="true"/>
+
+ <!-- ironjacamar-as -->
+ <delete file="${target.dir}/${name}-as.xml"/>
+ <ivy:makepom artifactName="${name}-as"
+ conf="${name}-as"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-as.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-as" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-as" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-as" extension="jar"/>
+
+ <!-- ironjacamar-codegenerator -->
+ <delete file="${target.dir}/${name}-codegenerator.xml"/>
+ <ivy:makepom artifactName="${name}-codegenerator"
+ conf="${name}-codegenerator"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-codegenerator.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-codegenerator" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-codegenerator" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-codegenerator" extension="jar"/>
+
+ <!-- ironjacamar-common-impl-papaki -->
+ <delete file="${target.dir}/${name}-common-impl-papaki.xml"/>
+ <ivy:makepom artifactName="${name}-common-impl-papaki"
+ conf="${name}-common-impl-papaki"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-common-impl-papaki.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-common-impl-papaki" scope="runtime"/>
+ <dependency artifact="${name}-common-spi" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-common-impl-papaki" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-common-impl-papaki" extension="jar"/>
+
+ <!-- ironjacamar-depchain -->
+ <delete file="${target.dir}/${name}-depchain.xml"/>
+ <ivy:makepom artifactName="${name}-depchain"
+ conf="${name}-depchain"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-depchain.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-depchain" scope="runtime"/>
+ </ivy:makepom>
+
+ <concat destfile="${target.dir}/deploy.sh" append="true" force="true" eol="unix">
+mvn -s ${mavensettings} org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file -Dfile=$PWD/${name}-depchain.xml -DpomFile=${name}-depchain.xml $REPOSITORY
+</concat>
+<concat destfile="${target.dir}/install.sh" append="true" force="true" eol="unix">
+mvn install:install-file -Dfile=$PWD/${name}-depchain.xml -DpomFile=${name}-depchain.xml -DuniqueVersion=false $REPOSITORY
+</concat>
+
+ <!-- ironjacamar-deployers-fungal -->
+ <delete file="${target.dir}/${name}-deployers-fungal.xml"/>
+ <ivy:makepom artifactName="${name}-deployers-fungal"
+ conf="${name}-deployers-fungal"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-deployers-fungal.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-deployers-fungal" scope="runtime"/>
+ <dependency artifact="${name}-common-impl" scope="runtime"/>
+ <dependency artifact="${name}-core-api" scope="runtime"/>
+ <dependency artifact="${name}-core-impl" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ <dependency artifact="${name}-validator" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-deployers-fungal" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-deployers-fungal" extension="jar"/>
+
+ <!-- ironjacamar-embedded -->
+ <delete file="${target.dir}/${name}-embedded.xml"/>
+ <ivy:makepom artifactName="${name}-embedded"
+ conf="${name}-embedded"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-embedded.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-embedded" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-embedded" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-embedded" extension="jar"/>
+
+ <!-- ironjacamar-embedded-arquillian -->
+ <delete file="${target.dir}/${name}-embedded-arquillian.xml"/>
+ <ivy:makepom artifactName="${name}-embedded-arquillian"
+ conf="${name}-embedded-arquillian"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-embedded-arquillian.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-embedded-arquillian" scope="runtime"/>
+ <dependency artifact="${name}-embedded" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
+
+ <!-- ironjacamar-validator-ant -->
+ <delete file="${target.dir}/${name}-validator-ant.xml"/>
+ <ivy:makepom artifactName="${name}-validator-ant"
+ conf="${name}-validator-ant"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-validator-ant.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-validator-ant" scope="runtime"/>
+ <dependency artifact="${name}-validator" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-validator-ant" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-validator" extension="jar"/>
+
+ <!-- ironjacamar-validator-cli -->
+ <delete file="${target.dir}/${name}-validator-cli.xml"/>
+ <ivy:makepom artifactName="${name}-validator-cli"
+ conf="${name}-validator-cli"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-validator-cli.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-validator-cli" scope="runtime"/>
+ <dependency artifact="${name}-validator" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-validator-cli" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-validator-cli" extension="jar"/>
+
+ <!-- ironjacamar-validator-maven -->
+ <delete file="${target.dir}/${name}-validator-maven.xml"/>
+ <ivy:makepom artifactName="${name}-validator-maven"
+ conf="${name}-validator-maven"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-validator-maven.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-validator-maven" scope="runtime"/>
+ <dependency artifact="${name}-validator" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="${name}-validator-maven" extension="jar"/>
+ <install-file file="install.sh" artifact="${name}-validator-maven" extension="jar"/>
+
+ <!-- jdbc-local -->
+ <delete file="${target.dir}/jdbc-local.xml"/>
+ <ivy:makepom artifactName="jdbc-local"
+ conf="jdbc-local"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/jdbc-local.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="jdbc-local" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="jdbc-local" extension="rar"/>
+ <install-file file="install.sh" artifact="jdbc-local" extension="rar"/>
+
+ <!-- jdbc-xa -->
+ <delete file="${target.dir}/jdbc-xa.xml"/>
+ <ivy:makepom artifactName="jdbc-xa"
+ conf="jdbc-xa"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/jdbc-xa.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="jdbc-xa" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="jdbc-xa" extension="rar"/>
+ <install-file file="install.sh" artifact="jdbc-xa" extension="rar"/>
+
+ <!-- mail -->
+ <delete file="${target.dir}/mail.xml"/>
+ <ivy:makepom artifactName="mail"
+ conf="mail"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/mail.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="mail" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="deploy.sh" artifact="mail" extension="rar"/>
+ <install-file file="install.sh" artifact="mail" extension="rar"/>
+
+ <chmod file="${target.dir}/deploy.sh" perm="755"/>
+ <chmod file="${target.dir}/install.sh" perm="755"/>
+
+ </target>
+
+ <target name="init-brew-path" if="brew">
+ <path id="main.lib.path.id">
+ <path refid="brew.lib.path.id"/>
+ </path>
+ </target>
+
+</project>
More information about the jboss-cvs-commits
mailing list