You need Ant and Groovy on your machine to run this project.
Clone repository using following command:
https://github.com/wookieJ/metalink-groovy.git
You can customize starting path and path where xml should be written by setting file and fileset attributes. To generate metalinks to xml file, use following command:
ant metalink