Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
The Rehosting Utility has been built to automatically rehost the most common environment configurations but there may be times when a unique configuration is not updated properly as part of the rehost. To ensure that a rehost results in a fully functional system, you may need to change property values that were incorrectly set by the utility. The utility is designed to support this operation via the StartProcessTask.
First, create a script (bat file, shell script, etc.) that makes the proper update via xconfmanager. The following prop-update.bat runs an xconf command to update the value of wt.server.codebase.
prop-update.bat
set WT_HOME=D:\PTC\Windchill10\Windchill
start %WT_HOME%\bin\xconfmanager -p -t codebase/wt.properties -s "wt.server.codebase=http://master.company.com/Windchill"
Next, create a script entry in rehost.properties that references the script relative to the Rehosting Utility installation directory. In most cases, placing the scripts in the rehost\scripts directory should be sufficient.
rehost.properties
...
rehost.script.propfix=..\scripts\prop-update.bat
...
Lastly, modify projects.properties to run this script immediately prior to starting Windchill.
projects.properties
...
rehost.modules=IERehostTask,ApacheRehostTask,DBRehostTask, OrgRehostTask, \
StartProcessTask:rehost.script.propfix, StartProcessTask:rehost.script.wcstart, VaultTask
...
Now, when you execute the Rehosting Utility, the prop-update.bat will be executed as part of the process before starting Windchill.
Not sure why the newline characters aren't rendering properly in the code snippets. I will fix this soon.