Application export scripts
The scripting library provides multiple script procedures to automate the application configurations. This page provides usage information for scripts that export applications. We can run each script individually or combine procedures to create custom automation scripts for the environment.
Each application management script procedure is located in...
$WAS_HOME/scriptLibraries/application/V70Use the following script procedures to export applications:
exportAnAppToFile
This script exports a deployed application to a specific file. To run the script, specify the application name and export file name arguments, as defined in the following table:
Table 1. exportAnAppToFile argument descriptions
Argument Description appName Name of the application of interest. exportFileName Name of the file to which the system exports the application.
Syntax
AdminApplication.exportAnAppToFile(appName, exportFileName)Example usage
AdminApplication.exportAnAppToFile("myApp", "exported.ear")
exportAllApplicationsToDir
This script exports all deployed applications to a specific directory. To run the script, specify the application name and export file name arguments, as defined in the following table:
Table 2. exportAllApplicationsToDir argument description
Argument Description exportDirectory Fully qualified directory path to which the system exports each application.
Syntax
AdminApplication.exportAllApplicationsToDir(exportDirectory)Example usage
(Windows)
AdminApplication.exportAllApplicationsToDir("c:\export")
[AIX] [Solaris][Linux] [HP-UX]
AdminApplication.exportAllApplicationsToDir("/export")
exportAnAppDDLToDir
This script exports the data definition language (DDL) from the application to a specific directory. To run the script, specify the application name, export directory, and options arguments, as defined in the following table:
Table 3. exportAnAppDDLToDir argument descriptions
Argument Description appName Name of the application to export. exportDirectory Fully qualified directory path to which the system exports each application. options Optionally specifies additional export options.
Syntax
AdminApplication.exportAnAppDDLToDir(appName, exportFileName, options)Example usage
(Windows)
AdminApplication.exportAnAppDDLToDir("myApp", "c:\export", "")
[AIX] [Solaris][Linux] [HP-UX]
AdminApplication.exportAnAppDDLToDir("myApp", "/export", "")
Related tasks
Use the script library to automate the application serving environment
Automating application configurations using the scripting library
Application administration scripts
Related
Application installation and uninstallation scripts
Application query scripts
Application update scripts
Application deployment configuration scripts