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