why not simply
<subant target="build" failonerror="false">
<fileset dir="${basedir}">
<include name="**/build.xml"/>
<!-- subant task at the top level must not invoke its own build
file -->
<exclude name="build.xml"/>
</fileset>
</subant>
Jan
>-----Ursprüngliche Nachricht-----
>Von: Yves Willems [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 24. Oktober 2005 17:24
>An: 'Ant Users List'
>Betreff: avoid subant on 'non-ant' directories
>
>Hi all,
>
>
>
>I have setup a recursive build structure that runs OK, except
>for the 'non-ant' directories.
>
>I mean directories that don't have a build.xml file included.
>
>I got it running using exclude statements for each know
>non-ant directory and the 'failonerror=false" but this is poor
>solution regarding maintenance.
>
>
>
> <target name="build_generic" depends="init,
>compile_single, link_single">
>
> <!-- call the 'compile' target on the sub
>directories. -->
>
> <subant target="build" failonerror="false">
>
> <dirset dir="${basedir}">
>
> <include name="*"/>
>
> <exclude name="${OBJDIR}"/>
>
> <exclude name="CVS"/>
>
> <exclude name="public"/>
>
> </dirset>
>
> </subant>
>
> </target>
>
>
>
>
>
>Any tips for a better solution?
>
>
>
>Thanks in advance
>
>
>
>Yves
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]