Tasks such as Compile, Test and Resources offer the includes and excludes properties, which specify a set of file-name patterns (eg org/gradle/*).
Javadoc offers the options.subPackages and exclude properties which specifies a set of package names (eg org.gradle).
We should offer a consistent mechanism for all tasks. For example:
- Replace javadoc's options.subPackages and exclude package name properties with include and exclude pattern properties
- Rename javadoc's options.subPackage and exclude properties to includePackages and excludePackages, and add include and exclude
- Change Compile, Test, Resources, etc to use package names instead of patterns