You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by sa...@apache.org on 2001/04/30 23:17:47 UTC

cvs commit: jakarta-alexandria/xdocs integration.xml

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>
  -  &lt;build buildfile=&quot;build.xml&quot; target=&quot;main&quot; classpath=&quot;lib/mylib.jar&quot;&gt;
  -    &lt;arg name=&quot;build.dir&quot; value=&quot;build&quot;/&gt;
  -  &lt;/build&gt;
  +  
  +    &lt;build buildfile=&quot;build.xml&quot; target=&quot;main&quot; classpath=&quot;lib/mylib.jar&quot;&gt;
  +      &lt;arg name=&quot;build.dir&quot; value=&quot;build&quot;/&gt;
  +    &lt;/build&gt;  
  +   
   </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> &lt;property name=&quot;test.format&quot; value=&quot;plain&quot;/&gt; </pre></td>
  +      <td bgcolor="#ffffff"><pre> &lt;property name=&quot;test.format&quot; value=&quot;plain&quot;/&gt;   </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>
  +  
       &lt;junit printsummary=&quot;yes&quot; haltonfailure=&quot;yes&quot;&gt;
         &lt;classpath&gt;
           &lt;pathelement location=&quot;${build.tests}&quot; /&gt;
  @@ -171,7 +174,9 @@
             &lt;exclude name=&quot;**/AllTests.java&quot; /&gt;
           &lt;/fileset&gt;
         &lt;/batchtest&gt;
  -    &lt;/junit&gt; </pre></td>
  +    &lt;/junit&gt; 
  +   
  +  </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>
  +  
     &lt;test buildfile=&quot;build.xml&quot; target=&quot;test&quot; classpath=&quot;lib/mylib.jar&quot;&gt;
       &lt;arg name=&quot;test.format&quot; value=&quot;xml&quot;/&gt;
     &lt;/test&gt;
  +   
   </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>
  -  &lt;build buildfile="build.xml" target="main" classpath="lib/mylib.jar"&gt;
  -    &lt;arg name="build.dir" value="build"/&gt;
  -  &lt;/build&gt;
  +  <![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> &lt;property name="test.format" value="plain"/&gt; </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>
  -    &lt;junit printsummary="yes" haltonfailure="yes"&gt;
  -      &lt;classpath&gt;
  -        &lt;pathelement location="${build.tests}" /&gt;
  -        &lt;pathelement path="${java.class.path}" /&gt;
  -      &lt;/classpath&gt;
  -
  -      &lt;formatter type="${test.format}" /&gt;
  -
  -      &lt;batchtest fork="yes"&gt;
  -        &lt;fileset dir="${src.tests}"&gt;
  -          &lt;include name="**/*Test*.java" /&gt;
  -          &lt;exclude name="**/AllTests.java" /&gt;
  -        &lt;/fileset&gt;
  -      &lt;/batchtest&gt;
  -    &lt;/junit&gt; </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>
  -  &lt;test buildfile="build.xml" target="test" classpath="lib/mylib.jar"&gt;
  -    &lt;arg name="test.format" value="xml"/&gt;
  -  &lt;/test&gt;
  +  <![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: alexandria-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: alexandria-dev-help@jakarta.apache.org