[jboss-cvs] JBossAS SVN: r108240 - in projects/jboss-jca/tags: IRONJACAMAR_1_0_0_BETA2 and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 21 09:02:03 EDT 2010
Author: jesper.pedersen
Date: 2010-09-21 09:02:00 -0400 (Tue, 21 Sep 2010)
New Revision: 108240
Added:
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/build.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/developerguide/en/modules/deployers.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/codegenerator.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/configuration.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/deployment.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/validator.xml
Removed:
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/build.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/developerguide/en/modules/deployers.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/codegenerator.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/configuration.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/deployment.xml
projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/validator.xml
Log:
IronJacamar 1.0.0.Beta2
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2 (from rev 108232, projects/jboss-jca/trunk)
Deleted: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/build.xml
===================================================================
--- projects/jboss-jca/trunk/build.xml 2010-09-20 18:23:34 UTC (rev 108232)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/build.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -1,1258 +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"/>
-
- <!-- =================================
- Project
- ================================= -->
- <property name="name" value="ironjacamar"/>
- <property name="major" value="1"/>
- <property name="minor" value="0"/>
- <property name="patch" value="0"/>
- <property name="type" value="Beta2"/>
-
- <condition property="version" value="${major}.${minor}.${patch}-SNAPSHOT">
- <isset property="snapshot"/>
- </condition>
- <property name="version" value="${major}.${minor}.${patch}.${type}"/>
-
- <!-- =================================
- Ivy
- ================================= -->
- <property name="ivy.version" value="2.2.0-rc1"/>
- <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.activation" value="1.1.1"/>
- <property name="version.ant" value="1.8.1"/>
- <property name="version.apache-log4j" value="1.2.16"/>
- <property name="version.apache-logging" value="1.1.0.jboss"/>
- <property name="version.apache-xerces" value="2.9.1"/>
- <property name="version.apiviz" value="1.3.1.GA"/>
- <property name="version.arquillian" value="1.0.0.Alpha4"/>
- <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.8.0"/>
- <property name="version.h2" value="1.2.142"/>
- <property name="version.hibernate-validator" value="4.1.0.Final"/>
- <property name="version.javassist" value="3.12.0.GA"/>
- <property name="version.jaxb.api" value="2.1"/>
- <property name="version.jaxb.impl" value="2.1.9"/>
- <property name="version.jboss.common" value="2.2.17.GA"/>
- <property name="version.jboss.integration" value="5.1.0.CR1"/>
- <property name="version.jboss.jaspi.api" value="1.0.0.GA"/>
- <property name="version.jboss.logging" value="3.0.0.Beta3"/>
- <property name="version.jboss.logmanager" value="1.2.0.CR7"/>
- <property name="version.jboss.naming" value="5.0.3.GA"/>
- <property name="version.jboss.papaki" value="1.0.0.Beta3"/>
- <property name="version.jboss.picketbox" value="3.0.0.CR1"/>
- <property name="version.jboss.reflect" value="2.0.2.GA"/>
- <property name="version.jboss.security" value="2.1.0.20090318"/>
- <property name="version.jboss.shrinkwrap" value="1.0.0-alpha-11"/>
- <property name="version.jboss.slf4j" value="1.0.2.GA"/>
- <property name="version.jboss.slf4j.logmanager" value="1.0.0.CR3"/>
- <property name="version.jboss.stdio" value="1.0.0.CR3"/>
- <property name="version.jboss.threads" value="2.0.0.CR5"/>
- <property name="version.jboss.ts" value="4.11.0.Final"/>
- <property name="version.jboss.xb" value="2.0.2.Beta8"/>
- <property name="version.jdepend" value="2.9.1"/>
- <property name="version.jetty" value="7.1.5.v20100705"/>
- <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.junit" value="4.8.1"/>
- <property name="version.maven" value="2.2.1"/>
- <property name="version.slf4j" value="1.5.8"/>
- <property name="version.stax" value="1.0.1"/>
- <property name="version.transaction.api" value="1.0.1.GA"/>
- <property name="version.validation-api" value="1.0.0.GA"/>
-
- <!-- =================================
- Paths
- ================================= -->
- <path id="sjc.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}/sjc">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <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}/test">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <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}/sjc">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/test">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${lib.dir}/tools">
- <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">
- <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" depends="init">
- <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
- conf="common,sjc,embedded,arquillian,jetty,test,tools"
- sync="true"/>
- </target>
-
- <!-- =================================
- Target: report
- ================================= -->
- <target name="report" depends="resolve">
- <ivy:report todir="${target.dir}"/>
- </target>
-
- <!-- =================================
- Target: jars
- ================================= -->
- <target name="jars" depends="resolve">
- <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="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="adapters" inheritRefs="true" target="jars"/>
- </target>
-
- <!-- =================================
- Target: docs
- ================================= -->
- <target name="docs" depends="jars">
- <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="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="adapters" inheritRefs="true" target="docs"/>
- </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"/>
- </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"/>
- </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" depends="resolve">
- <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="embedded" inheritRefs="true" target="artifacts"/>
- <ant dir="codegenerator" inheritRefs="true" target="artifacts"/>
- <ant dir="adapters" 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="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="sjc" inheritRefs="true" target="war"/>
- <delete dir="${build.dir}/sjc"/>
-
- <ant dir="doc/userguide" target="pdf"/>
- <ant dir="doc/developerguide" target="pdf"/>
-
- <move flatten="true" todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc">
- <fileset dir="${build.dir}">
- <include name="**/*.pdf"/>
- </fileset>
- </move>
-
- <delete dir="${build.dir}/en"/>
-
- <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>
-
- <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}"
- includes="**/*.java"
- excludes="target/**/*.java"/>
- <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}/sjc">
- <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}-codegenerator.jar" />
- <class location="${target.dir}/${name}-common-api.jar" />
- <class location="${target.dir}/${name}-common-impl.jar" />
- <class location="${target.dir}/${name}-core-api.jar" />
- <class location="${target.dir}/${name}-core-impl.jar" />
- <class location="${target.dir}/${name}-core-spi.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}-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}/sjc">
- <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}-codegenerator.jar" />
- <class location="${target.dir}/${name}-common-api.jar" />
- <class location="${target.dir}/${name}-common-impl.jar" />
- <class location="${target.dir}/${name}-core-api.jar" />
- <class location="${target.dir}/${name}-core-impl.jar" />
- <class location="${target.dir}/${name}-core-spi.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}-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>
-
- <cobertura-instrument todir="${build.dir}/instrumented"
- datafile="${reports.dir}/cobertura/cobertura.ser">
- <fileset dir="${target.dir}">
- <include name="*.jar" />
- </fileset>
- </cobertura-instrument>
-
- <copy todir="${build.dir}/instrumented">
- <fileset dir="${target.dir}">
- <include name="${name}-core-api.jar"/>
- <include name="${name}-core-spi.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}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- <fileset dir="${lib.dir}/tools" 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>
-
- <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="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>
- </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="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>
- </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" />
- </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 deploy:deploy-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml $REPOSITORY
-mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-sources.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=sources -Dpackaging=jar $REPOSITORY
-mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-javadoc.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=javadoc -Dpackaging=jar $REPOSITORY
-</concat>
- </sequential>
- </macrodef>
-
- <macrodef name="snapshot-deploy-file">
- <attribute name="file"/>
- <attribute name="artifact"/>
- <attribute name="extension"/>
- <sequential>
- <concat destfile="${target.dir}/@{file}" append="true" force="true" eol="unix">
-mvn deploy:deploy-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml -DuniqueVersion=false $REPOSITORY
-mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-sources.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=sources -Dpackaging=jar -DuniqueVersion=false $REPOSITORY
-mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-javadoc.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=javadoc -Dpackaging=jar -DuniqueVersion=false $REPOSITORY
-</concat>
- </sequential>
- </macrodef>
-
- <target name="nexus" depends="clean,artifacts">
- <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
- conf="${name}-codegenerator,${name}-common-api,${name}-common-impl,${name}-common-spi,${name}-core-api,${name}-core-impl,${name}-core-spi,${name}-deployers-fungal,${name}-embedded,${name}-embedded-arquillian,${name}-spec-api,${name}-validator,${name}-validator-ant,${name}-validator-cli,jdbc-local,jdbc-xa"
- sync="true"/>
-
- <fail message="Required Apache Ivy update missing"/>
-
- <delete file="${target.dir}/release.sh"/>
- <delete file="${target.dir}/snapshot.sh"/>
-
- <concat destfile="${target.dir}/release.sh" append="true" force="true" eol="unix">#!/bin/sh
-PWD=`pwd`
-VERSION=${major}.${minor}.${patch}.${type}
-REPOSITORY='-Durl=https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/ -DrepositoryId=jboss-releases'
-</concat>
-
- <concat destfile="${target.dir}/snapshot.sh" append="true" force="true" eol="unix">#!/bin/sh
-PWD=`pwd`
-VERSION=${major}.${minor}.${patch}-SNAPSHOT
-REPOSITORY='-Durl=https://repository.jboss.org/nexus/content/repositories/snapshots/ -DrepositoryId=jboss-snapshots'
-</concat>
-
- <!-- 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="release.sh" artifact="${name}-codegenerator" extension="jar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="${name}-codegenerator" 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="release.sh" artifact="${name}-common-api" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="release.sh" artifact="${name}-common-impl" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-common-spi" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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}-core-spi" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="release.sh" artifact="${name}-core-api" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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}-core-spi" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="release.sh" artifact="${name}-core-impl" extension="jar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="${name}-core-impl" extension="jar"/>
-
- <!-- ironjacamar-core-spi -->
- <delete file="${target.dir}/${name}-core-spi.xml"/>
- <ivy:makepom artifactName="${name}-core-spi"
- conf="${name}-core-spi"
- ivyfile="${basedir}/ivy.xml"
- pomfile="${target.dir}/${name}-core-spi.xml"
- headerFile="${tools.dir}/mvn/HEADER"
- templatefile="${tools.dir}/mvn/pom.template"
- printIvyInfo="false">
- <mapping conf="${name}-core-spi" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="release.sh" artifact="${name}-core-spi" extension="jar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="${name}-core-spi" 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}/release.sh" append="true" force="true" eol="unix">
-mvn deploy:deploy-file -Dfile=$PWD/${name}-depchain.xml -DpomFile=${name}-depchain.xml $REPOSITORY
-</concat>
- <concat destfile="${target.dir}/snapshot.sh" append="true" force="true" eol="unix">
-mvn deploy:deploy-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}-core-spi" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- <dependency artifact="${name}-validator" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="release.sh" artifact="${name}-deployers-fungal" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-embedded" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
-
- <!-- 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="release.sh" artifact="${name}-spec-api" extension="jar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="${name}-spec-api" 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-impl" scope="runtime"/>
- <dependency artifact="${name}-spec-api" scope="runtime"/>
- </ivy:makepom>
-
- <deploy-file file="release.sh" artifact="${name}-validator" extension="jar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="${name}-validator" 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="release.sh" artifact="${name}-validator-ant" extension="jar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="${name}-validator-ant" 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="release.sh" artifact="${name}-validator-cli" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-validator-maven" extension="jar"/>
- <snapshot-deploy-file file="snapshot.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="release.sh" artifact="jdbc-local" extension="rar"/>
- <snapshot-deploy-file file="snapshot.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="release.sh" artifact="jdbc-xa" extension="rar"/>
- <snapshot-deploy-file file="snapshot.sh" artifact="jdbc-xa" extension="rar"/>
-
- <chmod file="${target.dir}/release.sh" perm="755"/>
- <chmod file="${target.dir}/snapshot.sh" perm="755"/>
-
- </target>
-
-</project>
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/build.xml (from rev 108233, projects/jboss-jca/trunk/build.xml)
===================================================================
--- projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/build.xml (rev 0)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/build.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -0,0 +1,1258 @@
+<!--
+ * 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"/>
+
+ <!-- =================================
+ Project
+ ================================= -->
+ <property name="name" value="ironjacamar"/>
+ <property name="major" value="1"/>
+ <property name="minor" value="0"/>
+ <property name="patch" value="0"/>
+ <property name="type" value="Beta2"/>
+
+ <condition property="version" value="${major}.${minor}.${patch}-SNAPSHOT">
+ <isset property="snapshot"/>
+ </condition>
+ <property name="version" value="${major}.${minor}.${patch}.${type}"/>
+
+ <!-- =================================
+ Ivy
+ ================================= -->
+ <property name="ivy.version" value="2.2.0-rc1"/>
+ <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.activation" value="1.1.1"/>
+ <property name="version.ant" value="1.8.1"/>
+ <property name="version.apache-log4j" value="1.2.16"/>
+ <property name="version.apache-logging" value="1.1.0.jboss"/>
+ <property name="version.apache-xerces" value="2.9.1"/>
+ <property name="version.apiviz" value="1.3.1.GA"/>
+ <property name="version.arquillian" value="1.0.0.Alpha4"/>
+ <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.8.0"/>
+ <property name="version.h2" value="1.2.143"/>
+ <property name="version.hibernate-validator" value="4.1.0.Final"/>
+ <property name="version.javassist" value="3.12.0.GA"/>
+ <property name="version.jaxb.api" value="2.1"/>
+ <property name="version.jaxb.impl" value="2.1.9"/>
+ <property name="version.jboss.common" value="2.2.17.GA"/>
+ <property name="version.jboss.integration" value="5.1.0.CR1"/>
+ <property name="version.jboss.jaspi.api" value="1.0.0.GA"/>
+ <property name="version.jboss.logging" value="3.0.0.Beta3"/>
+ <property name="version.jboss.logmanager" value="1.2.0.CR7"/>
+ <property name="version.jboss.naming" value="5.0.3.GA"/>
+ <property name="version.jboss.papaki" value="1.0.0.Beta3"/>
+ <property name="version.jboss.picketbox" value="3.0.0.CR1"/>
+ <property name="version.jboss.reflect" value="2.0.2.GA"/>
+ <property name="version.jboss.security" value="2.1.0.20090318"/>
+ <property name="version.jboss.shrinkwrap" value="1.0.0-alpha-11"/>
+ <property name="version.jboss.slf4j" value="1.0.2.GA"/>
+ <property name="version.jboss.slf4j.logmanager" value="1.0.0.CR3"/>
+ <property name="version.jboss.stdio" value="1.0.0.CR3"/>
+ <property name="version.jboss.threads" value="2.0.0.CR5"/>
+ <property name="version.jboss.ts" value="4.11.0.Final"/>
+ <property name="version.jboss.xb" value="2.0.2.Beta8"/>
+ <property name="version.jdepend" value="2.9.1"/>
+ <property name="version.jetty" value="7.1.5.v20100705"/>
+ <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.junit" value="4.8.1"/>
+ <property name="version.maven" value="2.2.1"/>
+ <property name="version.slf4j" value="1.5.8"/>
+ <property name="version.stax" value="1.0.1"/>
+ <property name="version.transaction.api" value="1.0.1.GA"/>
+ <property name="version.validation-api" value="1.0.0.GA"/>
+
+ <!-- =================================
+ Paths
+ ================================= -->
+ <path id="sjc.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}/sjc">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <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}/test">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <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}/sjc">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/test">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}/tools">
+ <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">
+ <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" depends="init">
+ <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
+ conf="common,sjc,embedded,arquillian,jetty,test,tools"
+ sync="true"/>
+ </target>
+
+ <!-- =================================
+ Target: report
+ ================================= -->
+ <target name="report" depends="resolve">
+ <ivy:report todir="${target.dir}"/>
+ </target>
+
+ <!-- =================================
+ Target: jars
+ ================================= -->
+ <target name="jars" depends="resolve">
+ <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="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="adapters" inheritRefs="true" target="jars"/>
+ </target>
+
+ <!-- =================================
+ Target: docs
+ ================================= -->
+ <target name="docs" depends="jars">
+ <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="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="adapters" inheritRefs="true" target="docs"/>
+ </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"/>
+ </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"/>
+ </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" depends="resolve">
+ <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="embedded" inheritRefs="true" target="artifacts"/>
+ <ant dir="codegenerator" inheritRefs="true" target="artifacts"/>
+ <ant dir="adapters" 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="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="sjc" inheritRefs="true" target="war"/>
+ <delete dir="${build.dir}/sjc"/>
+
+ <ant dir="doc/userguide" target="pdf"/>
+ <ant dir="doc/developerguide" target="pdf"/>
+
+ <move flatten="true" todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc">
+ <fileset dir="${build.dir}">
+ <include name="**/*.pdf"/>
+ </fileset>
+ </move>
+
+ <delete dir="${build.dir}/en"/>
+
+ <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>
+
+ <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}"
+ includes="**/*.java"
+ excludes="target/**/*.java"/>
+ <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}/sjc">
+ <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}-codegenerator.jar" />
+ <class location="${target.dir}/${name}-common-api.jar" />
+ <class location="${target.dir}/${name}-common-impl.jar" />
+ <class location="${target.dir}/${name}-core-api.jar" />
+ <class location="${target.dir}/${name}-core-impl.jar" />
+ <class location="${target.dir}/${name}-core-spi.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}-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}/sjc">
+ <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}-codegenerator.jar" />
+ <class location="${target.dir}/${name}-common-api.jar" />
+ <class location="${target.dir}/${name}-common-impl.jar" />
+ <class location="${target.dir}/${name}-core-api.jar" />
+ <class location="${target.dir}/${name}-core-impl.jar" />
+ <class location="${target.dir}/${name}-core-spi.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}-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>
+
+ <cobertura-instrument todir="${build.dir}/instrumented"
+ datafile="${reports.dir}/cobertura/cobertura.ser">
+ <fileset dir="${target.dir}">
+ <include name="*.jar" />
+ </fileset>
+ </cobertura-instrument>
+
+ <copy todir="${build.dir}/instrumented">
+ <fileset dir="${target.dir}">
+ <include name="${name}-core-api.jar"/>
+ <include name="${name}-core-spi.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}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" 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}/sjc" includes="*.jar" />
+ <fileset dir="${lib.dir}/test" includes="*.jar" />
+ <fileset dir="${lib.dir}/tools" 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>
+
+ <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="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>
+ </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="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>
+ </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" />
+ </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 deploy:deploy-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml $REPOSITORY
+mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-sources.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=sources -Dpackaging=jar $REPOSITORY
+mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-javadoc.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=javadoc -Dpackaging=jar $REPOSITORY
+</concat>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="snapshot-deploy-file">
+ <attribute name="file"/>
+ <attribute name="artifact"/>
+ <attribute name="extension"/>
+ <sequential>
+ <concat destfile="${target.dir}/@{file}" append="true" force="true" eol="unix">
+mvn deploy:deploy-file -Dfile=$PWD/@{artifact}.@{extension} -DpomFile=@{artifact}.xml -DuniqueVersion=false $REPOSITORY
+mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-sources.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=sources -Dpackaging=jar -DuniqueVersion=false $REPOSITORY
+mvn deploy:deploy-file -Dfile=$PWD/@{artifact}-javadoc.jar -DgeneratePom=false -DgroupId=org.jboss.${name} -DartifactId=@{artifact} -Dversion=$VERSION -Dclassifier=javadoc -Dpackaging=jar -DuniqueVersion=false $REPOSITORY
+</concat>
+ </sequential>
+ </macrodef>
+
+ <target name="nexus" depends="clean,artifacts">
+ <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"
+ conf="${name}-codegenerator,${name}-common-api,${name}-common-impl,${name}-common-spi,${name}-core-api,${name}-core-impl,${name}-core-spi,${name}-deployers-fungal,${name}-embedded,${name}-embedded-arquillian,${name}-spec-api,${name}-validator,${name}-validator-ant,${name}-validator-cli,jdbc-local,jdbc-xa"
+ sync="true"/>
+
+ <fail message="Required Apache Ivy update missing"/>
+
+ <delete file="${target.dir}/release.sh"/>
+ <delete file="${target.dir}/snapshot.sh"/>
+
+ <concat destfile="${target.dir}/release.sh" append="true" force="true" eol="unix">#!/bin/sh
+PWD=`pwd`
+VERSION=${major}.${minor}.${patch}.${type}
+REPOSITORY='-Durl=https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/ -DrepositoryId=jboss-releases'
+</concat>
+
+ <concat destfile="${target.dir}/snapshot.sh" append="true" force="true" eol="unix">#!/bin/sh
+PWD=`pwd`
+VERSION=${major}.${minor}.${patch}-SNAPSHOT
+REPOSITORY='-Durl=https://repository.jboss.org/nexus/content/repositories/snapshots/ -DrepositoryId=jboss-snapshots'
+</concat>
+
+ <!-- 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="release.sh" artifact="${name}-codegenerator" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="${name}-codegenerator" 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="release.sh" artifact="${name}-common-api" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="release.sh" artifact="${name}-common-impl" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-common-spi" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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}-core-spi" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="release.sh" artifact="${name}-core-api" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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}-core-spi" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="release.sh" artifact="${name}-core-impl" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="${name}-core-impl" extension="jar"/>
+
+ <!-- ironjacamar-core-spi -->
+ <delete file="${target.dir}/${name}-core-spi.xml"/>
+ <ivy:makepom artifactName="${name}-core-spi"
+ conf="${name}-core-spi"
+ ivyfile="${basedir}/ivy.xml"
+ pomfile="${target.dir}/${name}-core-spi.xml"
+ headerFile="${tools.dir}/mvn/HEADER"
+ templatefile="${tools.dir}/mvn/pom.template"
+ printIvyInfo="false">
+ <mapping conf="${name}-core-spi" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="release.sh" artifact="${name}-core-spi" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="${name}-core-spi" 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}/release.sh" append="true" force="true" eol="unix">
+mvn deploy:deploy-file -Dfile=$PWD/${name}-depchain.xml -DpomFile=${name}-depchain.xml $REPOSITORY
+</concat>
+ <concat destfile="${target.dir}/snapshot.sh" append="true" force="true" eol="unix">
+mvn deploy:deploy-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}-core-spi" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ <dependency artifact="${name}-validator" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="release.sh" artifact="${name}-deployers-fungal" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-embedded" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="${name}-embedded-arquillian" extension="jar"/>
+
+ <!-- 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="release.sh" artifact="${name}-spec-api" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="${name}-spec-api" 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-impl" scope="runtime"/>
+ <dependency artifact="${name}-spec-api" scope="runtime"/>
+ </ivy:makepom>
+
+ <deploy-file file="release.sh" artifact="${name}-validator" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="${name}-validator" 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="release.sh" artifact="${name}-validator-ant" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="${name}-validator-ant" 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="release.sh" artifact="${name}-validator-cli" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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="release.sh" artifact="${name}-validator-maven" extension="jar"/>
+ <snapshot-deploy-file file="snapshot.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="release.sh" artifact="jdbc-local" extension="rar"/>
+ <snapshot-deploy-file file="snapshot.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="release.sh" artifact="jdbc-xa" extension="rar"/>
+ <snapshot-deploy-file file="snapshot.sh" artifact="jdbc-xa" extension="rar"/>
+
+ <chmod file="${target.dir}/release.sh" perm="755"/>
+ <chmod file="${target.dir}/snapshot.sh" perm="755"/>
+
+ </target>
+
+</project>
Deleted: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/developerguide/en/modules/deployers.xml
===================================================================
--- projects/jboss-jca/trunk/doc/developerguide/en/modules/deployers.xml 2010-09-20 18:23:34 UTC (rev 108232)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/developerguide/en/modules/deployers.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -1,199 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="deployers">
- <title>Deployers</title>
-
- <para>The deployer chains for the project is located in the <code>deployers</code> module.</para>
-
- <section id="rardeployer">
- <title>RAR Deployer</title>
-
- <para>The responsibility of the RAR deployer is to deploy a resource adapter archive (.RAR) file.</para>
-
- <section id="rardeployer_fungal">
- <title>Fungal</title>
-
- <para>The Fungal kernel features a simple deployment framework, so only three classes are needed for the
- deployer chain.</para>
-
- <para>The classes are located in the</para>
-
- <programlisting>
-deployers/src/main/java/org/jboss/jca/deployers/fungal
- </programlisting>
-
- <para>directory.</para>
-
- <section id="rardeployer_fungal_radeployer">
- <title>RADeployer</title>
-
- <para>This class represent a resource adapter deployer and implements the</para>
-
- <programlisting>
-com.github.fungal.spi.deployers.Deployer
- </programlisting>
-
- <para>interface.</para>
-
- <para>The responsible of the class is to</para>
-
- <itemizedlist>
- <listitem>
- Create a classloader for the deployment
- </listitem>
- <listitem>
- Retrieve metadata and annotations such that they can be merged
- </listitem>
- <listitem>
- Perform archive validation using the JCA validator
- </listitem>
- <listitem>
- Perform bean validation
- </listitem>
- <listitem>
- Register the metadata in the metadata repository
- </listitem>
- <listitem>
- Identify and activate the resource adapter objects - if JNDI information is available
- </listitem>
- <listitem>
- Bind connection factories and admin objects into JNDI - if JNDI information is available
- </listitem>
- </itemizedlist>
-
-
- </section>
-
- <section id="rardeployer_fungal_radeployment">
- <title>RADeployment</title>
-
- <para>This class represent a resource adapter deployment and implements the</para>
-
- <programlisting>
-com.github.fungal.spi.deployers.Deployment
- </programlisting>
-
- <para>interface.</para>
-
- <para>The responsible of the class is to</para>
-
- <itemizedlist>
- <listitem>
- Unbind connection factories and admin objects in JNDI - if the deployment was activated
- </listitem>
- <listitem>
- Close the classloader
- </listitem>
- <listitem>
- Clean up any temporary files
- </listitem>
- </itemizedlist>
-
- </section>
-
- <section id="rardeployer_fungal_raactivator">
- <title>RAActivator</title>
-
- <para>This class will activate all resource adapters which hasn't been deployed by a previous step.
- The class implements the </para>
-
- <programlisting>
-com.github.fungal.spi.deployers.DeployerPhases
- </programlisting>
-
- <para>interface. This interface allows the class to hook into the deployer lifecycle of the kernel
- and receive callback notifications.</para>
-
- <para>The responsible of the class is to</para>
-
- <itemizedlist>
- <listitem>
- Find any resource adapters which hasn't been deployed through the metadata repository
- </listitem>
- <listitem>
- Perform a deployment like <code>RADeployer</code>
- </listitem>
- <listitem>
- Register each deployment with the kernel through the main deployer
- </listitem>
- </itemizedlist>
-
- </section>
-
- </section>
-
- </section>
-
- <section id="dsdeployer">
- <title>DataSource Deployer</title>
-
- <para>The responsibility of the datasource deployer is to deploy a datasource deployment (-ds.xml) file.</para>
-
- <section id="dsdeployer_fungal">
- <title>Fungal</title>
-
- <para>The Fungal datasource deployer chain consists of two classes.</para>
-
- <para>The classes are located in the</para>
-
- <programlisting>
-deployers/src/main/java/org/jboss/jca/deployers/fungal
- </programlisting>
-
- <para>directory.</para>
-
- <section id="dsdeployer_fungal_dsxmldeployer">
- <title>DsXmlDeployer</title>
-
- <para>This class represent a datasource deployer and implements the</para>
-
- <programlisting>
-com.github.fungal.spi.deployers.Deployer
- </programlisting>
-
- <para>interface.</para>
-
- <para>The responsible of the class is to</para>
-
- <itemizedlist>
- <listitem>
- Locate metadata about JDBC in the metadata repository
- </listitem>
- <listitem>
- Activate each <code>DataSource</code> using <code>jdbc-local.rar</code> as a template
- </listitem>
- <listitem>
- Activate each <code>XaDataSource</code> using <code>jdbc-xa.rar</code> as a template
- </listitem>
- </itemizedlist>
-
- </section>
-
- <section id="dsdeployer_fungal_dsxmldeployment">
- <title>DsXmlDeployment</title>
-
- <para>This class represent a datasource deployment and implements the</para>
-
- <programlisting>
-com.github.fungal.spi.deployers.Deployment
- </programlisting>
-
- <para>interface.</para>
-
- <para>The responsible of the class is to</para>
-
- <itemizedlist>
- <listitem>
- Unbind the datasource in JNDI
- </listitem>
- <listitem>
- Close the classloader
- </listitem>
- </itemizedlist>
-
- </section>
-
- </section>
-
-
- </section>
-</chapter>
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/developerguide/en/modules/deployers.xml (from rev 108239, projects/jboss-jca/trunk/doc/developerguide/en/modules/deployers.xml)
===================================================================
--- projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/developerguide/en/modules/deployers.xml (rev 0)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/developerguide/en/modules/deployers.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -0,0 +1,323 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="deployers">
+ <title>Deployers</title>
+
+ <para>The deployer chains for the project is located in the <code>deployers</code> module.</para>
+
+ <section id="rardeployer">
+ <title>RAR Deployer</title>
+
+ <para>The responsibility of the RAR deployer is to deploy a resource adapter archive (.RAR) file.</para>
+
+ <section id="rardeployer_fungal">
+ <title>Fungal</title>
+
+ <para>The Fungal kernel features a simple deployment framework, so only three classes are needed for the
+ deployer chain.</para>
+
+ <para>The classes are located in the</para>
+
+ <programlisting>
+deployers/src/main/java/org/jboss/jca/deployers/fungal
+ </programlisting>
+
+ <para>directory.</para>
+
+ <!-- TODO: a picture showing the deployer chain classes -->
+
+ <section id="rardeployer_fungal_radeployer">
+ <title>RADeployer</title>
+
+ <para>This class represent a resource adapter deployer and implements the</para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.Deployer
+com.github.fungal.spi.deployers.MultiStageDeployer
+com.github.fungal.spi.deployers.DeployerOrder
+ </programlisting>
+
+ <para>interfaces.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Create a classloader for the deployment
+ </listitem>
+ <listitem>
+ Retrieve metadata and annotations such that they can be merged
+ </listitem>
+ <listitem>
+ Perform archive validation using the JCA validator
+ </listitem>
+ <listitem>
+ Perform bean validation
+ </listitem>
+ <listitem>
+ Register the metadata in the metadata repository
+ </listitem>
+ <listitem>
+ Register the resource adapter in the metadata repository
+ </listitem>
+ <listitem>
+ Identify and activate the resource adapter objects - if JNDI information is available
+ </listitem>
+ <listitem>
+ Bind connection factories and admin objects into JNDI - if JNDI information is available
+ </listitem>
+ </itemizedlist>
+
+ <para>If the resource adapter isn't activated in this step based on an <code>ironjacamar.xml</code>
+ file, the deployment will advance to the next step in the deployer chain.</para>
+
+ </section>
+
+ <section id="rardeployer_fungal_radeployment">
+ <title>RADeployment</title>
+
+ <para>This class represent a resource adapter deployment and implements the</para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.Deployment
+ </programlisting>
+
+ <para>interface.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Unregister the resource adapter from the metadata repository
+ </listitem>
+ <listitem>
+ Unregister the JNDI bindings in the metadata repository - if the deployment was activated
+ </listitem>
+ <listitem>
+ Unbind connection factories and admin objects in JNDI - if the deployment was activated
+ </listitem>
+ <listitem>
+ Close the classloader
+ </listitem>
+ <listitem>
+ Clean up any temporary files
+ </listitem>
+ </itemizedlist>
+
+ </section>
+
+ <section id="rardeployer_fungal_raxmldeployer">
+ <title>RaXmlDeployer</title>
+
+ <para>This class represent a resource adapter deployer and implements the</para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.Deployer
+com.github.fungal.spi.deployers.MultiStageDeployer
+com.github.fungal.spi.deployers.DeployerOrder
+com.github.fungal.spi.deployers.DeployerPhases
+ </programlisting>
+
+ <para>interface.</para>
+
+ <para>The class deploys resource adapter archives based on a <code>-ra.xml</code> which
+ provides the necessary deployment information.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Create a classloader for the deployment
+ </listitem>
+ <listitem>
+ Retrieve metadata from the metadata repository
+ </listitem>
+ <listitem>
+ Merge metadata from the deployment descriptor
+ </listitem>
+ <listitem>
+ Perform archive validation using the JCA validator
+ </listitem>
+ <listitem>
+ Perform bean validation
+ </listitem>
+ <listitem>
+ Register the metadata in the metadata repository
+ </listitem>
+ <listitem>
+ Identify and activate the resource adapter objects
+ </listitem>
+ <listitem>
+ Bind connection factories and admin objects into JNDI
+ </listitem>
+ </itemizedlist>
+
+ <para>Since multiple resource adapter archives can be activated within a single <code>-ra.xml</code>
+ file the class uses the <code>DeployerPhases</code> callbacks to unregister these from the
+ container. If there is only a single resource adapter activation the deployer acts as part of
+ the normal deployer chain.</para>
+
+ </section>
+
+ <section id="rardeployer_fungal_raxmldeployment">
+ <title>RaXmlDeployment</title>
+
+ <para>This class represent a resource adapter deployment from the <code>RaXmlDeployer</code>
+ and implements the</para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.Deployment
+ </programlisting>
+
+ <para>interface.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Unregister the JNDI bindings in the metadata repository
+ </listitem>
+ <listitem>
+ Unbind connection factories and admin objects in JNDI
+ </listitem>
+ <listitem>
+ Close the classloader
+ </listitem>
+ </itemizedlist>
+
+ </section>
+
+ <section id="rardeployer_fungal_raactivator">
+ <title>RAActivator</title>
+
+ <para>This class will activate all resource adapters which hasn't been deployed by a previous step.
+ The class implements the </para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.DeployerPhases
+ </programlisting>
+
+ <para>interface. This interface allows the class to hook into the deployer lifecycle of the kernel
+ and receive callback notifications.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Find any resource adapters which hasn't been deployed through the metadata repository
+ </listitem>
+ <listitem>
+ Perform a deployment like <code>RADeployer</code>
+ </listitem>
+ <listitem>
+ Register each deployment with the kernel through the main deployer
+ </listitem>
+ </itemizedlist>
+
+ </section>
+
+ <section id="rardeployer_fungal_raactivator_deployment">
+ <title>RAActivatorDeployment</title>
+
+ <para>This class represent a resource adapter deployment activated by the <code>RAActivator</code>
+ and implements the</para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.Deployment
+ </programlisting>
+
+ <para>interface.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Unregister the JNDI bindings in the metadata repository
+ </listitem>
+ <listitem>
+ Unbind connection factories and admin objects in JNDI
+ </listitem>
+ <listitem>
+ Close the classloader
+ </listitem>
+ </itemizedlist>
+
+ </section>
+
+ </section>
+
+ </section>
+
+ <section id="dsdeployer">
+ <title>DataSource Deployer</title>
+
+ <para>The responsibility of the datasource deployer is to deploy a datasource deployment (-ds.xml) file.</para>
+
+ <section id="dsdeployer_fungal">
+ <title>Fungal</title>
+
+ <para>The Fungal datasource deployer chain consists of two classes.</para>
+
+ <para>The classes are located in the</para>
+
+ <programlisting>
+deployers/src/main/java/org/jboss/jca/deployers/fungal
+ </programlisting>
+
+ <para>directory.</para>
+
+ <section id="dsdeployer_fungal_dsxmldeployer">
+ <title>DsXmlDeployer</title>
+
+ <para>This class represent a datasource deployer and implements the</para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.Deployer
+ </programlisting>
+
+ <para>interface.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Locate metadata about JDBC in the metadata repository
+ </listitem>
+ <listitem>
+ Activate each <code>DataSource</code> using <code>jdbc-local.rar</code> as a template
+ </listitem>
+ <listitem>
+ Activate each <code>XaDataSource</code> using <code>jdbc-xa.rar</code> as a template
+ </listitem>
+ </itemizedlist>
+
+ </section>
+
+ <section id="dsdeployer_fungal_dsxmldeployment">
+ <title>DsXmlDeployment</title>
+
+ <para>This class represent a datasource deployment and implements the</para>
+
+ <programlisting>
+com.github.fungal.spi.deployers.Deployment
+ </programlisting>
+
+ <para>interface.</para>
+
+ <para>The responsible of the class is to</para>
+
+ <itemizedlist>
+ <listitem>
+ Unbind the datasource in JNDI
+ </listitem>
+ <listitem>
+ Close the classloader
+ </listitem>
+ </itemizedlist>
+
+ </section>
+
+ </section>
+
+
+ </section>
+</chapter>
Deleted: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/codegenerator.xml
===================================================================
--- projects/jboss-jca/trunk/doc/userguide/en/modules/codegenerator.xml 2010-09-20 18:23:34 UTC (rev 108232)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/codegenerator.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -1,493 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="codegenerator">
- <title>Code generator</title>
-
- <section id="codegenerator_introduction">
- <title>Introduction</title>
-
- <para>The IronJacamar project includes a resource adapter code generator which can
- generate a complete code skeleton that will help developers get started with
- their development tasks.</para>
-
- </section>
-
- <section id="codegenerator_functionality">
- <title>Functionality</title>
-
- <para>The code generator will generate a resource adapter code skeleton based
- on the user input. The code generator supports</para>
-
- <itemizedlist spacing="compact">
- <listitem>
- Resource adapter using JCA 1.6 annotations
- </listitem>
- <listitem>
- Resource adapter using JCA 1.6 metadata
- </listitem>
- <listitem>
- Resource adapter using JCA 1.5
- </listitem>
- <listitem>
- Resource adapter using JCA 1.0
- </listitem>
- <listitem>
- Apache Ant build environment
- </listitem>
- <listitem>
- Apache Ant + Ivy build environment
- </listitem>
- <listitem>
- Apache Maven build environment
- </listitem>
- <listitem>
- Test suite environment
- </listitem>
- </itemizedlist>
-
- </section>
-
- <section id="codegenerator_running">
- <title>Running the tool</title>
-
- <para>The code generator can be run on the command line by</para>
-
- <programlisting>
-./codegenerator.sh
- </programlisting>
-
- <para>from the <code>doc/codegenerator</code> directory.</para>
-
- <para>The code generator supports the following arguments</para>
-
- <table frame="all">
- <title>Code generator arguments</title>
- <tgroup cols="2" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Argument</entry>
- <entry align="left">Desciption</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>-o</code></entry>
- <entry>
- Specifies the output directory for the code skeleton.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>The developer must then answer various questions regarding the
- properties of the resource adapter.</para>
-
- <section id="codegenerator_input">
- <title>Developer Input</title>
-
- <para>This section describes the questions that are ask of the developer
- in order to generate the code.</para>
-
- <table frame="all">
- <title>Developer input</title>
- <tgroup cols="4" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2" colwidth="1*"/>
- <colspec colname="c3" colwidth="3*"/>
- <colspec colname="c4" colwidth="1*"/>
- <thead>
- <row>
- <entry align="left">Question</entry>
- <entry align="left">Spec</entry>
- <entry align="left">Desciption</entry>
- <entry align="left">Type</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- Profile version (1.6/1.5/1.0)
- </entry>
- <entry>All</entry>
- <entry>
- Defines which Java EE Connector Architecture specification that
- the resource adapter should target
- </entry>
- <entry></entry>
- </row>
- <row>
- <entry>
- Type (O/Outbound/I/Inbound/B/Bidirectional)
- </entry>
- <entry>JCA 1.5+</entry>
- <entry>
- Defines if the resource adapter should contain outbound communication., inbound communication
- or both
- </entry>
- <entry></entry>
- </row>
- <row>
- <entry>
- Transaction support (N/NoTransaction/L/LocalTransaction/X/XATransaction)
- </entry>
- <entry>All</entry>
- <entry>
- The transaction support level
- </entry>
- <entry></entry>
- </row>
- <row>
- <entry>
- Package name
- </entry>
- <entry>All</entry>
- <entry>
- The package name of the resource adapter
- </entry>
- <entry></entry>
- </row>
- <row>
- <entry>
- Use annotations (Y/Yes/N/No)
- </entry>
- <entry>JCA 1.6+</entry>
- <entry>
- Should annotations be used for specifying the structure. If 'No' is selected a <code>META-INF/ra.xml</code>
- is generated
- </entry>
- <entry></entry>
- </row>
- <row>
- <entry>
- Include a ResourceAdapter (Y/Yes/N/No)
- </entry>
- <entry>JCA 1.5+</entry>
- <entry>
- Should an instance of a resource adapter class be included in the archive
- </entry>
- <entry>Outbound</entry>
- </row>
- <row>
- <entry>
- Resource adapter class name
- </entry>
- <entry>JCA 1.5+</entry>
- <entry>
- The class name of the resource adapter
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Managed connection factory class name
- </entry>
- <entry>All</entry>
- <entry>
- The class name of the managed connection factory
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Managed connection class name
- </entry>
- <entry>All</entry>
- <entry>
- The class name of the managed connection
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Connection interface class name
- </entry>
- <entry>All</entry>
- <entry>
- The class name of the connection interface
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Connection implementation class name
- </entry>
- <entry>All</entry>
- <entry>
- The class name of the connection implementation
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Connection factory interface class name
- </entry>
- <entry>All</entry>
- <entry>
- The class name of the connection factory interface
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Connection factory implementation class name
- </entry>
- <entry>All</entry>
- <entry>
- The class name of the connection factory implementation
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Resource adapter config properties
- </entry>
- <entry>All</entry>
- <entry>
- Include a configuration properties in the resource adapter instance
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Managed connection factory config properties
- </entry>
- <entry>All</entry>
- <entry>
- Include a configuration properties in the managed connection factory instance
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Use ResourceAdapterAssociation (Y/Yes/N/No)
- </entry>
- <entry>All</entry>
- <entry>
- Associate the managed connection factory instance with the resource adapter instance
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Use CCI (Y/Yes/N/No)
- </entry>
- <entry>All</entry>
- <entry>
- Use the Common Client Interface for the connection / connection factory in the 'Outbound' part
- of the resource adapter
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- MessageListener interface name
- </entry>
- <entry>JCA 1.5+</entry>
- <entry>
- The name of the message listener interface for the activation
- </entry>
- <entry>Inbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- ActivationSpec class name
- </entry>
- <entry>JCA 1.5+</entry>
- <entry>
- The class name of the activation specification instance
- </entry>
- <entry>Inbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- ActivationSpec config properties
- </entry>
- <entry>JCA 1.5+</entry>
- <entry>
- Include configuration properties in the activation specification instance
- </entry>
- <entry>Inbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Activation class name
- </entry>
- <entry>JCA 1.5+</entry>
- <entry>
- The class name of the activation instance
- </entry>
- <entry>Inbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Add methods to connection interface (Y/Yes/N/No) [N]:
- </entry>
- <entry>All</entry>
- <entry>
- Use for add methods to connection interface
- </entry>
- <entry>Outbound or Bidirectional</entry>
- </row>
- <row>
- <entry>
- Build environment [A/Ant/I/Ant+Ivy/M/Maven]
- </entry>
- <entry>All</entry>
- <entry>
- Create build environment, ant or ant+ivy or maven
- </entry>
- <entry></entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- </section>
-
- <section id="codegenerator_code">
- <title>Generated code</title>
-
- <para>The generated code will consist of the classes making up the resource adapter
- and a test suite environment based on the embedded distribution.</para>
-
- <section id="codegenerator_ant">
- <title>Apache Ant build environment</title>
- <para>The following targets are supported in the Apache Ant build environment</para>
-
- <table frame="all">
- <title>Apache Ant build environment</title>
- <tgroup cols="2" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Target</entry>
- <entry align="left">Desciption</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>compile</code></entry>
- <entry>
- Compiles all the files
- </entry>
- </row>
- <row>
- <entry><code>rar</code></entry>
- <entry>
- Builds the resource adapter archive
- </entry>
- </row>
- <row>
- <entry><code>prepare-test</code></entry>
- <entry>
- Prepares the test environment
- </entry>
- </row>
- <row>
- <entry><code>test</code></entry>
- <entry>
- Executes the tests
- </entry>
- </row>
- <row>
- <entry><code>docs</code></entry>
- <entry>
- Generates the documentation
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
-
- <section id="codegenerator_ant_ivy">
- <title>Apache Ant + Ivy build environment</title>
- <para>The following targets are supported in the Apache Ant + Ivy build environment</para>
-
- <table frame="all">
- <title>Apache Ant + Ivy build environment</title>
- <tgroup cols="2" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Target</entry>
- <entry align="left">Desciption</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>compile</code></entry>
- <entry>
- Compiles all the files
- </entry>
- </row>
- <row>
- <entry><code>rar</code></entry>
- <entry>
- Builds the resource adapter archive
- </entry>
- </row>
- <row>
- <entry><code>prepare-test</code></entry>
- <entry>
- Prepares the test environment
- </entry>
- </row>
- <row>
- <entry><code>test</code></entry>
- <entry>
- Executes the tests
- </entry>
- </row>
- <row>
- <entry><code>docs</code></entry>
- <entry>
- Generates the documentation
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
-
- <section id="codegenerator_maven">
- <title>Apache Maven build environment</title>
- <para>The following targets are supported in the Apache Maven build environment</para>
-
- <table frame="all">
- <title>Apache Maven build environment</title>
- <tgroup cols="2" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Target</entry>
- <entry align="left">Desciption</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>compile</code></entry>
- <entry>
- Compiles all the files
- </entry>
- </row>
- <row>
- <entry><code>test</code></entry>
- <entry>
- Executes the tests
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
- </section>
-
-</chapter>
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/codegenerator.xml (from rev 108234, projects/jboss-jca/trunk/doc/userguide/en/modules/codegenerator.xml)
===================================================================
--- projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/codegenerator.xml (rev 0)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/codegenerator.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -0,0 +1,493 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="codegenerator">
+ <title>Code generator</title>
+
+ <section id="codegenerator_introduction">
+ <title>Introduction</title>
+
+ <para>The IronJacamar project includes a resource adapter code generator which can
+ generate a complete code skeleton that will help developers get started with
+ their development tasks.</para>
+
+ </section>
+
+ <section id="codegenerator_functionality">
+ <title>Functionality</title>
+
+ <para>The code generator will generate a resource adapter code skeleton based
+ on the user input. The code generator supports</para>
+
+ <itemizedlist spacing="compact">
+ <listitem>
+ Resource adapter using JCA 1.6 annotations
+ </listitem>
+ <listitem>
+ Resource adapter using JCA 1.6 metadata
+ </listitem>
+ <listitem>
+ Resource adapter using JCA 1.5
+ </listitem>
+ <listitem>
+ Resource adapter using JCA 1.0
+ </listitem>
+ <listitem>
+ Apache Ant build environment
+ </listitem>
+ <listitem>
+ Apache Ant + Ivy build environment
+ </listitem>
+ <listitem>
+ Apache Maven build environment
+ </listitem>
+ <listitem>
+ Test suite environment
+ </listitem>
+ </itemizedlist>
+
+ </section>
+
+ <section id="codegenerator_running">
+ <title>Running the tool</title>
+
+ <para>The code generator can be run on the command line by</para>
+
+ <programlisting>
+./codegenerator.sh
+ </programlisting>
+
+ <para>from the <code>doc/codegenerator</code> directory.</para>
+
+ <para>The code generator supports the following arguments</para>
+
+ <table frame="all">
+ <title>Code generator arguments</title>
+ <tgroup cols="2" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Argument</entry>
+ <entry align="left">Desciption</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>-o</code></entry>
+ <entry>
+ Specifies the output directory for the code skeleton.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>The developer must then answer various questions regarding the
+ properties of the resource adapter.</para>
+
+ <section id="codegenerator_input">
+ <title>Developer Input</title>
+
+ <para>This section describes the questions that are ask of the developer
+ in order to generate the code.</para>
+
+ <table frame="all">
+ <title>Developer input</title>
+ <tgroup cols="4" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2" colwidth="1*"/>
+ <colspec colname="c3" colwidth="3*"/>
+ <colspec colname="c4" colwidth="1*"/>
+ <thead>
+ <row>
+ <entry align="left">Question</entry>
+ <entry align="left">Spec</entry>
+ <entry align="left">Desciption</entry>
+ <entry align="left">Type</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ Profile version (1.6/1.5/1.0)
+ </entry>
+ <entry>All</entry>
+ <entry>
+ Defines which Java EE Connector Architecture specification that
+ the resource adapter should target
+ </entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>
+ Type (O/Outbound/I/Inbound/B/Bidirectional)
+ </entry>
+ <entry>JCA 1.5+</entry>
+ <entry>
+ Defines if the resource adapter should contain outbound communication., inbound communication
+ or both
+ </entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>
+ Transaction support (N/NoTransaction/L/LocalTransaction/X/XATransaction)
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The transaction support level
+ </entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>
+ Package name
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The package name of the resource adapter
+ </entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>
+ Use annotations (Y/Yes/N/No)
+ </entry>
+ <entry>JCA 1.6+</entry>
+ <entry>
+ Should annotations be used for specifying the structure. If 'No' is selected a <code>META-INF/ra.xml</code>
+ is generated
+ </entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>
+ Include a ResourceAdapter (Y/Yes/N/No)
+ </entry>
+ <entry>JCA 1.5+</entry>
+ <entry>
+ Should an instance of a resource adapter class be included in the archive
+ </entry>
+ <entry>Outbound</entry>
+ </row>
+ <row>
+ <entry>
+ Resource adapter class name
+ </entry>
+ <entry>JCA 1.5+</entry>
+ <entry>
+ The class name of the resource adapter
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Managed connection factory class name
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The class name of the managed connection factory
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Managed connection class name
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The class name of the managed connection
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Connection interface class name
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The class name of the connection interface
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Connection implementation class name
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The class name of the connection implementation
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Connection factory interface class name
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The class name of the connection factory interface
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Connection factory implementation class name
+ </entry>
+ <entry>All</entry>
+ <entry>
+ The class name of the connection factory implementation
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Resource adapter config properties
+ </entry>
+ <entry>All</entry>
+ <entry>
+ Include a configuration properties in the resource adapter instance
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Managed connection factory config properties
+ </entry>
+ <entry>All</entry>
+ <entry>
+ Include a configuration properties in the managed connection factory instance
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Use ResourceAdapterAssociation (Y/Yes/N/No)
+ </entry>
+ <entry>All</entry>
+ <entry>
+ Associate the managed connection factory instance with the resource adapter instance
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Use CCI (Y/Yes/N/No)
+ </entry>
+ <entry>All</entry>
+ <entry>
+ Use the Common Client Interface for the connection / connection factory in the 'Outbound' part
+ of the resource adapter
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ MessageListener interface name
+ </entry>
+ <entry>JCA 1.5+</entry>
+ <entry>
+ The name of the message listener interface for the activation
+ </entry>
+ <entry>Inbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ ActivationSpec class name
+ </entry>
+ <entry>JCA 1.5+</entry>
+ <entry>
+ The class name of the activation specification instance
+ </entry>
+ <entry>Inbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ ActivationSpec config properties
+ </entry>
+ <entry>JCA 1.5+</entry>
+ <entry>
+ Include configuration properties in the activation specification instance
+ </entry>
+ <entry>Inbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Activation class name
+ </entry>
+ <entry>JCA 1.5+</entry>
+ <entry>
+ The class name of the activation instance
+ </entry>
+ <entry>Inbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Add methods to connection interface (Y/Yes/N/No) [N]:
+ </entry>
+ <entry>All</entry>
+ <entry>
+ Use for add methods to connection interface
+ </entry>
+ <entry>Outbound or Bidirectional</entry>
+ </row>
+ <row>
+ <entry>
+ Build environment [A/Ant/I/Ant+Ivy/M/Maven]
+ </entry>
+ <entry>All</entry>
+ <entry>
+ Type of build environment
+ </entry>
+ <entry></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ </section>
+
+ <section id="codegenerator_code">
+ <title>Generated code</title>
+
+ <para>The generated code will consist of the classes making up the resource adapter
+ and a test suite environment based on the embedded distribution.</para>
+
+ <section id="codegenerator_ant">
+ <title>Apache Ant build environment</title>
+ <para>The following targets are supported in the Apache Ant build environment</para>
+
+ <table frame="all">
+ <title>Apache Ant build environment</title>
+ <tgroup cols="2" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Target</entry>
+ <entry align="left">Desciption</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>compile</code></entry>
+ <entry>
+ Compiles all the files
+ </entry>
+ </row>
+ <row>
+ <entry><code>rar</code></entry>
+ <entry>
+ Builds the resource adapter archive
+ </entry>
+ </row>
+ <row>
+ <entry><code>prepare-test</code></entry>
+ <entry>
+ Prepares the test environment
+ </entry>
+ </row>
+ <row>
+ <entry><code>test</code></entry>
+ <entry>
+ Executes the tests
+ </entry>
+ </row>
+ <row>
+ <entry><code>docs</code></entry>
+ <entry>
+ Generates the documentation
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section id="codegenerator_ant_ivy">
+ <title>Apache Ant + Ivy build environment</title>
+ <para>The following targets are supported in the Apache Ant + Ivy build environment</para>
+
+ <table frame="all">
+ <title>Apache Ant + Ivy build environment</title>
+ <tgroup cols="2" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Target</entry>
+ <entry align="left">Desciption</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>compile</code></entry>
+ <entry>
+ Compiles all the files
+ </entry>
+ </row>
+ <row>
+ <entry><code>rar</code></entry>
+ <entry>
+ Builds the resource adapter archive
+ </entry>
+ </row>
+ <row>
+ <entry><code>prepare-test</code></entry>
+ <entry>
+ Prepares the test environment
+ </entry>
+ </row>
+ <row>
+ <entry><code>test</code></entry>
+ <entry>
+ Executes the tests
+ </entry>
+ </row>
+ <row>
+ <entry><code>docs</code></entry>
+ <entry>
+ Generates the documentation
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section id="codegenerator_maven">
+ <title>Apache Maven build environment</title>
+ <para>The following targets are supported in the Apache Maven build environment</para>
+
+ <table frame="all">
+ <title>Apache Maven build environment</title>
+ <tgroup cols="2" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Target</entry>
+ <entry align="left">Desciption</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>compile</code></entry>
+ <entry>
+ Compiles all the files
+ </entry>
+ </row>
+ <row>
+ <entry><code>test</code></entry>
+ <entry>
+ Executes the tests
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ </section>
+
+</chapter>
Deleted: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/configuration.xml
===================================================================
--- projects/jboss-jca/trunk/doc/userguide/en/modules/configuration.xml 2010-09-20 18:23:34 UTC (rev 108232)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/configuration.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -1,515 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="configuration">
- <title>Configuration</title>
-
- <para>The configuration for the IronJacamar container is located in the config/ directory.</para>
-
- <section id="logging">
- <title>Logging service</title>
-
- <para>The IronJacamar container uses JBoss Logging framework as the implementation.</para>
-
- <para>The configuration is done in the</para>
-
- <programlisting>
-config/logging.properties
- </programlisting>
-
- <para>file.</para>
-
- <para>Consult the <ulink url="http://www.jboss.org/community/wiki/JBossBootLogging">
- JBoss Logging documentation</ulink> on how the service can be configured.</para>
-
- </section>
-
- <section id="transaction">
- <title>Transaction service</title>
-
- <para>The IronJacamar container uses the JBoss Transaction Manager as its transaction implementation.</para>
-
- <para>The configuration is done in the</para>
-
- <programlisting>
-config/transaction.xml
- </programlisting>
-
- <para>file.</para>
-
- <para>Consult the JBoss Transaction documentation on how the service can be configured.</para>
-
- </section>
-
- <section id="jca">
- <title>JCA</title>
-
- <section id="jca_deployer">
- <title>Deployer</title>
-
- <para>The IronJacamar deployer is configured in the</para>
-
- <programlisting>
-config/bootstrap/jca.xml
- </programlisting>
-
- <para>file.</para>
-
- <section id="jca_deployer_configuration">
- <title>Configuration</title>
-
- <para>The configuration of the resource adapter deployer chain is handled
- by a <code>org.jboss.jca.deployers.fungal.RAConfiguration</code> bean.</para>
-
- <programlisting>
-<![CDATA[
-<bean name="RAConfiguration"
- class="org.jboss.jca.deployers.fungal.RAConfiguration">
- <property name="ArchiveValidation">true</property>
- <property name="ArchiveValidationFailOnWarn">false</property>
- <property name="ArchiveValidationFailOnError">true</property>
- <property name="BeanValidation">true</property>
- <property name="PrintStream"><inject bean="JBossStdioContext" property="Out"/></property>
- <property name="DefaultBootstrapContext"><inject bean="DefaultBootstrapContext"/></property>
- <property name="JndiStrategy"><inject bean="JndiStrategy"/></property>
- <property name="TransactionManager"><inject bean="RealTransactionManager"/></property>
- <property name="MetadataRepository"><inject bean="MDR"/></property>
-</bean>
- ]]>
- </programlisting>
-
-
- <table frame="all">
- <title>Resource adapter deployer configuration</title>
- <tgroup cols="3" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2"/>
- <colspec colname="c3" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Property</entry>
- <entry align="left">Type</entry>
- <entry align="left">Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>ArchiveValidation</code></entry>
- <entry><code>boolean</code></entry>
- <entry>
- Toggle archive validation for the deployment units.
- <para>Default: <code>true</code></para>
- </entry>
- </row>
- <row>
- <entry><code>ArchiveValidationFailOnWarn</code></entry>
- <entry><code>boolean</code></entry>
- <entry>
- Should an archive validation warning report fail the deployment.
- <para>Default: <code>false</code></para>
- </entry>
- </row>
- <row>
- <entry><code>ArchiveValidationFailOnError</code></entry>
- <entry><code>boolean</code></entry>
- <entry>
- Should an archive validation error report fail the deployment.
- <para>Default: <code>true</code></para>
- </entry>
- </row>
- <row>
- <entry><code>BeanValidation</code></entry>
- <entry><code>boolean</code></entry>
- <entry>
- Toggle bean validation (JSR-303) for the deployment units.
- <para>Default: <code>true</code></para>
- </entry>
- </row>
- <row>
- <entry><code>DefaultBootstrapContext</code></entry>
- <entry><code>org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext</code></entry>
- <entry>
- Specifies the default bootstrap context for resource adapters
- </entry>
- </row>
- <row>
- <entry><code>BootstrapContexts</code></entry>
- <entry><code>Map<String, org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext></code></entry>
- <entry>
- Bootstrap context map (unique name to a cloneable bootstrap context) which allows
- developers to bind (through <code>jboss-ra.xml</code>) their resource adapter to
- a specific bootstrap context instance.
- </entry>
- </row>
- <row>
- <entry><code>PrintStream</code></entry>
- <entry><code>java.io.PrintStream</code></entry>
- <entry>
- Specifies which print stream that should be used to handle the <code>LogWriter</code>s
- </entry>
- </row>
- <row>
- <entry><code>MetadataRepository</code></entry>
- <entry><code>org.jboss.jca.core.spi.mdr.MetadataRepository</code></entry>
- <entry>
- The metadata repository
- </entry>
- </row>
- <row>
- <entry><code>ScopeDeployment</code></entry>
- <entry><code>boolean</code></entry>
- <entry>
- Should each deployment be scoped (isolated) from the container. This feature allows
- deployment of libraries of a different version than used in the container environment.
- <para>Default: <code>false</code></para>
- </entry>
- </row>
- <row>
- <entry><code>JndiStrategy</code></entry>
- <entry><code>org.jboss.jca.core.spi.naming.JndiStrategy</code></entry>
- <entry>
- Specifies the JNDI strategy policy for binding the connection factories into
- the naming environment
-
- <para>The JNDI strategies are located in the <code>org.jboss.jca.core.naming</code>
- package</para>
- <itemizedlist spacing="compact">
- <listitem>
- <code>NoopJndiStrategy</code>: A no operation JNDI strategy
- which doesn't bind/unbind any objects
- </listitem>
- <listitem>
- <code>SimpleJndiStrategy</code>: A simple JNDI strategy
- which can bind/unbind a single connection factory
- </listitem>
- </itemizedlist>
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- <section id="jca_deployer_radeployer">
- <title>Resource adapter deployer</title>
-
- <para>The initial deployer for resource adapter archives is handled
- by a <code>org.jboss.jca.deployers.fungal.RADeployer</code> bean.</para>
-
- <programlisting>
-<![CDATA[
-<bean name="RADeployer"
- interface="com.github.fungal.spi.deployers.Deployer"
- class="org.jboss.jca.deployers.fungal.RADeployer">
- <property name="Configuration"><inject bean="RAConfiguration"/></property>
- <depends>BeanValidation</depends>
- <depends>JBossStdioContextSelector</depends>
-</bean>
- ]]>
- </programlisting>
-
- <para>This deployer will register the resource adapters with the metadata repository in
- the system.</para>
-
-
- <table frame="all">
- <title>Resource adapter deployer</title>
- <tgroup cols="3" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2"/>
- <colspec colname="c3" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Property</entry>
- <entry align="left">Type</entry>
- <entry align="left">Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>Configuration</code></entry>
- <entry><code>org.jboss.jca.deployers.fungal.RAConfiguration</code></entry>
- <entry>
- The configuration for the deployer
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- <section id="jca_deployer_raactivator">
- <title>Resource adapter activator</title>
-
- <para>The deployer chain features an activator for resource adapter archives is handled
- by the <code>org.jboss.jca.deployers.fungal.RAActivator</code> bean.</para>
-
- <programlisting>
-<![CDATA[
-<bean name="RAActivator"
- class="org.jboss.jca.deployers.fungal.RAActivator">
- <property name="Configuration"><inject bean="RAConfiguration"/></property>
- <property name="Kernel"><inject bean="Kernel"/></property>
- <property name="ExcludeArchives">
- <set elementClass="java.lang.String">
- <value>jdbc-local.rar</value>
- <value>jdbc-xa.rar</value>
- </set>
- </property>
- <depends>BeanValidation</depends>
- <depends>JBossStdioContextSelector</depends>
-</bean>
- ]]>
- </programlisting>
-
- <para>This activator will activate any resource adapters which hasn't been activated yet
- unless they are in the excluded list.</para>
-
-
- <table frame="all">
- <title>Resource adapter activator</title>
- <tgroup cols="3" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2"/>
- <colspec colname="c3" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Property</entry>
- <entry align="left">Type</entry>
- <entry align="left">Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>Configuration</code></entry>
- <entry><code>org.jboss.jca.deployers.fungal.RAConfiguration</code></entry>
- <entry>
- The configuration for the deployer
- </entry>
- </row>
- <row>
- <entry><code>Enabled</code></entry>
- <entry><code>boolean</code></entry>
- <entry>
- Should the activator be enabled. Default is <code>true</code>
- </entry>
- </row>
- <row>
- <entry><code>Kernel</code></entry>
- <entry><code>com.github.fungal.api.Kernel</code></entry>
- <entry>
- The kernel instance
- </entry>
- </row>
- <row>
- <entry><code>ExcludeArchives</code></entry>
- <entry><code>java.util.Set</code></entry>
- <entry>
- A set of resource adapter archives which should be excluded
- from activation
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- </section>
-
- <section id="jca_security">
- <title>Security</title>
-
- <para>The Java EE Connector Architecture 1.6 specification allows units of
- <code>javax.resource.spi.Work</code> to be executed in a specific security context.</para>
-
- <para>This is done through the use of Java Authentication Service Provider Interface for Containers (JSR-196)
- call backs using the <code>javax.security.auth.callback.Callback</code> interface.</para>
-
- <para>The support is activated by letting the work instance implement the</para>
-
- <programlisting>
-javax.resource.spi.work.WorkContextProvider
- </programlisting>
-
- <para>interface and returning an instance of <code>javax.resource.spi.work.SecurityContext</code>.</para>
-
- <para>There is currently support for injecting a user/roles setup based on the files</para>
-
- <programlisting>
-config/users.properties
-config/roles.properties
- </programlisting>
-
- <para>The format of the <code>users.properties</code> file is</para>
-
- <programlisting>
-username1=password1
-username2=password2
- </programlisting>
-
- <para>The format of the <code>roles.properties</code> file is</para>
-
- <programlisting>
-username1=role1,role2
-username2=role3,role4
- </programlisting>
-
- <para>The user/roles setup can be configured through the <code>UsersRoles</code> bean in the
- <code>config/bootstrap/jca.xml</code> file.</para>
-
- <programlisting>
- <![CDATA[
-<!-- Users / roles -->
-<bean name="UsersRoles"
- interface="org.jboss.jca.core.spi.security.Callback"
- class="org.jboss.jca.core.security.UsersRoles">
- <property name="UsersProperties">${iron.jacamar.home}/config/users.properties</property>
- <property name="RolesProperties">${iron.jacamar.home}/config/roles.properties</property>
-</bean>
- ]]>
- </programlisting>
-
- </section>
-
- </section>
-
- <section id="datasources">
- <title>Datasources</title>
-
- <para>The IronJacamar project can deploy datasources using the <code>datasources-1_0.xsd</code> schema.</para>
-
- <para>The configuration is done in the</para>
-
- <programlisting>
-config/bootstrap/ds.xml
- </programlisting>
-
- <para>file.</para>
-
- <table frame="all">
- <title>DsXmlDeployer</title>
- <tgroup cols="3" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2"/>
- <colspec colname="c3" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Property</entry>
- <entry align="left">Type</entry>
- <entry align="left">Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>JDBCLocal</code></entry>
- <entry><code>String</code></entry>
- <entry>
- The name of the <code>jdbc-local.rar</code> deployment
- </entry>
- </row>
- <row>
- <entry><code>JDBCXA</code></entry>
- <entry><code>String</code></entry>
- <entry>
- The name of the <code>jdbc-xa.rar</code> deployment
- </entry>
- </row>
- <row>
- <entry><code>TransactionManager</code></entry>
- <entry><code>javax.transaction.TransactionManager</code></entry>
- <entry>
- The transaction manager
- </entry>
- </row>
- <row>
- <entry><code>MetadataRepository</code></entry>
- <entry><code>org.jboss.jca.core.spi.mdr.MetadataRepository</code></entry>
- <entry>
- The metadata repository
- </entry>
- </row>
- <row>
- <entry><code>Kernel</code></entry>
- <entry><code>com.github.fungal.api.Kernel</code></entry>
- <entry>
- The kernel
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>The datasource deployer can be removed from the environment by removing the <code>ds.xml</code>
- file in</para>
-
- <programlisting>
-config/bootstrap/
- </programlisting>
-
- <para>as well as the reference in <code>config/bootstrap/bootstrap.xml</code> to the file.</para>
-
- <para>Furthermore all JDBC-*.RAR files in the <code>system/</code> directory should be removed too.</para>
-
- </section>
-
- <section id="webserver">
- <title>Web server</title>
-
- <para>The IronJacamar project features a web server which is used to serve web archive deployments.</para>
-
- <para>The configuration is done in the</para>
-
- <programlisting>
-system/web.xml
- </programlisting>
-
- <para>file.</para>
-
- <table frame="all">
- <title>Web server</title>
- <tgroup cols="3" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2"/>
- <colspec colname="c3" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Property</entry>
- <entry align="left">Type</entry>
- <entry align="left">Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>Port</code></entry>
- <entry><code>int</code></entry>
- <entry>
- Set the port for the web server
- <para>Default: <code>8080</code></para>
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>The web server can be removed from the environment by removing the <code>web.xml</code>
- file in</para>
-
- <programlisting>
-system/
- </programlisting>
-
- <para>Furthermore all .WAR files in the same directory should be removed too.</para>
-
- <para>All the Jetty libraries can be removed by deleting the</para>
-
- <programlisting>
-lib/jetty
- </programlisting>
-
- <para>directory.</para>
-
- </section>
-
-
-</chapter>
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/configuration.xml (from rev 108234, projects/jboss-jca/trunk/doc/userguide/en/modules/configuration.xml)
===================================================================
--- projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/configuration.xml (rev 0)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/configuration.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -0,0 +1,596 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="configuration">
+ <title>Configuration</title>
+
+ <para>The configuration for the IronJacamar container is located in the config/ directory.</para>
+
+ <section id="logging">
+ <title>Logging service</title>
+
+ <para>The IronJacamar container uses JBoss Logging framework as the implementation.</para>
+
+ <para>The configuration is done in the</para>
+
+ <programlisting>
+config/logging.properties
+ </programlisting>
+
+ <para>file.</para>
+
+ <para>Consult the <ulink url="http://www.jboss.org/community/wiki/JBossBootLogging">
+ JBoss Logging documentation</ulink> on how the service can be configured.</para>
+
+ </section>
+
+ <section id="transaction">
+ <title>Transaction service</title>
+
+ <para>The IronJacamar container uses the JBoss Transaction Manager as its transaction implementation.</para>
+
+ <para>The configuration is done in the</para>
+
+ <programlisting>
+config/transaction.xml
+ </programlisting>
+
+ <para>file.</para>
+
+ <para>Consult the JBoss Transaction documentation on how the service can be configured.</para>
+
+ </section>
+
+ <section id="jca">
+ <title>JCA</title>
+
+ <section id="jca_deployer">
+ <title>Deployer</title>
+
+ <para>The IronJacamar deployer is configured in the</para>
+
+ <programlisting>
+config/bootstrap/jca.xml
+ </programlisting>
+
+ <para>file.</para>
+
+ <section id="jca_deployer_configuration">
+ <title>Configuration</title>
+
+ <para>The configuration of the resource adapter deployer chain is handled
+ by a <code>org.jboss.jca.deployers.fungal.RAConfiguration</code> bean.</para>
+
+ <programlisting>
+<![CDATA[
+<bean name="RAConfiguration"
+ class="org.jboss.jca.deployers.fungal.RAConfiguration">
+ <property name="ArchiveValidation">true</property>
+ <property name="ArchiveValidationFailOnWarn">false</property>
+ <property name="ArchiveValidationFailOnError">true</property>
+ <property name="BeanValidation">true</property>
+ <property name="PrintStream"><inject bean="JBossStdioContext" property="Out"/></property>
+ <property name="DefaultBootstrapContext"><inject bean="DefaultBootstrapContext"/></property>
+ <property name="JndiStrategy"><inject bean="JndiStrategy"/></property>
+ <property name="TransactionManager"><inject bean="RealTransactionManager"/></property>
+ <property name="MetadataRepository"><inject bean="MDR"/></property>
+</bean>
+ ]]>
+ </programlisting>
+
+
+ <table frame="all">
+ <title>Resource adapter deployer configuration</title>
+ <tgroup cols="3" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2"/>
+ <colspec colname="c3" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Property</entry>
+ <entry align="left">Type</entry>
+ <entry align="left">Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>ArchiveValidation</code></entry>
+ <entry><code>boolean</code></entry>
+ <entry>
+ Toggle archive validation for the deployment units.
+ <para>Default: <code>true</code></para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>ArchiveValidationFailOnWarn</code></entry>
+ <entry><code>boolean</code></entry>
+ <entry>
+ Should an archive validation warning report fail the deployment.
+ <para>Default: <code>false</code></para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>ArchiveValidationFailOnError</code></entry>
+ <entry><code>boolean</code></entry>
+ <entry>
+ Should an archive validation error report fail the deployment.
+ <para>Default: <code>true</code></para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>BeanValidation</code></entry>
+ <entry><code>boolean</code></entry>
+ <entry>
+ Toggle bean validation (JSR-303) for the deployment units.
+ <para>Default: <code>true</code></para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>DefaultBootstrapContext</code></entry>
+ <entry><code>org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext</code></entry>
+ <entry>
+ Specifies the default bootstrap context for resource adapters
+ </entry>
+ </row>
+ <row>
+ <entry><code>BootstrapContexts</code></entry>
+ <entry><code>Map<String, org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext></code></entry>
+ <entry>
+ Bootstrap context map (unique name to a cloneable bootstrap context) which allows
+ developers to bind (through <code>jboss-ra.xml</code>) their resource adapter to
+ a specific bootstrap context instance.
+ </entry>
+ </row>
+ <row>
+ <entry><code>PrintStream</code></entry>
+ <entry><code>java.io.PrintStream</code></entry>
+ <entry>
+ Specifies which print stream that should be used to handle the <code>LogWriter</code>s
+ </entry>
+ </row>
+ <row>
+ <entry><code>MetadataRepository</code></entry>
+ <entry><code>org.jboss.jca.core.spi.mdr.MetadataRepository</code></entry>
+ <entry>
+ The metadata repository
+ </entry>
+ </row>
+ <row>
+ <entry><code>ScopeDeployment</code></entry>
+ <entry><code>boolean</code></entry>
+ <entry>
+ Should each deployment be scoped (isolated) from the container. This feature allows
+ deployment of libraries of a different version than used in the container environment.
+ <para>Default: <code>false</code></para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>JndiStrategy</code></entry>
+ <entry><code>org.jboss.jca.core.spi.naming.JndiStrategy</code></entry>
+ <entry>
+ Specifies the JNDI strategy policy for binding the connection factories into
+ the naming environment
+
+ <para>The JNDI strategies are located in the <code>org.jboss.jca.core.naming</code>
+ package</para>
+ <itemizedlist spacing="compact">
+ <listitem>
+ <code>NoopJndiStrategy</code>: A no operation JNDI strategy
+ which doesn't bind/unbind any objects
+ </listitem>
+ <listitem>
+ <code>SimpleJndiStrategy</code>: A simple JNDI strategy
+ which can bind/unbind a single connection factory
+ </listitem>
+ <listitem>
+ <code>ExplicitJndiStrategy</code>: A JNDI strategy
+ which can requires explicit JNDI names to bind/unbind a connection factory
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section id="jca_deployer_radeployer">
+ <title>Resource adapter deployer</title>
+
+ <para>The initial deployer for resource adapter archives is handled
+ by a <code>org.jboss.jca.deployers.fungal.RADeployer</code> bean.</para>
+
+ <programlisting>
+<![CDATA[
+<bean name="RADeployer"
+ interface="com.github.fungal.spi.deployers.Deployer"
+ class="org.jboss.jca.deployers.fungal.RADeployer">
+ <property name="Configuration"><inject bean="RAConfiguration"/></property>
+ <depends>BeanValidation</depends>
+ <depends>JBossStdioContextSelector</depends>
+</bean>
+ ]]>
+ </programlisting>
+
+ <para>This deployer will register the resource adapters with the metadata repository in
+ the system.</para>
+
+
+ <table frame="all">
+ <title>Resource adapter deployer</title>
+ <tgroup cols="3" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2"/>
+ <colspec colname="c3" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Property</entry>
+ <entry align="left">Type</entry>
+ <entry align="left">Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>Configuration</code></entry>
+ <entry><code>org.jboss.jca.deployers.fungal.RAConfiguration</code></entry>
+ <entry>
+ The configuration for the deployer
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section id="jca_deployer_raxmldeployer">
+ <title>Resource adapter metadata deployer</title>
+
+ <para>The deployer for deploying our <code>-ra.xml</code> deployment descriptor is handled
+ by a <code>org.jboss.jca.deployers.fungal.RaXmlDeployer</code> bean.</para>
+
+ <para>The deployment descriptor is defined by the <code>resource-adapters-1_0.xsd</code> schema.</para>
+
+ <programlisting>
+<![CDATA[
+<bean name="RaXmlDeployer"
+ interface="com.github.fungal.spi.deployers.Deployer"
+ class="org.jboss.jca.deployers.fungal.RaXmlDeployer">
+ <property name="Configuration"><inject bean="DeployerConfiguration"/></property>
+ <property name="Kernel"><inject bean="Kernel"/></property>
+ <depends>BeanValidation</depends>
+ <depends>JBossStdioContextSelector</depends>
+</bean>
+ ]]>
+ </programlisting>
+
+ <para>This deployer will activate resource adapters based on the deployment information.</para>
+
+
+ <table frame="all">
+ <title>Resource adapter metadata deployer</title>
+ <tgroup cols="3" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2"/>
+ <colspec colname="c3" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Property</entry>
+ <entry align="left">Type</entry>
+ <entry align="left">Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>Configuration</code></entry>
+ <entry><code>org.jboss.jca.deployers.fungal.RAConfiguration</code></entry>
+ <entry>
+ The configuration for the deployer
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section id="jca_deployer_raactivator">
+ <title>Resource adapter activator</title>
+
+ <para>The deployer chain features an activator for resource adapter archives is handled
+ by the <code>org.jboss.jca.deployers.fungal.RAActivator</code> bean.</para>
+
+ <programlisting>
+<![CDATA[
+<bean name="RAActivator"
+ class="org.jboss.jca.deployers.fungal.RAActivator">
+ <property name="Configuration"><inject bean="RAConfiguration"/></property>
+ <property name="Kernel"><inject bean="Kernel"/></property>
+ <property name="ExcludeArchives">
+ <set elementClass="java.lang.String">
+ <value>jdbc-local.rar</value>
+ <value>jdbc-xa.rar</value>
+ </set>
+ </property>
+ <depends>BeanValidation</depends>
+ <depends>JBossStdioContextSelector</depends>
+</bean>
+ ]]>
+ </programlisting>
+
+ <para>This activator will activate any resource adapters which hasn't been activated yet
+ unless they are in the excluded list.</para>
+
+
+ <table frame="all">
+ <title>Resource adapter activator</title>
+ <tgroup cols="3" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2"/>
+ <colspec colname="c3" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Property</entry>
+ <entry align="left">Type</entry>
+ <entry align="left">Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>Configuration</code></entry>
+ <entry><code>org.jboss.jca.deployers.fungal.RAConfiguration</code></entry>
+ <entry>
+ The configuration for the deployer
+ </entry>
+ </row>
+ <row>
+ <entry><code>Enabled</code></entry>
+ <entry><code>boolean</code></entry>
+ <entry>
+ Should the activator be enabled. Default is <code>true</code>
+ </entry>
+ </row>
+ <row>
+ <entry><code>Kernel</code></entry>
+ <entry><code>com.github.fungal.api.Kernel</code></entry>
+ <entry>
+ The kernel instance
+ </entry>
+ </row>
+ <row>
+ <entry><code>ExcludeArchives</code></entry>
+ <entry><code>java.util.Set</code></entry>
+ <entry>
+ A set of resource adapter archives which should be excluded
+ from activation
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ </section>
+
+ <section id="jca_security">
+ <title>Security</title>
+
+ <para>The Java EE Connector Architecture 1.6 specification allows units of
+ <code>javax.resource.spi.Work</code> to be executed in a specific security context.</para>
+
+ <para>This is done through the use of Java Authentication Service Provider Interface for Containers (JSR-196)
+ call backs using the <code>javax.security.auth.callback.Callback</code> interface.</para>
+
+ <para>The support is activated by letting the work instance implement the</para>
+
+ <programlisting>
+javax.resource.spi.work.WorkContextProvider
+ </programlisting>
+
+ <para>interface and returning an instance of <code>javax.resource.spi.work.SecurityContext</code>.</para>
+
+ <para>There is currently support for injecting a user/roles setup based on the files</para>
+
+ <programlisting>
+config/users.properties
+config/roles.properties
+ </programlisting>
+
+ <para>The format of the <code>users.properties</code> file is</para>
+
+ <programlisting>
+username1=password1
+username2=password2
+ </programlisting>
+
+ <para>The format of the <code>roles.properties</code> file is</para>
+
+ <programlisting>
+username1=role1,role2
+username2=role3,role4
+ </programlisting>
+
+ <para>The user/roles setup can be configured through the <code>UsersRoles</code> bean in the
+ <code>config/bootstrap/jca.xml</code> file.</para>
+
+ <programlisting>
+ <![CDATA[
+<!-- Users / roles -->
+<bean name="UsersRoles"
+ interface="org.jboss.jca.core.spi.security.Callback"
+ class="org.jboss.jca.core.security.UsersRoles">
+ <property name="UsersProperties">${iron.jacamar.home}/config/users.properties</property>
+ <property name="RolesProperties">${iron.jacamar.home}/config/roles.properties</property>
+</bean>
+ ]]>
+ </programlisting>
+
+ </section>
+
+ </section>
+
+ <section id="datasources">
+ <title>Datasources</title>
+
+ <para>The IronJacamar project can deploy datasources using the <code>datasources-1_0.xsd</code> schema.</para>
+
+ <para>The configuration is done in the</para>
+
+ <programlisting>
+config/bootstrap/ds.xml
+ </programlisting>
+
+ <para>file.</para>
+
+ <table frame="all">
+ <title>DsXmlDeployer</title>
+ <tgroup cols="3" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2"/>
+ <colspec colname="c3" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Property</entry>
+ <entry align="left">Type</entry>
+ <entry align="left">Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>JDBCLocal</code></entry>
+ <entry><code>String</code></entry>
+ <entry>
+ The name of the <code>jdbc-local.rar</code> deployment
+ </entry>
+ </row>
+ <row>
+ <entry><code>JDBCXA</code></entry>
+ <entry><code>String</code></entry>
+ <entry>
+ The name of the <code>jdbc-xa.rar</code> deployment
+ </entry>
+ </row>
+ <row>
+ <entry><code>TransactionManager</code></entry>
+ <entry><code>javax.transaction.TransactionManager</code></entry>
+ <entry>
+ The transaction manager
+ </entry>
+ </row>
+ <row>
+ <entry><code>MetadataRepository</code></entry>
+ <entry><code>org.jboss.jca.core.spi.mdr.MetadataRepository</code></entry>
+ <entry>
+ The metadata repository
+ </entry>
+ </row>
+ <row>
+ <entry><code>Kernel</code></entry>
+ <entry><code>com.github.fungal.api.Kernel</code></entry>
+ <entry>
+ The kernel
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>The datasource deployer can be removed from the environment by removing the <code>ds.xml</code>
+ file in</para>
+
+ <programlisting>
+config/bootstrap/
+ </programlisting>
+
+ <para>as well as the reference in <code>config/bootstrap/bootstrap.xml</code> to the file.</para>
+
+ <para>Furthermore all <code>jdbc-*.rar</code> files in the <code>system/</code> directory should be removed too.</para>
+
+ </section>
+
+ <section id="webserver">
+ <title>Web server</title>
+
+ <para>The IronJacamar project features a web server which is used to serve web archive deployments.</para>
+
+ <para>The configuration is done in the</para>
+
+ <programlisting>
+system/web.xml
+ </programlisting>
+
+ <para>file.</para>
+
+ <programlisting>
+<![CDATA[
+<bean name="WebServer" class="org.jboss.jca.web.WebServer">
+ <property name="Host">${iron.jacamar.bindaddress:localhost}</property>
+ <property name="Port">8080</property>
+ <property name="ExecutorService"><inject bean="Kernel" property="ExecutorService"/></property>
+</bean>
+]]>
+ </programlisting>
+
+ <table frame="all">
+ <title>Web server</title>
+ <tgroup cols="3" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2"/>
+ <colspec colname="c3" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Property</entry>
+ <entry align="left">Type</entry>
+ <entry align="left">Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>Host</code></entry>
+ <entry><code>String</code></entry>
+ <entry>
+ Set the bind address for the web server
+ <para>Default: <code>localhost</code></para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>Port</code></entry>
+ <entry><code>int</code></entry>
+ <entry>
+ Set the port for the web server
+ <para>Default: <code>8080</code></para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>ExecutorService</code></entry>
+ <entry><code>java.util.concurrent.ExecutorService</code></entry>
+ <entry>
+ The thread pool for the web server
+ <para>Default: The kernel thread pool</para>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>The web server can be removed from the environment by removing the <code>web.xml</code>
+ file in</para>
+
+ <programlisting>
+system/
+ </programlisting>
+
+ <para>Furthermore all <code>.war</code> files in the same directory should be removed too.</para>
+
+ <para>All the Jetty libraries can be removed by deleting the</para>
+
+ <programlisting>
+lib/jetty
+ </programlisting>
+
+ <para>directory.</para>
+
+ </section>
+
+
+</chapter>
Deleted: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/deployment.xml
===================================================================
--- projects/jboss-jca/trunk/doc/userguide/en/modules/deployment.xml 2010-09-20 18:23:34 UTC (rev 108232)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/deployment.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="deployment">
- <title>Deployment</title>
-
- <para>The IronJacamar distribution contains a deploy/ directory where all deployments
- should be deployed to.</para>
-
- <section id="packagingrequirements">
- <title>Packaging requirements</title>
-
- <para>A resource adapter archive is a structured Java Archive (JAR) file, which
- bundles all Java classes in JAR files, and optionally contains metadata, resources and native
- libraries.</para>
-
- <para>An example of a resource adapter archive could look like</para>
-
- <programlisting>
-<![CDATA[
-[jpederse at localhost]$ jar tf ra.rar
-META-INF/ra.xml
-readme.html
-ra.jar
-images/icon.jpg
-win.dll
-linux.so
- ]]>
- </programlisting>
-
- <para>See the Java EE Connector Architecture 1.6 specification chapter 20 for further
- requirements.</para>
-
- </section>
-
- <section id="deployingrar">
- <title>Deploying resource adapters</title>
-
- <para>Resource adapters (.rar) are deployed by copying the resource adapter into the
- <code>deploy/</code> directory</para>
-
- <programlisting>
-cp example.rar ironjacamar-1.0.0/deploy
- </programlisting>
-
- <para>on a Un*x based system or</para>
-
- <programlisting>
-copy example.rar ironjacamar-1.0.0\deploy
- </programlisting>
-
- <para>on Windows.</para>
-
- <para>The resource adapter can configured and activated through a <code>META-INF/ironjacamar.xml</code>
- file in the archive. The format of the XML document is defined by the <code>ironjacamar_1_0.xsd</code>.</para>
-
- <para>A resource adapter can also be configured and activated through deployment of a <code>-ra.xml</code>
- file in the <code>deploy/</code> directory - f.ex. <code>deploy/example-ra.xml</code>. The format of the XML
- document is defined by the <code>resource-adapters_1_0.xsd</code> - f.ex</para>
-
- <programlisting>
-<![CDATA[
-<resource-adapters>
- <resource-adapter>
- <archive>example.rar</archive>
- <connection-definitions>
- <connection-definition jndi-name="java:/eis/example" class="com.example.ra.MCF"/>
- </connection-definitions>
- </resource-adapter>
-</resource-adapters>
-]]>
- </programlisting>
-
- <para>to bind the connection factory from <code>com.example.ra.MCF</code> under <code>java:/eis/example</code>.</para>
-
- <para>See the schema appendix for additional details about the format.</para>
-
- <para>Alternative the resource adapter deployments will be picked up by the <code>RAActivator</code>
- bean which bind a single connection factory under</para>
-
- <programlisting>
-java:/eis/<deploymentName>
- </programlisting>
-
- <para>- f.ex. <code>java:/eis/example</code>.</para>
-
- </section>
-
- <section id="deployingds">
- <title>Deploying datasources</title>
-
- <para>Datasources (-ds.xml) are deployed by copying the definition into the
- <code>deploy/</code> directory</para>
-
- <programlisting>
-cp postgres-xa-ds.xml ironjacamar-1.0.0/deploy
- </programlisting>
-
- <para>on a Un*x based system or</para>
-
- <programlisting>
-copy postgres-xa-ds.xml ironjacamar-1.0.0\deploy
- </programlisting>
-
- <para>on Windows.</para>
-
- <para>You will need to install the database JDBC driver into the <code>lib/</code> directory.</para>
-
- <para>You can find examples of datasource definitions in the <code>doc/datasources</code> directory
- and the schema itself <code>doc/datasources_1_0.xsd</code>.</para>
-
- </section>
-
-</chapter>
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/deployment.xml (from rev 108234, projects/jboss-jca/trunk/doc/userguide/en/modules/deployment.xml)
===================================================================
--- projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/deployment.xml (rev 0)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/deployment.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="deployment">
+ <title>Deployment</title>
+
+ <para>The IronJacamar distribution contains a deploy/ directory where all deployments
+ should be deployed to.</para>
+
+ <section id="packagingrequirements">
+ <title>Packaging requirements</title>
+
+ <para>A resource adapter archive is a structured Java Archive (JAR) file, which
+ bundles all Java classes in JAR files, and optionally contains metadata, resources and native
+ libraries.</para>
+
+ <para>A resource adapter archive name ends in the <code>.rar</code> extension.</para>
+
+ <para>An example of a resource adapter archive could look like</para>
+
+ <programlisting>
+<![CDATA[
+[jpederse at localhost]$ jar tf ra.rar
+META-INF/ra.xml
+readme.html
+ra.jar
+images/icon.jpg
+win.dll
+linux.so
+ ]]>
+ </programlisting>
+
+ <para>See the Java EE Connector Architecture 1.6 specification chapter 20 for further
+ requirements.</para>
+
+ </section>
+
+ <section id="deployingrar">
+ <title>Deploying resource adapters</title>
+
+ <para>Resource adapters (.rar) are deployed by copying the resource adapter into the
+ <code>deploy/</code> directory</para>
+
+ <programlisting>
+cp example.rar ironjacamar-1.0.0/deploy
+ </programlisting>
+
+ <para>on a Un*x based system or</para>
+
+ <programlisting>
+copy example.rar ironjacamar-1.0.0\deploy
+ </programlisting>
+
+ <para>on Windows.</para>
+
+ <para>The resource adapter can configured and activated through a <code>META-INF/ironjacamar.xml</code>
+ file in the archive. The format of the XML document is defined by the <code>ironjacamar_1_0.xsd</code>.</para>
+
+ <para>A resource adapter can also be configured and activated through deployment of a <code>-ra.xml</code>
+ file in the <code>deploy/</code> directory - f.ex. <code>deploy/example-ra.xml</code>. The format of the XML
+ document is defined by the <code>resource-adapters_1_0.xsd</code> - f.ex</para>
+
+ <programlisting>
+<![CDATA[
+<resource-adapters>
+ <resource-adapter>
+ <archive>example.rar</archive>
+ <connection-definitions>
+ <connection-definition jndi-name="java:/eis/example" class="com.example.ra.MCF"/>
+ </connection-definitions>
+ </resource-adapter>
+</resource-adapters>
+]]>
+ </programlisting>
+
+ <para>to bind the connection factory from <code>com.example.ra.MCF</code> under <code>java:/eis/example</code>.</para>
+
+ <para>See the schema appendix for additional details about the format.</para>
+
+ <para>Alternative the resource adapter deployments will be picked up by the <code>RAActivator</code>
+ bean which bind a single connection factory under</para>
+
+ <programlisting>
+java:/eis/<deploymentName>
+ </programlisting>
+
+ <para>- f.ex. <code>java:/eis/example</code>.</para>
+
+ </section>
+
+ <section id="deployingds">
+ <title>Deploying datasources</title>
+
+ <para>Datasources (-ds.xml) are deployed by copying the definition into the
+ <code>deploy/</code> directory</para>
+
+ <programlisting>
+cp postgres-xa-ds.xml ironjacamar-1.0.0/deploy
+ </programlisting>
+
+ <para>on a Un*x based system or</para>
+
+ <programlisting>
+copy postgres-xa-ds.xml ironjacamar-1.0.0\deploy
+ </programlisting>
+
+ <para>on Windows.</para>
+
+ <para>You will need to install the database JDBC driver into the <code>lib/</code> directory.</para>
+
+ <para>You can find examples of datasource definitions in the <code>doc/datasources</code> directory
+ and the schema itself <code>doc/datasources_1_0.xsd</code>.</para>
+
+ </section>
+
+</chapter>
Deleted: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/validator.xml
===================================================================
--- projects/jboss-jca/trunk/doc/userguide/en/modules/validator.xml 2010-09-20 18:23:34 UTC (rev 108232)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/validator.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -1,268 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="validator">
- <title>Validator</title>
-
- <section id="validator_introduction">
- <title>Introduction</title>
-
- <para>The IronJacamar container features a validator which checks resource adapter archives
- against the Java Connector Architecture (JCA) specification.</para>
-
- <para>The validator is doing a static analysis of the resource adapter classes
- and checks them against the rules defined in the validator.</para>
-
- <para>The validator is used in the deployer chain of the JCA container, and is available
- as a standalone tool and an Apache Ant too.</para>
- </section>
-
- <section id="validator_reports">
- <title>Reports</title>
-
- <para>The validator works by scanning the resource adapter in question and output
- a report which lists which rules have been violated.</para>
-
- <para>An example could be</para>
-
- <programlisting>
-Severity: ERROR
-Section: 19.4.2
-Description: A ResourceAdapter must implement a "public int hashCode()" method.
-Code: com.mycompany.myproject.ResourceAdapterImpl
-
-Severity: ERROR
-Section: 19.4.2
-Description: A ResourceAdapter must implement a "public boolean equals(Object)" method.
-Code: com.mycompany.myproject.ResourceAdapterImpl
- </programlisting>
-
- <para>which means that <code>com.mycompany.myproject.ResourceAdapterImpl</code> is missing
- an <code>equals</code> and <code>hashCode</code> implementation.</para>
-
- <table frame="all">
- <title>Validator report</title>
- <tgroup cols="2" align="left" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*"/>
- <colspec colname="c2" colwidth="3*"/>
- <thead>
- <row>
- <entry align="left">Key</entry>
- <entry align="left">Desciption</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>Severity</code></entry>
- <entry>
- Specifies the severity of the rule.
- <para>
- <itemizedlist spacing="compact">
- <listitem>
- ERROR: Critical error which must be fixed in order for the
- resource adapter to operate correctly.
- </listitem>
- <listitem>
- WARN: Error which should be fixed in order for the
- resource adapter to operate correctly.
- </listitem>
- </itemizedlist>
- </para>
- </entry>
- </row>
- <row>
- <entry><code>Section</code></entry>
- <entry>
- A reference to a section in the Java Connector Architecture specification
- where the requirement is defined.
- </entry>
- </row>
- <row>
- <entry><code>Descrption</code></entry>
- <entry>
- A short description of the rule.
- </entry>
- </row>
- <row>
- <entry><code>Code</code></entry>
- <entry>
- The class which triggered the rule.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- <section id="validator_standalone">
- <title>Running the standalone validator</title>
-
- <para>The validator can be run on the command line by</para>
-
- <programlisting>
-cd doc/validator
-./validator.sh <file>
- </programlisting>
-
- <para>The reports will be generated into the current directory under the name of
- <code><file>.log</code>.</para>
-
- </section>
-
- <section id="validator_ant">
- <title>Apache Ant integration</title>
-
- <para>The validator integrates with Apache Ant such that you can generate the reports directly from
- your build environment before deploying the resoruce adapter into the IronJacamar container.</para>
-
- <para>First you have to define the <code>taskdef</code> for the task</para>
-
- <programlisting>
-<taskdef name="validator"
- classname="org.jboss.jca.validator.ant.ValidatorTask"
- classpathref="ironjacamar.lib.path.id"/>
- </programlisting>
-
- <para>See the Apache Ant documentation for additional instructions on installation.</para>
-
- <section id="validator_ant_usage">
- <title>Usage</title>
-
- <programlisting>
-<validator rarFile="${myArchive.rar}" outputDir="${report.dir}"/>
- </programlisting>
-
- <table frame="all">
- <title>Apache Ant: validator</title>
- <tgroup cols="2" align="left" colsep="1" rowsep="1">
- <colspec colname="c1"/>
- <colspec colname="c2" colwidth="5*"/>
- <thead>
- <row>
- <entry align="left">Key</entry>
- <entry align="left">Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>rarFile</code></entry>
- <entry>
- The resource adapter file
- </entry>
- </row>
- <row>
- <entry><code>outputDir</code></entry>
- <entry>
- The directory where the reports should be generated
- </entry>
- </row>
- <row>
- <entry><code>classpath</code></entry>
- <entry>
- A classpath to resolve additional dependencies against
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- </section>
-
- <section id="validator_maven">
- <title>Apache Maven integration</title>
-
- <para>The validator integrates with Apache Maven such that you can generate the reports directly from
- your build environment before deploying the resoruce adapter into the IronJacamar container.</para>
-
- <para>To be able to use the validator plugin in your Maven project, you will have to add the following plugin declaration
- in the pom.xml of your project:
- <programlisting>
- <![CDATA[
-<build>
- <plugins>
- <plugin>
- <groupId>org.jboss.ironjacamar</groupId>
- <artifactId>ironjacamar-validator-maven</artifactId>
- <!-- The version of the plugin you want to use -->
- <version>1.0.0.Beta2</version>
- <executions>
- <execution>
- <goals>
- <goal>validate</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <!-- output directory-->
- <outputDir>.</outputDir>
-
- <!-- rar filename -->
- <rarFile>/path/to/myresourceadapter.rar</rarFile>
-
- <!-- optional classpath
- <classpath>
- <param>classpath1</param>
- <param>classpath2</param>
- </classpath>
- -->
- </configuration>
- </plugin>
- </plugins>
-</build>
- ]]>
- </programlisting>
- <note>By default, the validator-maven plugin is attached to the "package" phase of Maven.</note>
- </para>
-
- <para>See the Apache Maven documentation for additional instructions on installation.</para>
-
- <section id="validator_maven_usage">
- <title>Usage</title>
-
- <para>Once you have configured your project's pom.xml to include the validator-maven plugin,
- as explained earlier, you can generate the report by running the package goal on your project.</para>
-
- <programlisting>
-mvn clean package
- </programlisting>
-
- <table frame="all">
- <title>Apache Maven: validator</title>
- <tgroup cols="2" align="left" colsep="1" rowsep="1">
- <colspec colname="c1"/>
- <colspec colname="c2" colwidth="5*"/>
- <thead>
- <row>
- <entry align="left">Key</entry>
- <entry align="left">Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><code>rarFile</code></entry>
- <entry>
- The resource adapter file
- </entry>
- </row>
- <row>
- <entry><code>outputDir</code></entry>
- <entry>
- The directory where the reports should be generated
- </entry>
- </row>
- <row>
- <entry><code>classpath</code></entry>
- <entry>
- A classpath to resolve additional dependencies against
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- </section>
-
-</chapter>
Copied: projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/validator.xml (from rev 108234, projects/jboss-jca/trunk/doc/userguide/en/modules/validator.xml)
===================================================================
--- projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/validator.xml (rev 0)
+++ projects/jboss-jca/tags/IRONJACAMAR_1_0_0_BETA2/doc/userguide/en/modules/validator.xml 2010-09-21 13:02:00 UTC (rev 108240)
@@ -0,0 +1,268 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="validator">
+ <title>Validator</title>
+
+ <section id="validator_introduction">
+ <title>Introduction</title>
+
+ <para>The IronJacamar container features a validator which checks resource adapter archives
+ against the Java Connector Architecture (JCA) specification.</para>
+
+ <para>The validator is doing a static analysis of the resource adapter classes
+ and checks them against the rules defined in the validator.</para>
+
+ <para>The validator is used in the deployer chain of the JCA container, and is available
+ as a standalone tool, as an Apache Ant task and as a Apache Maven plugin too.</para>
+ </section>
+
+ <section id="validator_reports">
+ <title>Reports</title>
+
+ <para>The validator works by scanning the resource adapter in question and output
+ a report which lists which rules have been violated.</para>
+
+ <para>An example could be</para>
+
+ <programlisting>
+Severity: ERROR
+Section: 19.4.2
+Description: A ResourceAdapter must implement a "public int hashCode()" method.
+Code: com.mycompany.myproject.ResourceAdapterImpl
+
+Severity: ERROR
+Section: 19.4.2
+Description: A ResourceAdapter must implement a "public boolean equals(Object)" method.
+Code: com.mycompany.myproject.ResourceAdapterImpl
+ </programlisting>
+
+ <para>which means that <code>com.mycompany.myproject.ResourceAdapterImpl</code> is missing
+ an <code>equals</code> and <code>hashCode</code> implementation.</para>
+
+ <table frame="all">
+ <title>Validator report</title>
+ <tgroup cols="2" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1" colwidth="2*"/>
+ <colspec colname="c2" colwidth="3*"/>
+ <thead>
+ <row>
+ <entry align="left">Key</entry>
+ <entry align="left">Desciption</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>Severity</code></entry>
+ <entry>
+ Specifies the severity of the rule.
+ <para>
+ <itemizedlist spacing="compact">
+ <listitem>
+ ERROR: Critical error which must be fixed in order for the
+ resource adapter to operate correctly.
+ </listitem>
+ <listitem>
+ WARN: Error which should be fixed in order for the
+ resource adapter to operate correctly.
+ </listitem>
+ </itemizedlist>
+ </para>
+ </entry>
+ </row>
+ <row>
+ <entry><code>Section</code></entry>
+ <entry>
+ A reference to a section in the Java Connector Architecture specification
+ where the requirement is defined.
+ </entry>
+ </row>
+ <row>
+ <entry><code>Descrption</code></entry>
+ <entry>
+ A short description of the rule.
+ </entry>
+ </row>
+ <row>
+ <entry><code>Code</code></entry>
+ <entry>
+ The class which triggered the rule.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section id="validator_standalone">
+ <title>Running the standalone validator</title>
+
+ <para>The validator can be run on the command line by</para>
+
+ <programlisting>
+cd doc/validator
+./validator.sh <file>
+ </programlisting>
+
+ <para>The reports will be generated into the current directory under the name of
+ <code><file>.log</code>.</para>
+
+ </section>
+
+ <section id="validator_ant">
+ <title>Apache Ant integration</title>
+
+ <para>The validator integrates with Apache Ant such that you can generate the reports directly from
+ your build environment before deploying the resoruce adapter into the IronJacamar container.</para>
+
+ <para>First you have to define the <code>taskdef</code> for the task</para>
+
+ <programlisting>
+<taskdef name="validator"
+ classname="org.jboss.jca.validator.ant.ValidatorTask"
+ classpathref="ironjacamar.lib.path.id"/>
+ </programlisting>
+
+ <para>See the Apache Ant documentation for additional instructions on installation.</para>
+
+ <section id="validator_ant_usage">
+ <title>Usage</title>
+
+ <programlisting>
+<validator rarFile="${myArchive.rar}" outputDir="${report.dir}"/>
+ </programlisting>
+
+ <table frame="all">
+ <title>Apache Ant: validator</title>
+ <tgroup cols="2" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1"/>
+ <colspec colname="c2" colwidth="5*"/>
+ <thead>
+ <row>
+ <entry align="left">Key</entry>
+ <entry align="left">Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>rarFile</code></entry>
+ <entry>
+ The resource adapter file
+ </entry>
+ </row>
+ <row>
+ <entry><code>outputDir</code></entry>
+ <entry>
+ The directory where the reports should be generated
+ </entry>
+ </row>
+ <row>
+ <entry><code>classpath</code></entry>
+ <entry>
+ A classpath to resolve additional dependencies against
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ </section>
+
+ <section id="validator_maven">
+ <title>Apache Maven integration</title>
+
+ <para>The validator integrates with Apache Maven such that you can generate the reports directly from
+ your build environment before deploying the resoruce adapter into the IronJacamar container.</para>
+
+ <para>To be able to use the validator plugin in your Maven project, you will have to add the following plugin declaration
+ in the pom.xml of your project:
+ <programlisting>
+ <![CDATA[
+<build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.ironjacamar</groupId>
+ <artifactId>ironjacamar-validator-maven</artifactId>
+ <!-- The version of the plugin you want to use -->
+ <version>1.0.0.Beta2</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>validate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <!-- output directory-->
+ <outputDir>.</outputDir>
+
+ <!-- rar filename -->
+ <rarFile>/path/to/myresourceadapter.rar</rarFile>
+
+ <!-- optional classpath
+ <classpath>
+ <param>classpath1</param>
+ <param>classpath2</param>
+ </classpath>
+ -->
+ </configuration>
+ </plugin>
+ </plugins>
+</build>
+ ]]>
+ </programlisting>
+ <note>By default, the validator-maven plugin is attached to the "package" phase of Maven.</note>
+ </para>
+
+ <para>See the Apache Maven documentation for additional instructions on installation.</para>
+
+ <section id="validator_maven_usage">
+ <title>Usage</title>
+
+ <para>Once you have configured your project's pom.xml to include the validator-maven plugin,
+ as explained earlier, you can generate the report by running the package goal on your project.</para>
+
+ <programlisting>
+mvn clean package
+ </programlisting>
+
+ <table frame="all">
+ <title>Apache Maven: validator</title>
+ <tgroup cols="2" align="left" colsep="1" rowsep="1">
+ <colspec colname="c1"/>
+ <colspec colname="c2" colwidth="5*"/>
+ <thead>
+ <row>
+ <entry align="left">Key</entry>
+ <entry align="left">Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><code>rarFile</code></entry>
+ <entry>
+ The resource adapter file
+ </entry>
+ </row>
+ <row>
+ <entry><code>outputDir</code></entry>
+ <entry>
+ The directory where the reports should be generated
+ </entry>
+ </row>
+ <row>
+ <entry><code>classpath</code></entry>
+ <entry>
+ A classpath to resolve additional dependencies against
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ </section>
+
+</chapter>
More information about the jboss-cvs-commits
mailing list