The application server includes a command-line utility called asant for invoking Apache Ant.
To deploy an application file from the asant utility, use the sun-appserver-deploy task. The following example is a simple application deployment script. The file and passwordfile attributes are shown. Other attributes are implied.
<sun-appserver-deploy file="${assemble}/dpFTQFprjFTQF.ear" passwordfile="${passwordfile}" /> |
For detailed information about the asant utility, see the Sun Java System Application Server 9.1 Developer's Guide.