Deploying Java CAPS Projects

Deploying Application Files from the Command Line

You can deploy a Java CAPS Repository-based project to Sun Java System Application Server from the following command-line utilities:

These instructions assume that you have built an application file. See Building an Application File.

Deploying from the asadmin Utility

The application server includes a command-line utility called asadmin for performing administrative tasks.

To deploy an application file from the asadmin utility, use the deploy command. For example:


asadmin deploy C:\JavaCAPS6\dpFTQFprjFTQF.ear
Command deploy executed successfully

For detailed information about the asadmin utility, see the Sun Java System Application Server 9.1 Administration Guide.

Deploying from the asant Utility

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.