----- 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