ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "WATKINS, Andy, FM" <Andy.WATK...@rbos.com>
Subject How to manage without rules
Date Fri, 12 Oct 2001 16:43:42 GMT
In make you have rules, not so in ant

I have a target as follows

  <target name="project1_test" depends="">
    <junit printsummary="no" haltonfailure="yes" fork="yes" timeout="60000">
      <jvmarg value="-Dlog.dir=project1" />

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

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

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




The problem is that I have 10 different projects, that all need this
sort of target, but with different directories.

In make, I would have a target called "*.test" and use $@ to pull out the
value


********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
********************************************************************

Mime
View raw message