Implementation of DumpMojo, port from ant implementation.