ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Attardi <...@attardi.net>
Subject Re: <exclude> not working for <javac> having multiple <src> tags
Date Wed, 07 Mar 2012 03:55:28 GMT
Have you tried reversing the order of the <include> and <exclude> elements?
Not sure if this makes a difference, but you're including everything under
mypackage/p1/** then excluding something under p1. Could it be a precedence
issue?

On Tue, Mar 6, 2012 at 9:20 PM, Surya Kiran <surya_kiran@calypso.com> wrote:

> Folks,
>
> I have a <javac> task as below
>
> <javac destdir="${build}"
>         classpath="xyz.jar"
>         debug="on">
>
>    <src path="${src}"/>
>    <src path="${src2}"/>
>
>    <include name="mypackage/p1/**"/>
>    <include name="mypackage/p2/**"/>
>
>    <exclude name="mypackage/p1/testpackage/**"/>
> </javac>
>
> But <exclude> is not working.
>
> Please let me know whats the problem or any other alternatives. Due to
> legacy structure we need to put multiple <src> tags in <javac>
>
> Please help. Thanks
>



-- 
*Joe Attardi*
joe@attardi.net

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message