ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From heights08 <>
Subject conditional exclude
Date Sat, 06 Sep 2008 07:08:20 GMT

Hello. I need to apply two exclude conditions, one mandatory, one conditional
based on properties value. I wish I could just use "if" with an "exclude"
tag. Alas, I've tried many other things. This is the current non-working

    <selector id="selector.exclusions.conditional" >
        <filename name="theme/foo/**/*"  />
        <filename name="theme/bar/**/*" />

    <selector id="selector.exclusions.all" >
        <filename name="script/**/*"  />
        <filename name="META_INF/**/*" />

<target name="resources" depends="init" description="Build resources">
        <copy todir="${resources.dir}" includeEmptyDirs="false">
            <fileset dir="${resource.dir}">
                        <selector refid="selector.exclusions.conditional"
                        <selector refid="selector.exclusions.all"/>
                    <filename name="**/*"/>

C:\dev\vcm\main\vui-vcm\build.xml:275: Only one selector is allowed within
the <selector> tag

View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message