16. Managing and Deploying Applications : How You Can Import and Export Applications and Components : Export an Individual Component : Examples: ExportComp Utility
 
Share this page                  
Examples: ExportComp Utility
The following example exports a component, “comp1” from application “myapp” in the database “mydatabase,” in OpenROAD text format to the export file “comp1.exp”:
w4gldev backupapp out mydatabase myapp comp1.exp -ccomp1
The following example exports a component, “comp2” from application “myapp,” in XML format to the export file “mycomp.xml.” Metadata is not included in the file:
w4gldev backupapp out mydatabase myapp mycomp.xml -ccomp2 -xml
The following example exports a component, “comp3” from application “myapp,” to the export file “mycomp.xml.” Metadata is included in the mcomp.xml file:
w4gldev backupapp out mydatabase myapp mycomp.xml -ccomp3 -xml -xmeta
The following example exports the component source files and comma-separated component name and component source file pairings in the file “comps.lst”:
w4gldev backupapp out mydatabase myapp comps.lst -l
The file “comps.lst” contains the following content:
top, top.exp
proc1, proc1.exp
helloworld, hw.exp
This will export three components from the application “myapp” (in database “mydatabase”) into the following export files:
“top” is exported into the file “top.exp”
“proc1” is exported into the file “proc1.exp”
“helloworld” is exported into the file “hw.exp”