Create a file with a .bat file extension. The
contents of this file should be:
set path=WebSphere_Studio_Install_Directory\eclipse\jre\bin;%path%
set classpath=WebSphere_Studio_Install_Directory\eclipse\startup.jar;
WebSphere_Studio_Install_Directory\wstools\eclipse\plugins\
com.ibm.etools.egl.vagenmigration_5.1.2\runtime\eglMigration.jar;
cd WebSphere_Studio_Install_Directory
java com.ibm.etools.egl.internal.vagenmigration.batch.VGMIG
-importFile Path\ExternalSourceFormatFile.esf
-eglFile Path\EGLFile.egl
-data Path\workspace
-package packageName
-overwrite
>Path\LogName.log
Repeat the java statement once for each External Source Format
file you want to migrate.
- Note:
-
- The set classpath must be written so that it is all on
one line. The java statement must also be written
so that it is all on one line.
- The --overwrite parameter is optional. This
parameter tells the migration tool whether or not to overwrite an existing EGL
file in the specified directory with the specified name.
- WebSphere_Studio_Install_Directory is the drive and directory
in which you installed WebSphere Studio.
- Path\ExternalSourceFormatFile refers to the drive, directory,
and file name of the External Source Format file you want to migrate.
(For example, d:\temp\VAGenFiles\PROG1.esf.)
-
Path\EGLFile.egl refers to the drive, directory, and file
name of the EGL file you want to create. The directory must include the
workspace, EGL source folder, and package where you want to place the EGL
source file. (For example,
d:\myworkspace\MyProject\EGLSource\my\pkg\prog1.egl.)
EGLFile.egl is used in the same way as the EGL File Name field you
specify when you use the Import VAGen External Source Format File
wizard. See Overview of Single File Migration for information about how migration tool uses the
Separate parts into EGL files preference and the type of parts in
the External Source Format file to determine what files to create during
migration in single file mode.
-
Path\workspace is the drive and directory for your
workspace. (For example, d:\workspaces\myworkspace) If you do not
specify the -data option, anything you specified in the VAGen
Migration Syntax Preferences is ignored and the migration tool uses the
default VAGen Migration Syntax Preferences. If you want to specify
VAGen Migration Syntax Preferences, you must specify the -data
option and point to the workspace in which you set the preferences.
-
packageName is the name of the package with which you want to
associate the EGL file. (For example, my.pkg.) The
package name is also used in the package statement of the .egl files
that the migration tool creates.
-
Path\LogName refers to the location and file name of the log file
you want to create for the migration of the corresponding External Source
Format file. Sending your migration messages to a log file is also
optional, but it is highly recommended.
For example, the java command might look something like this (though it
should be all on one line):
java com.ibm.etools.egl.internal.vagenmigration.batch.VGMIG
-importFile d:\temp\VAGenFiles\prog1.esf
-eglFile d:\workspaces\myworkspace\MyEGLProject\EGLSource\my\pkg\prog1.egl
-data d:\workspaces\myworkspace
-package my.pkg -overwrite >d:\temp\EGLLogs\prog1.log