16. Managing and Deploying Applications : How You Can Import and Export Applications and Components : Export an Individual Component : Command Line Method of Exporting Components to a File
 
Share this page                  
Command Line Method of Exporting Components to a File
To export a component to a file, start the ExportComp utility from the command line:
w4gldev backupapp out database application file
          -ccomponent | -l [-xml [-xmeta]] [-uusername] [-Lfilename]
          [-T{yes|yes,min|yes,logonly|all|all,min|all,logonly|no}] [-A]
The following parameters and flags are available from the command prompt:
database
Specifies the name and location of the database in which the application resides
application
Specifies the name of the application from which the component is being exported
file
Specifies the name of the file to which the component is being exported (.exp or .xml)
-ccomponent
Specifies the name of the component to be exported
-l
Directs the ExportComp utility to treat the file parameter as the name of a file containing a list of component name and component source file pairings (separated by a comma)
-xml
Specifies XML format
-xmeta
Specifies whether the original XML metadata (AlterBy, AlterDate, Creator, CreateDate) is exported to the XML component file. If this parameter is not included, OpenROAD assigns new metadata to the exported component. To use this parameter, you must also specify -xml as the file input format.
-uusername
Lets you use this command as if you were another user, username.
Notes:
You, not username, own all files created by OpenROAD.
This entry field can be used only if Execute in Background is enabled.
-L
Specifies the name of a log file. This entry field can be used only if Execute in Background is enabled and Trace Window is set to Yes. If the log path specified is not a full path, the file is created in the ingres\files directory.
-T
Controls the display of the Trace window by entering one of the following values:
yes
Specifies that the Trace window appears but suppresses all informational system messages
yes,min
Specifies that the Trace window appears minimized as an icon, and all informational system messages are suppressed
yes,logonly
Specifies that the Trace window does not appear, but all messages are saved in a log file without informational system messages
all
Specifies that the Trace window does appear and all messages are written
all,min
Specifies that messages are written to the Trace window, which appears minimized as an icon
all,logonly
Specifies that the Trace window does not appear, but all messages are saved in a log file
no
Specifies that the Trace window does not appear, and no log file is created
-A
Appends the trace output of the current command to the end of the existing error log file.
Note:  The error log file, w4gl.log, is located in %II_SYSTEM%\ingres\files.