Skip to content

Commit 56ac2ca

Browse files
committed
Update release notes regarding removal of Ant code and potential replacements
1 parent 8a6a43d commit 56ac2ca

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
@@ -664,9 +664,16 @@ It can be set back to the old pre Spock 2.0 behaviour by setting
664664
will be thrown at runtime.
665665

666666
// tag::breaking-change-removed-ant-support[]
667-
==== Ant support removed
668-
`SpecClassFileSelector` was removed, which was the only class that required `ant`.
669-
If you are still using spock with `ant`, then you can just copy the class from the spock source code into your build.
667+
==== Ant custom selector removed
668+
The class `SpecClassFileSelector` that could be used to only select actual Spock specification classes when testing
669+
and creating a test report was removed. It was the only class that required `ant` and was basically just a one-line
670+
forward to the `SpecClassFileFinder` which is still available.
671+
672+
If you are still using Spock with `ant`, then you can just copy the class from the spock source code into your build,
673+
or you simply use a `<scriptselector>` that does this forwarding as shown in the `spock-example` project.
674+
675+
Alternatively, you can also use a naming convention to find the classes that are actual specifications and not helper
676+
or base classes, or you live with a bit of wasted time and some meaningless entries in the test reports.
670677
// end::breaking-change-removed-ant-support[]
671678

672679
=== Misc

0 commit comments

Comments
 (0)