I think you may be misunderstanding what "includes" means here. The
"includes" attribute is used against the source directory to decide
which files to include in the compilation. In other words, "includes"
functions as a filter on the set of files from your srcDir. If you add
something to that
Includes acts as a filter, not as a list of files.
It is more often uses as "mypackage/*.java" or "mypackage/**/*.java" -
i.e. a filter.
To do what you want, you would need to use the task with a
with the condition.
Something like
Hi all Ant users,
we have been using Ant in our projects for 2+ years now. We have
recently discovered a potential dangerous error (or we believe it's an
error at least).
When using Ant to compile our package with an explicit includes
statement, Ant ignores the fact that the file can't be found