REM #Doc: This is the Custom Refile Environ Script
REM #Doc: it Can be used to set special settings for custom bevor refile start's
REM #New: 19.11.2013/J.Fes
REM #LUp: 22.11.2015/J.Fes

call :CustomDefaults
if /I "%RfReplica%" equ "YES" Call :CustomRO
if /I "%RfReplica%" neq "YES" Call :CustomSO

goto :eof

rem ----------------------------------------------------------------------------
:CustomDefaults
 rem set's Custom environ Default settings

 REM use WatchDog [default=ON]
 set JobMgr_use_PLMJobManagerWatchDog=ON

 REM Start TaskMgr [default=ON] #New 19.06.2014/J.Fes
 set JobMgr_start_TaskMgr=OFF

 REM use JobMgr_use_TcServerKill [default=OFF]
 set JobMgr_use_TcServerKill=OFF

 REM #Doc: Example Usage TC load rule
 REM  set IMAN_UG_Navigator_Override_UG_Load_Option=XX
 REM  set Tc_UG_Navigator_Override_UG_Load_Option=XX
 REM  set JobMgr_RfExtEvalROpt=-Custom02Log_DPNE "%temp%\JobTempSO\NX_updatePattern_results.txt"

 REM  set TC_config_rule_name=XX
 rem set UGII_LOAD_OPTIONS
 if defined UGII_LOAD_OPTIONS_NE if exist "%CmdCurRoot_DP%\startup\%UGII_LOAD_OPTIONS_NE%" set UGII_LOAD_OPTIONS=%CmdCurRoot_DP%\startup\%UGII_LOAD_OPTIONS_NE%
 REM  set UGII_LOAD_OPTIONS=%CmdCurRoot_DP%\startup\CustomXX_load_options_refile.def
 REM  SET UGII_LOCAL_USER_DEFAULTS=%CmdCurRoot_DP%\startup\CustomXX_nx_refile.dpv
 REM  set UGII_SITE_DIR=%CmdCurRoot_DP%

 REM disable TC_SHARED_MEMORY_DIR, via:
 set TC_SHARED_MEMORY_DIR_Disable=true
 REM disable Refile Process Monitoring via:
 REM set JobMgr_RfPMon_USE=false

 REM until TC9
 REM set FMS_HOME=%TC_ROOT%\fcc
 REM from TC9 use
 REM set FMS_HOME=%TC_ROOT%\tccs

 REM disable fccCheck
 REM set JobMgr_fccCheck_USE=false

 REM #Doc: If use TC.Pref is to read from TC_PREFERENCES_OVERLAY_FILE
 REM #Doc: Please Copy first from: .\OptionFiles\Rf_TC_PREFERENCES_OVERLAY.xml
 REM #Doc:                   to..: .\ClientScripts\Resources\Rf_TC_PREFERENCES_OVERLAY.xml
 REM #Doc: and uncommand next lines
 REM Echo ---------------------------------------------------------------------------
 REM set TC_PREFERENCES_OVERRIDE_FROM_FILE=TRUE
 REM set TC_PREFERENCES_OVERLAY_FILE=%CmdCurRoot_DP%\Resources\Rf_TC_PREFERENCES_OVERLAY.xml
 REM Call Echo "TC.Pref.Override.from.Fi: [%TC_PREFERENCES_OVERRIDE_FROM_FILE%]"
 REM Echo ---------------------------------------------------------------------------

 REM #Doc: if use TC.Test.Attribut should be used
 REM #Doc: and uncommand next lines
 REM Echo ---------------------------------------------------------------------------
 REM set TC_USE_TEST_ATTR_MAPPINGS=YES
 REM Call Echo "TC.Use.Test_Attr.Mapp...: [%TC_USE_TEST_ATTR_MAPPINGS%]"
 REM Echo ---------------------------------------------------------------------------

 REM #Doc: if fccPurge should be used
 REM       uncommand next lines
 REM  if /I "%ComputerName:~0,5%" equ "?????" goto :fccClearPurgeJumbOver
 REM   rem #New: 15/11/2014 21:57 / J.Fes prevent missing discspace on Rf.Clients
 REM   call Banner fccP:YES
 REM   Call Echo "fccPurge................: [DO:YES]"
 REM   call "%fms_home%\bin\fccstat.exe" -clear>>"%temp%\zzfcc2ClearPurge.log"
 REM   call "%fms_home%\bin\fccstat.exe" -purge>>"%temp%\zzfcc2ClearPurge.log"
 REM  goto :Next
 REM :fccClearPurgeJumbOver
 REM   call Banner fccP:NO
 REM   Call Echo "fccPurge................: [DO:NO]"
 REM   goto :Next

:Next
 goto :eof

rem ----------------------------------------------------------------------------
:CustomSO
 rem set's Custom environ IF SO Side Objects is refiled
 goto :eof

rem ----------------------------------------------------------------------------
:CustomRO
 rem set's Custom environ IF RO Replica Objects is refiled
 goto :eof

