| Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components | |
| Close Print View | |
| Deploying: Building an Application File From the Command Line |
|
To create a Deployment Profile
Deploying Application Files from the NetBeans IDE
To Deploy an Application File from the NetBeans IDE
Deploying Application Files from Enterprise Manager
Adding the Application Server Domain to Enterprise Manager
Deploying the Application File
Deploying Application Files from the Admin Console
To Deploy an Application File from the Admin Console
Deploying Application Files from the Command Line
Deploying from the asadmin Utility
Deploying from the asant Utility
You can generate an .ear file from the command line, without having the
NetBeans IDE running, by using the commandline codegen tool, which you must download
from the Repository using the Java CAPS Installer. When using this tool, you
have three options for specifying the build properties for the .ear file:
You can specify the properties in the build.properties file.
You can specify the properties explicitly when issuing the command.
You can specify properties globally in the build.properties file, and override them selectively by specifying those to be overridden when issuing the command.
Note - All relevant components must be saved in the NetBeans IDE prior to running commandline codegen.
By default, the resulting .ear file will be located in the following directory:
commandlinecodegen-install\localrepository\DEST\builds\ear-file\logicalhost\appserver
Note - You can configure the repository location using the command-line parameter commandline.rep.dir. The default
value is localrepository.
Commandline Codegen Properties
|
Note - Ensure there are no leading or trailing spaces in the values you enter for variables.
JAVA_HOME environmental variable on your computer to the location where JDK
version 1.5 is installed, for example:set JAVA_HOME=c:\Program Files\Java\jdk1.5.0_14
ANT_HOME environmental variable, for example:set ANT_HOME=c:\Program Files\Apache\apache-ant-1.6.5
Note - You must set this variable in the command window, in the directory in which you will be running the command.