There are only Maven and Gradle plugins for build-time bytecode enhancement. Please support ant task. There is org.hibernate.tool.enhance.EnhancementTask but its functionality is very limited. Attached is my version of EnhancementTask.java which supports the same functionality as Maven/Gradle plugins.
Yes, you can assume it is a drop in replacement, because the current version is almost like a hack, not usable at all, not documented at all. I suspect anyone using it, but if someone does, he would start seeing an proper warning message so he would know he should tweak his ant task script a bit.
My contribution is for hibernate 5.2.10.
@Luis Barreiro reviewed. Thank you.
Fixed in master.
Please supports "includes" and "excludes" like jar task does: