Skip to content

Commit 4a4001e

Browse files
committed
Update release notes regarding removal of Ant code and potential replacements
1 parent 7a17113 commit 4a4001e

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

docs/release_notes.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)