This ant task clears the log of running instance of JBoss.
That is achieved by restarting the logging service.
Copy the files e.g. to the lib dir.
<import file="lib/clear-jboss-log.xml" />
<antcall target="clear-jboss-logs" />
Currently not configurable, works only for localhost. Feel free to add configurability