File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -668,9 +668,16 @@ It can be set back to the old pre Spock 2.0 behaviour by setting
668668 will be thrown at runtime.
669669
670670// tag::breaking-change-removed-ant-support[]
671- ==== Ant support removed
672- `SpecClassFileSelector` was removed, which was the only class that required `ant`.
673- If you are still using spock with `ant`, then you can just copy the class from the spock source code into your build.
671+ ==== Ant custom selector removed
672+ The class `SpecClassFileSelector` that could be used to only select actual Spock specification classes when testing
673+ and creating a test report was removed. It was the only class that required `ant` and was basically just a one-line
674+ forward to the `SpecClassFileFinder` which is still available.
675+
676+ If you are still using Spock with `ant`, then you can just copy the class from the spock source code into your build,
677+ or you simply use a `<scriptselector>` that does this forwarding as shown in the `spock-example` project.
678+
679+ Alternatively, you can also use a naming convention to find the classes that are actual specifications and not helper
680+ or base classes, or you live with a bit of wasted time and some meaningless entries in the test reports.
674681// end::breaking-change-removed-ant-support[]
675682
676683=== Misc
You can’t perform that action at this time.
0 commit comments