ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "WATKINS, Andy, FM" <>
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" />

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

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

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

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

      Visit our Internet site at

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.

View raw message