I tried that before, and it failed. I attempted to compile classes in the
directories I wanted to exclude (it failed because they have dependencies
which I did not include in the classpath)

Here is the task I used:

javac srcdir="${root}"
           destdir="${classes}"
           debug="on"
           debuglevel="lines,source"
           source="1.5"
           includes="org/domain/dir1/**, org/aemf/dir2/**"
           excludes="org/domain/dir1/app2/**, org/domain/dir1/app3/**"
           classpath= "${compile.comm}; ${compile.db4.3}; ${compile.swing};
${compile.xml}"  >
</javac>

On 3/22/07, Matt Benson <[EMAIL PROTECTED]> wrote:

You've excluded the directories, but not their
contents.  Append ** to each.

-Matt

--- dtown <[EMAIL PROTECTED]> wrote:

> I can't seem to figure out what I am doing wrong.
> The following is my javac
> task:
>
> <javac srcdir="${root}"
>            destdir="${classes}"
>            debug="on"
>            debuglevel="lines,source"
>            source="1.5"
>            includes="org/domain/dir1/,
> org/aemf/dir2/"
>            excludes="org/domain/dir1/app2/,
> org/domain/dir1/app3/"
>            classpath= "${compile.comm};
> ${compile.db4.3}; ${compile.swing};
> ${compile.xml}"  >
>     </javac>
>
>
> I basically want to exclude everything within the
> dir1 & dir2
> (subdirectories included), and exclude the
> directories dir1/app2 & dir2/app3
> (and all of their subdirectories). The include works
> as expected, but the
> directories are not excluded.
>
> Any ideas?
>
> thanks!
>





____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to