ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yves Willems" <ywill...@maia-scientific.com>
Subject RE: avoid subant on 'non-ant' directories
Date Mon, 24 Oct 2005 15:38:29 GMT
Of course! Thanks a lot Jan.

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Monday, October 24, 2005 5:31 PM
To: user@ant.apache.org
Subject: AW: avoid subant on 'non-ant' directories

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:ywillems@maia-scientific.com] 
>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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message