Ashcroft is configured through a set of JVM parameters. They are as follows:
JVM parameter |
Value |
Effect |
|---|---|---|
java.security.manager |
com.thoughtworks.ashcroft.runtime.JohnAshcroft |
Enables Ashcroft |
com.thoughtworks.ashcroft.runtime.forgiving |
true |
Tells Ashcroft not to throw CantDoThat on violations. If you specify this you should typically also specify |
com.thoughtworks.ashcroft.runtime.logging |
stdout |
Writes violations to standard out |
com.thoughtworks.ashcroft.runtime.logging |
stderr |
Writes violations to standard err |
com.thoughtworks.ashcroft.runtime.logging |
anything else |
Writes violations to a file with that name |
Setting the JVM paramters is done by specifying something like -Dparameter=value. See the FAQ for details on how to do this in a particular development environment.
