Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Enabling Ashcroft from within Ant is easy. You probably already have a target running a <junit> task somewhere in your build script. (If not you're in deep trouble). Ok, just amend it a little bit like this:

Code Block
xmlxml
borderStylesolid
titlebuild.xml
xml
<junit fork="yes">
  <jvmarg value="-Djava.security.manager=com.thoughtworks.ashcroft.runtime.JohnAshcroft"/>
  <jvmarg value="-Dcom.thoughtworks.ashcroft.runtime.forgiving=true"/>
  <jvmarg value="-Dcom.thoughtworks.ashcroft.runtime.logging=report.txt"/>
  <classpath>
    <!-- In this classpath you must include the ashcroft jar file -->
  </classpath>
</junit>

...