ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: problem with Excludes in the Ant.
Date Tue, 24 Nov 2009 18:36:21 GMT
You might have better luck if you use the <include> and <exclude> as
subclauses. It makes it easier to see what you're doing:

<copy todir="${TEMP_FOLDER}"
    overwrite="true"
    failonerror="true">
    <fileset dir="${source}>
        <include name="**/*.java"/>
        <exclude name="**/com/sdn/epg/cafe/view/oig/**"/>
        <exclude name="**/xpush/**"/>
        [....]
     </fileset>
</copy>

You realize that excludes actually override your includes in this
manner? That is, *.java files in **/xpush/**" will be excluded. Is
this what you want?

On Mon, Nov 23, 2009 at 7:55 AM, madhusudhanv <madhusudhanv@nds.com> wrote:
>
> Hi All,
>
> I am using the copy task like below:
>
> <copy todir="${TEMP_FOLDER}" overwrite="true" failonerror="true" >
> <fileset dir="${source}" includes="**/*.java" excludes="${exclude}" >
> </fileset>
> </copy>
>
> The excludes contain all the exclude list like this:
> **/com/sdn/epg/cafe/view/oig/** **/xpush/** **/pnp/** **/pdl/** **/oig/**
> **/mosaic/** **/promo/** **/multi/** **/teletext/**
> **/com/sdn/epg/cafe/view/** **/com/sdn/epg/cafe/handler/settings/**
> **/com/sdn/epg/cafe/handler/fti/** **/purchaserecord/** **/advancesearch/**
> **/vod/**
>
> But the package **/com/sdn/epg/cafe/view/oig/** doesnot get excluded ....
> All other excludes are happening properly.
>
> Can anyone please tell me why this is happening. And any solution for this
> problem is appreciated.
>
> Thanks in advance.
>
> Regards,
> Madhu
> --
> View this message in context: http://old.nabble.com/problem-with-Excludes-in-the-Ant.-tp26477569p26477569.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
David Weintraub
qazwart@gmail.com

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


Mime
View raw message