As a developer you want/need to keep your local tools DB up to date but importing all those objects (SIFs) when there are too many modified objects is a time consuming task.
Normally all development projects will have version control tools like SVN, ClearCase etc. So you will have all changed objects in your local machine.
With the help of below code you can actually perform batch import with overwrite method
STEPS:
1) All you need to to is save the below content (from START to END) as a BAT file. and change the file paths accordingly.
2) Make sure you have closed your local tools before you run this BAT file.
3) Run the BAT file. Your tools instance will open up. Do not close it.
4) After the completion of import tools instance will automatically close.
5) Verify the log if required
===================================
:: START
:: To import SIFs to your local tools from a Folder
set root=D:
set siebeltoolsbin=D:\Siebel\8.2.2.0.0\Tools_1\BIN
:: your tools CFG path
set siebeltoolscfg=D:\Siebel\8.2.2.0.0\Tools_1\BIN\ENU\tools.cfg
:: object location (ex SVN path)
set siebelobjectspath=D:\Objects\Batch_Import
:: Log path
set logpath=D:\SIF_Import_log.txt
:: Datasource
set datasource=Local
:: Username and Password
set username=PDESAI
set pwd=PDESAI
ECHO Parameters set: Importing SIFs to Tools
%root%
CD %siebeltoolsbin%
::Importing the sif files
siebdev.exe /c %siebeltoolscfg% /d %datasource% /u %username% /p %pwd% /batchimport "Siebel Repository" Overwrite %siebelobjectspath% %logpath%
:: END
===================================
No comments:
Post a Comment