If you're talking about an Ant script for building an application that uses Struts, there's really nothing special in it compared to an Ant script for any other
J2EE web application. You compile
Java sources, copy files around the filesystem, build a WAR archive, and that's it. The only difference with using Struts is that you copy struts.jar and other dependencies into your .war file's WEB-INF/lib, struts-*.tld files and the Struts configuration files to WEB-INF, and the application.properties file to WEB-INF/classes/resources.