oprsteny.com
Java – ANT script to build a project and sign the output archive
The ANT Script described in this article demonstrates how to build and compile a Java project, put it into signle JAR file and finally sign it using self-signed certificate.