ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Mularien <>
Subject Re: looping in ant
Date Fri, 25 Jan 2002 21:45:22 GMT
Got you beat --- I simplified the script for posting, in fact ours does
that exact thing you're talking about. Here is the line you need:

for e.g.:

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

   [script omitted for readability]
                      project name

That should invoke the "clean" target on each of the files you specify.


Rubun Tang wrote:
> Hi Peter,
> This is exactly what I want to do - a master build file called
> sub-components' build file in subdirectory.
> I've got the script working. However, instead of calling a target statically
> in the sub-component build.xml (in this case "build-one-project"), I want to
> make this as a property with various property. To be precise, it's nice to
> have something like this;
> <target name="clean">
>                 <antcall target="subbuild">
>                         <param name="action" value="clean"></param>
>                 </antcall>
> </target>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message