B weblogic.PlanGenerator Command-Line Reference
weblogic.PlanGenerator
utility, a Java-based deployment configuration tool intended for developers who want to export portions of a WebLogic Server deployment configuration into a deployment plan. Note:
See also Understanding the WebLogic Scripting Tool for information about performing deployment configuration operations using the WebLogic Scripting Tool (WLST).
This appendix includes the following sections:
Overview of weblogic.PlanGenerator
The weblogic.PlanGenerator
utility generates WebLogic Server deployment configuration files for an application or standalone module.
weblogic.PlanGenerator
provides two primary functions:
-
Exporting different categories of WebLogic Server deployment descriptor properties into empty (null) variables in a template deployment plan. You can optionally use an existing deployment plan as input to the configuration export session. Template plans are generally modified further before they can be used. See Exporting an Application for Deployment to New Environments.
-
Generating a simple initial deployment plan from a Java EE application. See Generating a Template Deployment Plan using weblogic.PlanGenerator.
By default, weblogic.PlanGenerator
writes an application's deployment plan to a file named plan.xml
in the application's root directory. If your application is not in an application root directory, weblogic.PlanGenerator
writes plan.xml
to <
your_dir
>/config/deployments/<
user
>/<
application_name
>/plan
where:
-
your_dir
is yourTEMP
directory if it is specified in the propertyjava.io.tmpdir
. If the propertyjava.io.tmpdir
is not specified,your_dir
is the WebLogic Server domain directory. -
user
is your user name. -
application
is the name of the application.
Required Environment for weblogic.PlanGenerator
Set up your environment to use the weblogic.PlanGenerator
utility.
Syntax for Invoking weblogic.PlanGenerator
java weblogic.PlanGenerator [Options] [filespec]
The filespec
can be either:
-
An absolute or relative path to an archive file
-
An absolute or relative path to an exploded archive directory
Oracle recommends:
-
That you store your applications in an installation root directory.
-
That you specify an application's installation root directory, with the
-root
option as described in Options when you issue a weblogic.PlanGenerator command.
In all cases, the application identified with the filespec
must contain valid Java EE deployment descriptor files.
If you do not specify an application root directory with the -root
option or a deployment plan path and name with the -plan
option, by default, weblogic.PlanGenerator
writes an application's deployment plan to a file named plan.xml
in the application's root directory. If it cannot locate an application root directory, weblogic.PlanGenerator
writes plan.xml
to <
your_dir
>/config/deployments/<
user
>/<
application_name
>/plan
where:
-
your_dir
is yourTEMP
directory if it is specified in the propertyjava.io.tmpdir
. If the propertyjava.io.tmpdir
is not specified,your_dir
is the WebLogic Server domain directory. -
user
is your user name. -
application
is the name of the application.
Options
The following table describes each weblogic.PlanGenerator
option.
Table B-1 weblogic.PlanGenerator Options
Option | Description |
---|---|
|
Enables debug mode. |
|
Identifies the path and name of the plan file to create for the configuration session. |
|
Existing deployment plan file to initialize from. If you use weblogic.PlanGenerator adds additional exported properties to the input plan; any exported properties that were already in the input plan are retained. |
|
Application root directory on which to perform the plan generation or export. |
|
Generates null variable definitions in a template deployment plan for different categories of deployment configuration property:
|
|
Specifies whether variable names created in the deployment plan can be used across all modules of an application, or only within a particular module. For example, a role assignment might be applied to an entire EAR, or to only a single Web application or other module within the EAR. By default, |
|
Exceptions occur instead of exiting. |
|
Creates a plan only for a module. |
|
Comma-separated specifications of libraries to merge. |
|
Location of directory of libraries to merge. |
Common weblogic.PlanGenerator Tasks
Examine common configuration and export tasks.
The following sections provide examples using weblogic.PlanGenerator
syntax.
Creating an Initial Deployment Plan in an Application's Root Directory
If you store your application using an installation root directory, and you specify the root directory with the -root
option, generated deployment plan files are automatically stored in the root directory's plan
subdirectory.
java weblogic.PlanGenerator -root /appRelease/MyApplication
In the above example, the plan.xml
file is automatically stored in /appRelease/MyApplication/plan.
Creating a New Deployment Plan Based on an Existing Plan
The following command uses an existing plan as input and generates a new plan in the /plan
subdirectory of the application root directory:
java weblogic.PlanGenerator -useplan /plans/MyApplication_template.xml -root /appRelease/MyApplication
Controlling the Components Exported to a Deployment Plan
You can use the -all
, -configurables
, -dependencies
, -declarations
, -dynamics
, and -none
options to specify the WebLogic Server deployment descriptor components that are exported to a template deployment plan. The following command exports all configurable properties to null variables in a template deployment plan:
java weblogic.PlanGenerator -root /appRelease/MyApplication -all
See Exporting an Application for Deployment to New Environments for more information about exporting a deployment configuration.