ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim White <>
Subject Re: How to manage without rules
Date Fri, 12 Oct 2001 17:25:36 GMT
At 05:43 PM 10/12/2001 +0100, WATKINS, Andy, FM wrote:
>In make you have rules, not so in ant

In ant there are properties and targets.

   <target name="testall">
       <antcall target="test">
          <param name="project" value="project1"/>
       <antcall target="test">
          <param name="project" value="project2"/>

   <target name="test">
     <junit printsummary="no" haltonfailure="yes" fork="yes" timeout="60000">
       <jvmarg value="-Dlog.dir=${project}" />

         <path refid="localclasses"/>
         <path refid="classpath"/>

       <formatter usefile="false" type="plain" />

       <batchtest fork="yes">
         <fileset dir="${rbsfm}/${project}/classes"
includes="**/*$$Test.class" />
     <echo message="Common tests completed OK" />

Note also that there are external XML entities for including common 
properties and targets.

     <!DOCTYPE project [
       <!ENTITY IncludeCommon SYSTEM "../common.xml">




James P. White                 Netscape DevEdge Champion for IFC
IFC Exchange   *   Insanely great Java   * Pagesmiths' home is

View raw message