The scripting library provides multiple script procedures to automate your application configurations. This topic provides usage information for scripts that export applications. You can run each script individually or combine procedures to create custom automation scripts for your environment.
This script exports a deployed application to a specific file.
Argument | Description |
---|---|
appName | Specifies the name of the application of interest. |
exportFileName | Specifies the name of the file to which the system exports the application. |
Syntax
AdminApplication.exportAnAppToFile(appName, exportFileName)
Example usage
AdminApplication.exportAnAppToFile("myApp", "exported.ear")
This script exports all deployed applications to a specific directory.
Argument | Description |
---|---|
exportDirectory | Specifies the fully qualified directory path to which the system exports each application. |
Syntax
AdminApplication.exportAllApplicationsToDir(exportDirectory)
Example usage
AdminApplication.exportAllApplicationsToDir("c:\export")
AdminApplication.exportAllApplicationsToDir("/export")
This script exports the data definition language (DDL) from the application to a specific directory.
Argument | Description |
---|---|
appName | Specifies the name of the application to export. |
exportDirectory | Specifies the 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
AdminApplication.exportAnAppDDLToDir("myApp", "c:\export", "")
AdminApplication.exportAnAppDDLToDir("myApp", "/export", "")