Thanks for the reply. I ended up figuring it out. Turns out because the
package was com/mycompany/mypackage and the dest dir is /classes, it wasn't
matching up classes/com/mycompany/mypackage with the src dir..probably
because they were not both pointing at the root dir. I got it to work.
Thanks.
> -----Original Message-----
> From: Nico Seessle [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 20, 2001 2:09 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Always builds ALL files and not those that changed.
>
>
> ----- Original Message -----
> From: "Duffey, Kevin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 20, 2001 2:53 AM
> Subject: RE: Always builds ALL files and not those that changed.
>
>
> > I have to ammend my this post..
> >
> > The problem I am seeing I think I know why its doing it..i
> just don't know
> > how to fix it. We have a source tree. I have a few build
> scripts. One
> build
> > script compiles a sub-tree of the source. For example,
> > com.mycompany.myproject is one of many subtrees below the
> mycompany tree.
> > Our dir is /src/com/mycompany/* where * = myproject,
> myotherproject, and
> so
> > on. I want to build JUST the files under myproject, to speed up
> compilation.
>
> Generally you should use something like
>
> <javac srcdir="src" destdir"classes">
> <include name="com/mycompany/mypackage/**"/>
> </javac>
>
> Including part of the package-structure into srcdir results in Ant
> recompiling everything every time (one of your problems).
>
> Note however that you can not rely on the include-statement
> in all cases. If
> javac thinks it should recompile other files as well it will
> do so and Ant
> can not do anything against this. If there are no
> dependencies between your
> packages and/or they are compiled in the "right" order it
> should work for
> you.
>
> Nico
>
>