ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: if and unless attributes for all Tasks
Date Tue, 22 May 2001 07:24:26 GMT
OK, here is my take, using <anton> which doesn't exist right now but
has been promised for Ant2 (and could very well be there in Ant1 as

As far as I understand it, you want to run a common set of targets for
all modules that have been checked out - which means, if there is a
build file, use it, if not, skip it.

How about this?

<target name="foreach">
  <anton target="${target}">
    <fileset dir=".">
      <include name="**/build.xml" />

<target name="clean">
  <antcall target="foreach">
    <param name="target" value="clean"/>

<target name="nothing">
  <antcall target="foreach">
    <param name="target" value="nothing"/>


View raw message