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_ki...@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*
j...@attardi.net

Reply via email to