sanders 01/04/30 14:17:46
Modified: docs integration.html
xdocs integration.xml
Log:
Updated to use CDATA sections
Revision Changes Path
1.2 +12 -5 jakarta-alexandria/docs/integration.html
Index: integration.html
===================================================================
RCS file: /home/cvs/jakarta-alexandria/docs/integration.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- integration.html 2001/04/30 20:50:52 1.1
+++ integration.html 2001/04/30 21:17:38 1.2
@@ -101,9 +101,11 @@
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
- <build buildfile="build.xml" target="main"
classpath="lib/mylib.jar">
- <arg name="build.dir" value="build"/>
- </build>
+
+ <build buildfile="build.xml" target="main"
classpath="lib/mylib.jar">
+ <arg name="build.dir" value="build"/>
+ </build>
+
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
@@ -136,7 +138,7 @@
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="#ffffff"><pre> <property name="test.format"
value="plain"/> </pre></td>
+ <td bgcolor="#ffffff"><pre> <property name="test.format"
value="plain"/> </pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
@@ -157,6 +159,7 @@
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
+
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement location="${build.tests}" />
@@ -171,7 +174,9 @@
<exclude name="**/AllTests.java" />
</fileset>
</batchtest>
- </junit> </pre></td>
+ </junit>
+
+ </pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
@@ -192,9 +197,11 @@
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
+
<test buildfile="build.xml" target="test"
classpath="lib/mylib.jar">
<arg name="test.format" value="xml"/>
</test>
+
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
1.2 +29 -23 jakarta-alexandria/xdocs/integration.xml
Index: integration.xml
===================================================================
RCS file: /home/cvs/jakarta-alexandria/xdocs/integration.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- integration.xml 2001/04/30 20:50:06 1.1
+++ integration.xml 2001/04/30 21:17:44 1.2
@@ -17,9 +17,11 @@
<p>Alexandria provides support for build projects which use Ant as there build
tool. To enable Alexandria to build a module you add the build taga to the global.xml
file.</p>
<p>Alexandria runs the build in a seperate JVM to avoid clashes the source
libraries ant those used by Alexandria. This means that the classpath attribute is
used to specify classes that will be needed byt the module. Ant properties can also be
passed to the build file using the arg tag this allows properties such as the output
dir for the build to be changed from there defaults.</p>
<source>
- <build buildfile="build.xml" target="main" classpath="lib/mylib.jar">
- <arg name="build.dir" value="build"/>
- </build>
+ <![CDATA[
+ <build buildfile="build.xml" target="main" classpath="lib/mylib.jar">
+ <arg name="build.dir" value="build"/>
+ </build>
+ ]]>
</source>
</section>
@@ -27,32 +29,36 @@
<p>Alexandria provides support for analyzing the output from the JUnit Ant task.
JUnit is a java based framework for writing unit tests for java applications.</p>
<p>To anable Alexandria to use the output from the JUnit task it needs to be
formatted using the xml formatter. The following example shows an example of this in
the JUnit task.</p>
- <source> <property name="test.format" value="plain"/> </source>
+ <source> <![CDATA[<property name="test.format" value="plain"/> ]]> </source>
<p>If you wish to allow developers to run tests and provide them with plain text
output, using an variable which defaults to plain and can be overriden with xml via
the -D option is recommended.</p>
<source>
- <junit printsummary="yes" haltonfailure="yes">
- <classpath>
- <pathelement location="${build.tests}" />
- <pathelement path="${java.class.path}" />
- </classpath>
-
- <formatter type="${test.format}" />
-
- <batchtest fork="yes">
- <fileset dir="${src.tests}">
- <include name="**/*Test*.java" />
- <exclude name="**/AllTests.java" />
- </fileset>
- </batchtest>
- </junit> </source>
-
+ <![CDATA[
+ <junit printsummary="yes" haltonfailure="yes">
+ <classpath>
+ <pathelement location="${build.tests}" />
+ <pathelement path="${java.class.path}" />
+ </classpath>
+
+ <formatter type="${test.format}" />
+
+ <batchtest fork="yes">
+ <fileset dir="${src.tests}">
+ <include name="**/*Test*.java" />
+ <exclude name="**/AllTests.java" />
+ </fileset>
+ </batchtest>
+ </junit>
+ ]]>
+ </source>
<p>Test targets are included in the <strong>global.xml</strong> file using the test
tag. The test tag has two attributes buildfile and target. Buildfile is the name of
the Ant buildfile which contains the test target and target is the name of the Ant
target to be run. Test optionally takes a classpath (Test are always run in a seperate
JVM to avoid class version problems) and arg tags that are used to pass Ant property
values into Ant.</p>
<source>
- <test buildfile="build.xml" target="test" classpath="lib/mylib.jar">
- <arg name="test.format" value="xml"/>
- </test>
+ <![CDATA[
+ <test buildfile="build.xml" target="test" classpath="lib/mylib.jar">
+ <arg name="test.format" value="xml"/>
+ </test>
+ ]]>
</source>
</section>
</body>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]