[jboss-cvs] JBossAS SVN: r103326 - projects/jboss-jca/trunk/doc/userguide/en/modules.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Mar 31 09:31:55 EDT 2010
Author: jesper.pedersen
Date: 2010-03-31 09:31:55 -0400 (Wed, 31 Mar 2010)
New Revision: 103326
Modified:
projects/jboss-jca/trunk/doc/userguide/en/modules/validator.xml
Log:
document the validator ant task
Modified: projects/jboss-jca/trunk/doc/userguide/en/modules/validator.xml
===================================================================
--- projects/jboss-jca/trunk/doc/userguide/en/modules/validator.xml 2010-03-31 13:31:13 UTC (rev 103325)
+++ projects/jboss-jca/trunk/doc/userguide/en/modules/validator.xml 2010-03-31 13:31:55 UTC (rev 103326)
@@ -8,11 +8,11 @@
<para>The JBoss JCA container features a validator which checks resource adapter archives
against the Java Connector Architecture (JCA) specification.</para>
- <para>The validator works by doing a static analysis of the resource adapter classes
+ <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 too.</para>
+ as a standalone tool and an Apache Ant too.</para>
</section>
<section id="validator_reports">
@@ -93,7 +93,7 @@
</section>
- <section id="validator_running">
+ <section id="validator_standalone">
<title>Running the standalone validator</title>
<para>The validator can be run on the command line by</para>
@@ -107,5 +107,65 @@
</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 JBoss JCA 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="jbossjca.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>
+
</chapter>
More information about the jboss-cvs-commits
mailing list