...
It is imperative that you run JUnit in a forked JVM, otherwise the jvmarg will be ignored, and Ashcroft will not be activated. For maximum speed, we strongly recommend you also specify forkmode="once" (requires Ant 1.6.2 or higher).
Also see Ashcroft Configuration for a full list of configuration options.
