Missing source directories

I've seen builds fail because the Jacoco ant report task expects source directories to exist, but I've got a project which doesn't follow the normal gradle convention of src/main/java. The missing directory is passed to the ant task which then fails. The change just checks if the folder exists before adding it the the ant task's sourcefiles.